org.apache.hadoop.hive.serde2.lazy
Class LazyTimestamp
java.lang.Object
org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyTimestampObjectInspector,TimestampWritable>
org.apache.hadoop.hive.serde2.lazy.LazyTimestamp
public class LazyTimestamp
- extends LazyPrimitive<LazyTimestampObjectInspector,TimestampWritable>
LazyTimestamp.
Serializes and deserializes a Timestamp in the JDBC timestamp format
YYYY-MM-DD HH:MM:SS.[fff...]
Fields inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObject |
oi |
LazyTimestamp
public LazyTimestamp(LazyTimestampObjectInspector oi)
LazyTimestamp
public LazyTimestamp(LazyTimestamp copy)
init
public void init(ByteArrayRef bytes,
int start,
int length)
- Initilizes LazyTimestamp object by interpreting the input bytes
as a JDBC timestamp string
- Specified by:
init
in class LazyObjectBase
- Parameters:
bytes
- start
- length
- - See Also:
ByteArrayRef
writeUTF8
public static void writeUTF8(OutputStream out,
TimestampWritable i)
throws IOException
- Writes a Timestamp in JDBC timestamp format to the output stream
- Parameters:
out
- The output streami
- The Timestamp to write
- Throws:
IOException
getWritableObject
public TimestampWritable getWritableObject()
- Overrides:
getWritableObject
in class LazyPrimitive<LazyTimestampObjectInspector,TimestampWritable>
Copyright © 2013 The Apache Software Foundation