org.apache.hadoop.hive.serde2.lazybinary
Class LazyBinaryPrimitive<OI extends ObjectInspector,T extends org.apache.hadoop.io.Writable>

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<OI,T>
Direct Known Subclasses:
LazyBinaryBigDecimal, LazyBinaryBinary, LazyBinaryBoolean, LazyBinaryByte, LazyBinaryDouble, LazyBinaryFloat, LazyBinaryInteger, LazyBinaryLong, LazyBinaryShort, LazyBinaryString, LazyBinaryTimestamp, LazyBinaryVoid

public abstract class LazyBinaryPrimitive<OI extends ObjectInspector,T extends org.apache.hadoop.io.Writable>
extends LazyBinaryObject<OI>

Defines a LazyBinaryPrimitive. data will be initialized to corresponding types in different LazyBinary primitive classes. For example, data will be a BooleanWritable in the LazyBinaryBoolean class. There is no null flag any more,


Method Summary
 Object getObject()
          Returns the primitive object represented by this LazyBinaryObject.
 T getWritableObject()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getObject

public Object getObject()
Returns the primitive object represented by this LazyBinaryObject. This is useful because it can make sure we have "null" for null objects.

Specified by:
getObject in class LazyObjectBase

getWritableObject

public T getWritableObject()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in class LazyBinaryObject<OI extends ObjectInspector>


Copyright © 2013 The Apache Software Foundation