public class IntervalDayTimeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static BigDecimal |
MAX_INT_BD |
static int |
NANOS_PER_SEC |
static BigDecimal |
NANOS_PER_SEC_BD |
Constructor and Description |
---|
IntervalDayTimeUtils() |
Modifier and Type | Method and Description |
---|---|
static SimpleDateFormat |
getDateFormat() |
static int |
getIntervalDayTimeNanosFromTotalNanos(long totalNanos) |
static long |
getIntervalDayTimeTotalNanos(HiveIntervalDayTime intervalDayTime) |
static long |
getIntervalDayTimeTotalSecondsFromTotalNanos(long totalNanos) |
static int |
parseNumericValueWithRange(String fieldName,
String strVal,
int minValue,
int maxValue) |
static void |
setIntervalDayTimeTotalNanos(HiveIntervalDayTime intervalDayTime,
long totalNanos) |
public static final int NANOS_PER_SEC
public static final BigDecimal MAX_INT_BD
public static final BigDecimal NANOS_PER_SEC_BD
public static SimpleDateFormat getDateFormat()
public static int parseNumericValueWithRange(String fieldName, String strVal, int minValue, int maxValue) throws IllegalArgumentException
IllegalArgumentException
public static long getIntervalDayTimeTotalNanos(HiveIntervalDayTime intervalDayTime)
public static void setIntervalDayTimeTotalNanos(HiveIntervalDayTime intervalDayTime, long totalNanos)
public static long getIntervalDayTimeTotalSecondsFromTotalNanos(long totalNanos)
public static int getIntervalDayTimeNanosFromTotalNanos(long totalNanos)
Copyright © 2016 The Apache Software Foundation. All rights reserved.