org.apache.hadoop.hive.serde2.columnar
Class LazyBinaryColumnarStruct

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.columnar.ColumnarStructBase
      extended by org.apache.hadoop.hive.serde2.columnar.LazyBinaryColumnarStruct
All Implemented Interfaces:
SerDeStatsStruct

public class LazyBinaryColumnarStruct
extends ColumnarStructBase


Field Summary
 
Fields inherited from class org.apache.hadoop.hive.serde2.columnar.ColumnarStructBase
prjColIDs
 
Constructor Summary
LazyBinaryColumnarStruct(ObjectInspector oi, ArrayList<Integer> notSkippedColumnIDs)
           
 
Method Summary
protected  LazyObjectBase createLazyObjectBase(ObjectInspector objectInspector)
          create the lazy object for this field
protected  int getLength(ObjectInspector objectInspector, ByteArrayRef cachedByteArrayRef, int start, int length)
          Check if the object is null and return the length of the stream
 
Methods inherited from class org.apache.hadoop.hive.serde2.columnar.ColumnarStructBase
getField, getFieldsAsList, getRawDataSerializedSize, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyBinaryColumnarStruct

public LazyBinaryColumnarStruct(ObjectInspector oi,
                                ArrayList<Integer> notSkippedColumnIDs)
Method Detail

getLength

protected int getLength(ObjectInspector objectInspector,
                        ByteArrayRef cachedByteArrayRef,
                        int start,
                        int length)
Description copied from class: ColumnarStructBase
Check if the object is null and return the length of the stream

Specified by:
getLength in class ColumnarStructBase
cachedByteArrayRef - the bytes of the object
start - the start offset
length - the length
Returns:
-1 for null, >=0 for length

createLazyObjectBase

protected LazyObjectBase createLazyObjectBase(ObjectInspector objectInspector)
Description copied from class: ColumnarStructBase
create the lazy object for this field

Specified by:
createLazyObjectBase in class ColumnarStructBase
Parameters:
objectInspector - the object inspector for the field
Returns:
the lazy object for the field


Copyright © 2013 The Apache Software Foundation