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

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
      extended by org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
          extended by org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyHiveVarcharObjectInspector,HiveVarcharWritable>
              extended by org.apache.hadoop.hive.serde2.lazy.LazyHiveVarchar

public class LazyHiveVarchar
extends LazyPrimitive<LazyHiveVarcharObjectInspector,HiveVarcharWritable>

LazyObject for storing a value of HiveVarchar.


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

Constructor Detail

LazyHiveVarchar

public LazyHiveVarchar(LazyHiveVarcharObjectInspector oi)

LazyHiveVarchar

public LazyHiveVarchar(LazyHiveVarchar copy)
Method Detail

setValue

public void setValue(LazyHiveVarchar copy)

init

public void init(ByteArrayRef bytes,
                 int start,
                 int length)
Description copied from class: LazyObjectBase
Set the data for this LazyObjectBase. 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 LazyObjectBase
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 © 2014 The Apache Software Foundation. All rights reserved.