org.apache.hadoop.hive.serde2.lazybinary
Class LazyBinaryTimestamp
java.lang.Object
org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryObject<OI>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive<WritableTimestampObjectInspector,TimestampWritable>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryTimestamp
public class LazyBinaryTimestamp
- extends LazyBinaryPrimitive<WritableTimestampObjectInspector,TimestampWritable>
LazyBinaryTimestamp
A LazyBinaryObject that encodes a java.sql.Timestamp 4 to 9 bytes.
Method Summary |
void |
init(ByteArrayRef bytes,
int start,
int length)
Initializes LazyBinaryTimestamp object |
init
public void init(ByteArrayRef bytes,
int start,
int length)
- Initializes LazyBinaryTimestamp object
- Specified by:
init
in class LazyObjectBase
- Parameters:
bytes
- start
- length
- If length is 4, no decimal bytes follow, otherwise read following bytes
as VInt and reverse its value- See Also:
ByteArrayRef
Copyright © 2013 The Apache Software Foundation