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.LazyObjectBase
      extended by org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
          extended by org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<OI,T>
Direct Known Subclasses:
LazyBinary, LazyBoolean, LazyByte, LazyDate, LazyDouble, LazyFloat, LazyHiveChar, LazyHiveDecimal, LazyHiveVarchar, LazyInteger, LazyLong, LazyShort, LazyString, LazyTimestamp, LazyVoid

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
 boolean equals(Object obj)
           
 Object getObject()
          Returns the primitive object represented by this LazyObject.
 T getWritableObject()
           
 int hashCode()
           
 void logExceptionMessage(ByteArrayRef bytes, int start, int length, String dataType)
           
 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 LazyObject. 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 LazyObject<OI extends ObjectInspector>

equals

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

logExceptionMessage

public void logExceptionMessage(ByteArrayRef bytes,
                                int start,
                                int length,
                                String dataType)


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