public class JavaTimestampObjectInspector extends AbstractPrimitiveJavaObjectInspector implements SettableTimestampObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeInfo
Modifier | Constructor and Description |
---|---|
protected |
JavaTimestampObjectInspector() |
Modifier and Type | Method and Description |
---|---|
Object |
copyObject(Object o)
Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
|
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) |
preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, precision, preferWritable, scale
getCategory, getTypeName
public TimestampWritable getPrimitiveWritableObject(Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface TimestampObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
public Timestamp getPrimitiveJavaObject(Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface TimestampObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
in class AbstractPrimitiveJavaObjectInspector
public Object copyObject(Object o)
PrimitiveObjectInspector
copyObject
in interface PrimitiveObjectInspector
copyObject
in class AbstractPrimitiveJavaObjectInspector
public Object set(Object o, Timestamp value)
set
in interface SettableTimestampObjectInspector
public Object set(Object o, byte[] bytes, int offset)
set
in interface SettableTimestampObjectInspector
public Object set(Object o, TimestampWritable tw)
set
in interface SettableTimestampObjectInspector
public Object create(Timestamp value)
create
in interface SettableTimestampObjectInspector
public Object create(byte[] bytes, int offset)
create
in interface SettableTimestampObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.