org.apache.hadoop.hive.serde2.lazybinary
Class LazyBinaryFloat

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryObject<OI>
      extended by org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive<WritableFloatObjectInspector,org.apache.hadoop.io.FloatWritable>
          extended by org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryFloat

public class LazyBinaryFloat
extends LazyBinaryPrimitive<WritableFloatObjectInspector,org.apache.hadoop.io.FloatWritable>

LazyBinaryObject for float which takes four bytes.


Method Summary
 void init(ByteArrayRef bytes, int start, int length)
          Set the data for this LazyBinaryObject.
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive
getObject, getWritableObject, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

init

public void init(ByteArrayRef bytes,
                 int start,
                 int length)
Description copied from class: LazyBinaryObject
Set the data for this LazyBinaryObject. We take ByteArrayRef instead of byte[] so that we will be able to drop the reference to byte[] by a single assignment. The ByteArrayRef object can be reused across multiple rows. Never call this function if the object represent a null!!!

Specified by:
init in class LazyBinaryObject<WritableFloatObjectInspector>
Parameters:
bytes - The wrapper of the byte[].
start - The start position inside the bytes.
length - The length of the data, starting from "start"
See Also:
ByteArrayRef


Copyright © 2010 The Apache Software Foundation