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:
LazyBinaryBinary, LazyBinaryBoolean, LazyBinaryByte, LazyBinaryDate, LazyBinaryDouble, LazyBinaryFloat, LazyBinaryHiveChar, LazyBinaryHiveDecimal, LazyBinaryHiveVarchar, 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
 boolean equals(Object obj)
           
 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
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>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2014 The Apache Software Foundation. All rights reserved.