org.apache.hadoop.hive.serde2.objectinspector.primitive
Class WritableIntObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
      extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveWritableObjectInspector
          extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableIntObjectInspector
All Implemented Interfaces:
ObjectInspector, IntObjectInspector, SettableIntObjectInspector, PrimitiveObjectInspector

public class WritableIntObjectInspector
extends AbstractPrimitiveWritableObjectInspector
implements SettableIntObjectInspector

A WritableIntObjectInspector inspects a IntWritable Object.


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
 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(int value)
          Create an object with the value.
 int get(Object o)
          Get the int data.
 Object getPrimitiveJavaObject(Object o)
          Get the Java Primitive object.
 void set(Object o, int value)
          Set the object with the value.
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveWritableObjectInspector
getPrimitiveWritableObject, preferWritable
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getPrimitiveWritableObject, preferWritable
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

get

public int get(Object o)
Description copied from interface: IntObjectInspector
Get the int data.

Specified by:
get in interface IntObjectInspector

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

getPrimitiveJavaObject

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

Specified by:
getPrimitiveJavaObject in interface PrimitiveObjectInspector

create

public Object create(int value)
Description copied from interface: SettableIntObjectInspector
Create an object with the value.

Specified by:
create in interface SettableIntObjectInspector

set

public void set(Object o,
                int value)
Description copied from interface: SettableIntObjectInspector
Set the object with the value.

Specified by:
set in interface SettableIntObjectInspector


Copyright © 2009 The Apache Software Foundation