org.apache.hadoop.hive.serde2.objectinspector.primitive
Class JavaTimestampObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
      extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
          extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaTimestampObjectInspector
All Implemented Interfaces:
Cloneable, ObjectInspector, SettableTimestampObjectInspector, TimestampObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec

public class JavaTimestampObjectInspector
extends AbstractPrimitiveJavaObjectInspector
implements SettableTimestampObjectInspector


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
typeParams
 
Constructor Summary
protected JavaTimestampObjectInspector()
           
 
Method Summary
 Object create(byte[] bytes, int offset)
           
 Object create(Timestamp value)
           
 Timestamp get(Object o)
           
 Timestamp getPrimitiveJavaObject(Object o)
          Get the Java Primitive object.
 TimestampWritable getPrimitiveWritableObject(Object o)
          Return the data in an instance of primitive writable Object.
 Object set(Object o, byte[] bytes, int offset)
           
 Object set(Object o, Timestamp value)
           
 Object set(Object o, TimestampWritable tw)
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
copyObject, preferWritable
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName, getTypeParams, setTypeParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Constructor Detail

JavaTimestampObjectInspector

protected JavaTimestampObjectInspector()
Method Detail

getPrimitiveWritableObject

public TimestampWritable getPrimitiveWritableObject(Object o)
Description copied from interface: PrimitiveObjectInspector
Return the data in an instance of primitive writable Object. If the Object is already a primitive writable Object, just return o.

Specified by:
getPrimitiveWritableObject in interface TimestampObjectInspector
Specified by:
getPrimitiveWritableObject in interface PrimitiveObjectInspector

getPrimitiveJavaObject

public Timestamp getPrimitiveJavaObject(Object o)
Description copied from interface: PrimitiveObjectInspector
Get the Java Primitive object.

Specified by:
getPrimitiveJavaObject in interface TimestampObjectInspector
Specified by:
getPrimitiveJavaObject in interface PrimitiveObjectInspector
Overrides:
getPrimitiveJavaObject in class AbstractPrimitiveJavaObjectInspector

get

public Timestamp get(Object o)

set

public Object set(Object o,
                  Timestamp value)
Specified by:
set in interface SettableTimestampObjectInspector

set

public Object set(Object o,
                  byte[] bytes,
                  int offset)
Specified by:
set in interface SettableTimestampObjectInspector

set

public Object set(Object o,
                  TimestampWritable tw)
Specified by:
set in interface SettableTimestampObjectInspector

create

public Object create(Timestamp value)
Specified by:
create in interface SettableTimestampObjectInspector

create

public Object create(byte[] bytes,
                     int offset)
Specified by:
create in interface SettableTimestampObjectInspector


Copyright © 2012 The Apache Software Foundation