public class JavaDateObjectInspector extends AbstractPrimitiveJavaObjectInspector implements SettableDateObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeInfo
Modifier | Constructor and Description |
---|---|
protected |
JavaDateObjectInspector() |
Modifier and Type | Method and Description |
---|---|
Object |
create(Date value) |
Date |
get(Object o) |
Date |
getPrimitiveJavaObject(Object o)
Get the Java Primitive object.
|
DateWritable |
getPrimitiveWritableObject(Object o)
Return the data in an instance of primitive writable Object.
|
Object |
set(Object o,
Date value) |
Object |
set(Object o,
DateWritable d) |
copyObject, preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, precision, preferWritable, scale
getCategory, getTypeName
public DateWritable getPrimitiveWritableObject(Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface DateObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
public Date getPrimitiveJavaObject(Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface DateObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
in class AbstractPrimitiveJavaObjectInspector
public Object set(Object o, Date value)
set
in interface SettableDateObjectInspector
public Object set(Object o, DateWritable d)
set
in interface SettableDateObjectInspector
public Object create(Date value)
create
in interface SettableDateObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.