org.apache.hadoop.hive.serde2.lazy
Class LazyDouble

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
      extended by org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyDoubleObjectInspector,DoubleWritable>
          extended by org.apache.hadoop.hive.serde2.lazy.LazyDouble

public class LazyDouble
extends LazyPrimitive<LazyDoubleObjectInspector,DoubleWritable>

LazyObject for storing a value of Double.


Constructor Summary
LazyDouble(LazyDouble copy)
           
LazyDouble(LazyDoubleObjectInspector oi)
           
 
Method Summary
 void init(ByteArrayRef bytes, int start, int length)
          Set the data for this LazyObject.
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyPrimitive
getObject, getWritableObject, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyDouble

public LazyDouble(LazyDoubleObjectInspector oi)

LazyDouble

public LazyDouble(LazyDouble copy)
Method Detail

init

public void init(ByteArrayRef bytes,
                 int start,
                 int length)
Description copied from class: LazyObject
Set the data for this LazyObject. 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.

Specified by:
init in class LazyObject<LazyDoubleObjectInspector>
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 © 2009 The Apache Software Foundation