org.apache.hadoop.hive.serde2.lazybinary
Class LazyBinaryTimestamp

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
      extended by org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryObject<OI>
          extended by org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive<WritableTimestampObjectInspector,TimestampWritable>
              extended by 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
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive
getObject, getWritableObject, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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