Package | Description |
---|---|
org.apache.hadoop.hive.common.type | |
org.apache.hadoop.hive.ql.io.parquet.timestamp | |
org.apache.hadoop.hive.ql.io.parquet.vector |
Hive Parquet Vectorized Reader related.
|
org.apache.hadoop.hive.ql.udf.generic |
Standard toolkit and framework for generic User-defined functions.
|
org.apache.hadoop.hive.ql.util | |
org.apache.hadoop.hive.serde2 | |
org.apache.hadoop.hive.serde2.binarysortable.fast | |
org.apache.hadoop.hive.serde2.fast | |
org.apache.hadoop.hive.serde2.io | |
org.apache.hadoop.hive.serde2.lazy.fast | |
org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive | |
org.apache.hadoop.hive.serde2.lazybinary.fast | |
org.apache.hadoop.hive.serde2.objectinspector.primitive | |
org.apache.hive.common.util | |
org.apache.hive.hcatalog.data |
Modifier and Type | Method and Description |
---|---|
static Timestamp |
TimestampTZUtil.convertTimestampToZone(Timestamp ts,
ZoneId fromZone,
ZoneId toZone)
Timestamps are technically time zone agnostic, and this method sort of cheats its logic.
|
static Timestamp |
TimestampUtils.decimalToTimestamp(org.apache.hadoop.hive.common.type.HiveDecimal dec)
Take a HiveDecimal and return the timestamp representation where the fraction part is the
nanoseconds and integer part is the number of seconds.
|
static Timestamp |
TimestampUtils.decimalToTimestamp(org.apache.hadoop.hive.common.type.HiveDecimalV1 dec) |
static Timestamp |
TimestampUtils.decimalToTimestamp(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable decWritable,
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable scratchDecWritable1,
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable scratchDecWritable2)
Take a HiveDecimalWritable and return the timestamp representation where the fraction part
is the nanoseconds and integer part is the number of seconds.
|
static Timestamp |
TimestampUtils.doubleToTimestamp(double f) |
static Timestamp |
Timestamp.ofEpochMilli(long epochMilli) |
static Timestamp |
Timestamp.ofEpochMilli(long epochMilli,
int nanos) |
static Timestamp |
Timestamp.ofEpochSecond(long epochSecond) |
static Timestamp |
Timestamp.ofEpochSecond(long epochSecond,
int nanos) |
static Timestamp |
Timestamp.valueOf(String s) |
Modifier and Type | Method and Description |
---|---|
int |
Timestamp.compareTo(Timestamp o) |
static TimestampTZ |
TimestampTZUtil.convert(Timestamp ts,
ZoneId defaultTimeZone) |
static Timestamp |
TimestampTZUtil.convertTimestampToZone(Timestamp ts,
ZoneId fromZone,
ZoneId toZone)
Timestamps are technically time zone agnostic, and this method sort of cheats its logic.
|
static double |
TimestampUtils.getDouble(Timestamp ts)
Convert the timestamp to a double measured in seconds.
|
void |
Timestamp.set(Timestamp t) |
Constructor and Description |
---|
Timestamp(Timestamp t) |
Modifier and Type | Method and Description |
---|---|
static Timestamp |
NanoTimeUtils.getTimestamp(NanoTime nt,
boolean skipConversion) |
static Timestamp |
NanoTimeUtils.getTimestamp(NanoTime nt,
boolean skipConversion,
ZoneId timeZoneId)
Gets a Timestamp object from a NanoTime object, which represents timestamps as nanoseconds
since epoch.
|
Modifier and Type | Method and Description |
---|---|
static NanoTime |
NanoTimeUtils.getNanoTime(Timestamp ts,
boolean skipConversion) |
static NanoTime |
NanoTimeUtils.getNanoTime(Timestamp ts,
boolean skipConversion,
ZoneId timeZoneId)
Gets a NanoTime object, which represents timestamps as nanoseconds since epoch, from a
Timestamp object.
|
Modifier and Type | Method and Description |
---|---|
Timestamp |
ParquetDataColumnReader.readTimestamp() |
Timestamp |
ParquetDataColumnReaderFactory.DefaultParquetDataColumnReader.readTimestamp() |
Timestamp |
ParquetDataColumnReaderFactory.TypesFromInt96PageReader.readTimestamp() |
Timestamp |
ParquetDataColumnReader.readTimestamp(int id) |
Timestamp |
ParquetDataColumnReaderFactory.DefaultParquetDataColumnReader.readTimestamp(int id) |
Timestamp |
ParquetDataColumnReaderFactory.TypesFromInt96PageReader.readTimestamp(int id) |
Modifier and Type | Method and Description |
---|---|
protected Timestamp |
GenericUDF.getTimestampValue(GenericUDF.DeferredObject[] arguments,
int i,
ObjectInspectorConverters.Converter[] converters) |
Modifier and Type | Method and Description |
---|---|
protected TimestampWritableV2 |
GenericUDFOPDTIMinus.handleTimestampResult(Timestamp result) |
protected TimestampWritableV2 |
GenericUDFOPDTIPlus.handleTimestampResult(Timestamp result) |
protected static void |
GenericUDFToUnixTimeStamp.setValueFromTs(org.apache.hadoop.io.LongWritable value,
Timestamp timestamp) |
Modifier and Type | Method and Description |
---|---|
Timestamp |
DateTimeMath.add(org.apache.hadoop.hive.common.type.HiveIntervalDayTime interval,
Timestamp ts) |
Timestamp |
DateTimeMath.add(HiveIntervalYearMonth interval,
Timestamp ts) |
Timestamp |
DateTimeMath.add(Timestamp ts,
org.apache.hadoop.hive.common.type.HiveIntervalDayTime interval) |
Timestamp |
DateTimeMath.add(Timestamp ts,
HiveIntervalYearMonth interval) |
Timestamp |
DateTimeMath.subtract(Timestamp left,
org.apache.hadoop.hive.common.type.HiveIntervalDayTime right) |
Timestamp |
DateTimeMath.subtract(Timestamp left,
HiveIntervalYearMonth right) |
Modifier and Type | Method and Description |
---|---|
Timestamp |
DateTimeMath.add(org.apache.hadoop.hive.common.type.HiveIntervalDayTime interval,
Timestamp ts) |
boolean |
DateTimeMath.add(org.apache.hadoop.hive.common.type.HiveIntervalDayTime interval,
Timestamp ts,
Timestamp result) |
Timestamp |
DateTimeMath.add(HiveIntervalYearMonth interval,
Timestamp ts) |
boolean |
DateTimeMath.add(HiveIntervalYearMonth interval,
Timestamp ts,
Timestamp result) |
Timestamp |
DateTimeMath.add(Timestamp ts,
org.apache.hadoop.hive.common.type.HiveIntervalDayTime interval) |
boolean |
DateTimeMath.add(Timestamp ts,
org.apache.hadoop.hive.common.type.HiveIntervalDayTime interval,
Timestamp result) |
Timestamp |
DateTimeMath.add(Timestamp ts,
HiveIntervalYearMonth interval) |
boolean |
DateTimeMath.add(Timestamp ts,
HiveIntervalYearMonth interval,
Timestamp result) |
Timestamp |
DateTimeMath.subtract(Timestamp left,
org.apache.hadoop.hive.common.type.HiveIntervalDayTime right) |
boolean |
DateTimeMath.subtract(Timestamp left,
org.apache.hadoop.hive.common.type.HiveIntervalDayTime right,
Timestamp result) |
Timestamp |
DateTimeMath.subtract(Timestamp left,
HiveIntervalYearMonth right) |
boolean |
DateTimeMath.subtract(Timestamp left,
HiveIntervalYearMonth right,
Timestamp result) |
org.apache.hadoop.hive.common.type.HiveIntervalDayTime |
DateTimeMath.subtract(Timestamp left,
Timestamp right) |
boolean |
DateTimeMath.subtract(Timestamp left,
Timestamp right,
org.apache.hadoop.hive.common.type.HiveIntervalDayTime result) |
Modifier and Type | Method and Description |
---|---|
static Timestamp |
RandomTypeUtil.getRandTimestamp(Random r) |
static Timestamp |
RandomTypeUtil.getRandTimestamp(Random r,
int minYear,
int maxYear) |
Modifier and Type | Method and Description |
---|---|
void |
BinarySortableSerializeWrite.writeTimestamp(Timestamp vt) |
Modifier and Type | Method and Description |
---|---|
void |
SerializeWrite.writeTimestamp(Timestamp vt) |
Modifier and Type | Method and Description |
---|---|
static Timestamp |
TimestampWritableV2.createTimestamp(byte[] bytes,
int offset) |
Timestamp |
TimestampWritableV2.getTimestamp() |
static Timestamp |
TimestampWritableV2.longToTimestamp(long time,
boolean intToTimestampInSeconds)
Converts the time in seconds or milliseconds to a timestamp.
|
Modifier and Type | Method and Description |
---|---|
static void |
TimestampWritableV2.convertTimestampToBytes(Timestamp t,
byte[] b,
int offset)
Writes a Timestamp's serialized value to byte array b at the given offset
|
static org.apache.hadoop.hive.common.type.HiveDecimal |
TimestampWritableV2.getHiveDecimal(Timestamp timestamp) |
static long |
TimestampWritableV2.getLong(Timestamp timestamp) |
void |
TimestampWritableV2.set(Timestamp t) |
static void |
TimestampWritableV2.setTimestamp(Timestamp t,
byte[] bytes,
int offset) |
static void |
TimestampWritableV2.updateTimestamp(Timestamp timestamp,
long secondsAsMillis,
int nanos) |
Constructor and Description |
---|
TimestampWritableV2(Timestamp t) |
Modifier and Type | Method and Description |
---|---|
void |
LazySimpleSerializeWrite.writeTimestamp(Timestamp v) |
Modifier and Type | Method and Description |
---|---|
Timestamp |
LazyTimestampObjectInspector.getPrimitiveJavaObject(Object o) |
Modifier and Type | Method and Description |
---|---|
void |
LazyBinarySerializeWrite.writeTimestamp(Timestamp v) |
Modifier and Type | Method and Description |
---|---|
Timestamp |
JavaTimestampObjectInspector.get(Object o) |
Timestamp |
TimestampObjectInspector.getPrimitiveJavaObject(Object o) |
Timestamp |
JavaTimestampObjectInspector.getPrimitiveJavaObject(Object o) |
Timestamp |
WritableTimestampObjectInspector.getPrimitiveJavaObject(Object o) |
static Timestamp |
PrimitiveObjectInspectorUtils.getTimestamp(Object o,
PrimitiveObjectInspector oi) |
static Timestamp |
PrimitiveObjectInspectorUtils.getTimestamp(Object o,
PrimitiveObjectInspector inputOI,
boolean intToTimestampInSeconds) |
static Timestamp |
PrimitiveObjectInspectorUtils.getTimestampFromString(String s) |
Modifier and Type | Method and Description |
---|---|
Object |
SettableTimestampObjectInspector.create(Timestamp t) |
Object |
JavaTimestampObjectInspector.create(Timestamp value) |
Object |
WritableTimestampObjectInspector.create(Timestamp t) |
Object |
SettableTimestampObjectInspector.set(Object o,
Timestamp t) |
Object |
JavaTimestampObjectInspector.set(Object o,
Timestamp value) |
Object |
WritableTimestampObjectInspector.set(Object o,
Timestamp t) |
Constructor and Description |
---|
JavaConstantTimestampObjectInspector(Timestamp value) |
Modifier and Type | Method and Description |
---|---|
Timestamp |
TimestampParser.parseTimestamp(String strValue)
Parse the input string and return a timestamp value
|
Modifier and Type | Method and Description |
---|---|
Timestamp |
HCatRecord.getTimestamp(String fieldName,
HCatSchema recordSchema) |
Modifier and Type | Method and Description |
---|---|
void |
HCatRecord.setTimestamp(String fieldName,
HCatSchema recordSchema,
Timestamp value) |
Copyright © 2022 The Apache Software Foundation. All rights reserved.