public class JavaTimestampObjectInspector extends AbstractPrimitiveJavaObjectInspector implements SettableTimestampObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeParams
Modifier | Constructor and Description |
---|---|
protected |
JavaTimestampObjectInspector() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(byte[] bytes,
int offset) |
java.lang.Object |
create(java.sql.Timestamp value) |
java.sql.Timestamp |
get(java.lang.Object o) |
java.sql.Timestamp |
getPrimitiveJavaObject(java.lang.Object o)
Get the Java Primitive object.
|
TimestampWritable |
getPrimitiveWritableObject(java.lang.Object o)
Return the data in an instance of primitive writable Object.
|
java.lang.Object |
set(java.lang.Object o,
byte[] bytes,
int offset) |
java.lang.Object |
set(java.lang.Object o,
java.sql.Timestamp value) |
java.lang.Object |
set(java.lang.Object o,
TimestampWritable tw) |
copyObject, preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName, getTypeParams, setTypeParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
getCategory, getTypeName
public TimestampWritable getPrimitiveWritableObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface TimestampObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
public java.sql.Timestamp getPrimitiveJavaObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface TimestampObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
in class AbstractPrimitiveJavaObjectInspector
public java.sql.Timestamp get(java.lang.Object o)
public java.lang.Object set(java.lang.Object o, java.sql.Timestamp value)
set
in interface SettableTimestampObjectInspector
public java.lang.Object set(java.lang.Object o, byte[] bytes, int offset)
set
in interface SettableTimestampObjectInspector
public java.lang.Object set(java.lang.Object o, TimestampWritable tw)
set
in interface SettableTimestampObjectInspector
public java.lang.Object create(java.sql.Timestamp value)
create
in interface SettableTimestampObjectInspector
public java.lang.Object create(byte[] bytes, int offset)
create
in interface SettableTimestampObjectInspector
Copyright © 2012 The Apache Software Foundation