public class WritableDateObjectInspector extends AbstractPrimitiveWritableObjectInspector implements SettableDateObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeInfo
Constructor and Description |
---|
WritableDateObjectInspector() |
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(Date d) |
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 d) |
Object |
set(Object o,
DateWritable d) |
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 DateWritable getPrimitiveWritableObject(Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface DateObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
getPrimitiveWritableObject
in class AbstractPrimitiveWritableObjectInspector
public Date getPrimitiveJavaObject(Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface DateObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
public Object copyObject(Object o)
PrimitiveObjectInspector
copyObject
in interface PrimitiveObjectInspector
public Object set(Object o, Date d)
set
in interface SettableDateObjectInspector
public Object set(Object o, DateWritable d)
set
in interface SettableDateObjectInspector
public Object create(Date d)
create
in interface SettableDateObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.