public class LazyTimestamp extends LazyPrimitive<LazyTimestampObjectInspector,TimestampWritable>
data
isNull, oi
Constructor and Description |
---|
LazyTimestamp(LazyTimestamp copy) |
LazyTimestamp(LazyTimestampObjectInspector oi) |
Modifier and Type | Method and Description |
---|---|
TimestampWritable |
getWritableObject() |
void |
init(ByteArrayRef bytes,
int start,
int length)
Initilizes LazyTimestamp object by interpreting the input bytes
as a JDBC timestamp string
|
static void |
writeUTF8(OutputStream out,
TimestampWritable i)
Writes a Timestamp in JDBC timestamp format to the output stream
|
equals, hashCode, logExceptionMessage, toString
getInspector, getObject, setInspector, setNull
public LazyTimestamp(LazyTimestampObjectInspector oi)
public LazyTimestamp(LazyTimestamp copy)
public void init(ByteArrayRef bytes, int start, int length)
init
in interface LazyObjectBase
init
in class LazyObject<LazyTimestampObjectInspector>
bytes
- start
- length
- ByteArrayRef
public static void writeUTF8(OutputStream out, TimestampWritable i) throws IOException
out
- The output streami
- The Timestamp to writeIOException
public TimestampWritable getWritableObject()
getWritableObject
in class LazyPrimitive<LazyTimestampObjectInspector,TimestampWritable>
Copyright © 2017 The Apache Software Foundation. All rights reserved.