org.apache.hadoop.hive.serde2.objectinspector.primitive
Class WritableVoidObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveWritableObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableVoidObjectInspector
- All Implemented Interfaces:
- Cloneable, ConstantObjectInspector, ObjectInspector, VoidObjectInspector, PrimitiveObjectInspector
public class WritableVoidObjectInspector
- extends AbstractPrimitiveWritableObjectInspector
- implements VoidObjectInspector, ConstantObjectInspector
A WritableVoidObjectInspector inspects a NullWritable Object.
Note that this is also a constant object inspector.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyObject
public Object copyObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
If the Object is a Primitive Java Object, we just return the parameter
since Primitive Java Object is immutable.
- Specified by:
copyObject
in interface PrimitiveObjectInspector
getWritableConstantValue
public Object getWritableConstantValue()
- Specified by:
getWritableConstantValue
in interface ConstantObjectInspector
getPrimitiveJavaObject
public Object getPrimitiveJavaObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Get the Java Primitive object.
- Specified by:
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
Copyright © 2011 The Apache Software Foundation