org.apache.hadoop.hive.serde2.objectinspector.primitive
Interface DateObjectInspector

All Superinterfaces:
Cloneable, ObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec
All Known Subinterfaces:
SettableDateObjectInspector
All Known Implementing Classes:
JavaDateObjectInspector, LazyDateObjectInspector, WritableConstantDateObjectInspector, WritableDateObjectInspector

public interface DateObjectInspector
extends PrimitiveObjectInspector

A DateObjectInspector inspects an Object representing a Date.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Method Summary
 Date getPrimitiveJavaObject(Object o)
          Get the Java Primitive object.
 DateWritable getPrimitiveWritableObject(Object o)
          Return the data in an instance of primitive writable Object.
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

getPrimitiveWritableObject

DateWritable 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 PrimitiveObjectInspector

getPrimitiveJavaObject

Date getPrimitiveJavaObject(Object o)
Description copied from interface: PrimitiveObjectInspector
Get the Java Primitive object.

Specified by:
getPrimitiveJavaObject in interface PrimitiveObjectInspector


Copyright © 2012 The Apache Software Foundation