org.apache.hadoop.hive.serde2.objectinspector.primitive
Class JavaTimestampObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaTimestampObjectInspector
- All Implemented Interfaces:
- Cloneable, ObjectInspector, SettableTimestampObjectInspector, TimestampObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec
public class JavaTimestampObjectInspector
- extends AbstractPrimitiveJavaObjectInspector
- implements SettableTimestampObjectInspector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaTimestampObjectInspector
protected JavaTimestampObjectInspector()
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