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

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
      extended by org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<OI,T>
Direct Known Subclasses:
LazyBoolean, LazyByte, LazyDouble, LazyFloat, LazyInteger, LazyLong, LazyShort, LazyString

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

LazyPrimitive stores a primitive Object in a LazyObject.


Method Summary
 Object getObject()
          Returns the primitive object represented by this LazyObject.
 T getWritableObject()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObject
getInspector, init, setInspector
 
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 LazyObject. This is useful because it can make sure we have "null" for null objects.

Specified by:
getObject in class LazyObject<OI extends ObjectInspector>

getWritableObject

public T getWritableObject()

toString

public String toString()
Overrides:
toString in class Object

hashCode

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


Copyright © 2010 The Apache Software Foundation