org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive
Class LazyFloatObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
      extended by org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.AbstractPrimitiveLazyObjectInspector<FloatWritable>
          extended by org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.LazyFloatObjectInspector
All Implemented Interfaces:
Cloneable, ObjectInspector, FloatObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec

public class LazyFloatObjectInspector
extends AbstractPrimitiveLazyObjectInspector<FloatWritable>
implements FloatObjectInspector

A FloatObjectInspector inspects a FloatWritable 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 copyObject(Object o)
          Get a copy of the Object in the same class, so the return value can be stored independently of the parameter.
 float get(Object o)
          Get the float data.
 Object getPrimitiveJavaObject(Object o)
          Get the Java Primitive object.
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.AbstractPrimitiveLazyObjectInspector
getPrimitiveWritableObject, 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
getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getPrimitiveWritableObject, getTypeParams, preferWritable, setTypeParams
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

get

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

Specified by:
get in interface FloatObjectInspector

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


Copyright © 2012 The Apache Software Foundation