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

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
      extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
          extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaFloatObjectInspector
All Implemented Interfaces:
Cloneable, ObjectInspector, FloatObjectInspector, SettableFloatObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec

public class JavaFloatObjectInspector
extends AbstractPrimitiveJavaObjectInspector
implements SettableFloatObjectInspector

A JavaFloatObjectInspector inspects a Java Float 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
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
typeParams
 
Method Summary
 Object create(float value)
          Create an object with the value.
 float get(Object o)
          Get the float data.
 Object getPrimitiveWritableObject(Object o)
          Return the data in an instance of primitive writable Object.
 Object set(Object o, float value)
          Set the object with the value.
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
copyObject, getPrimitiveJavaObject, preferWritable
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName, getTypeParams, setTypeParams
 
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
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveJavaObject, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

getPrimitiveWritableObject

public Object 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

get

public float get(Object o)
Description copied from interface: FloatObjectInspector
Get the float data.

Specified by:
get in interface FloatObjectInspector

create

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

Specified by:
create in interface SettableFloatObjectInspector

set

public Object set(Object o,
                  float value)
Description copied from interface: SettableFloatObjectInspector
Set the object with the value. Return the object that has the new value. In most cases the returned value should be the same as o, but in case o is unmodifiable, this will return a new object with new value.

Specified by:
set in interface SettableFloatObjectInspector


Copyright © 2012 The Apache Software Foundation