public abstract class LazyNonPrimitive<OI extends ObjectInspector> extends LazyObject<OI>
Modifier and Type | Field and Description |
---|---|
protected ByteArrayRef |
bytes |
protected int |
length |
protected int |
start |
isNull, oi
Modifier | Constructor and Description |
---|---|
protected |
LazyNonPrimitive(OI oi)
Create a LazyNonPrimitive object with the specified ObjectInspector.
|
Modifier and Type | Method and Description |
---|---|
int |
hashCode() |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase.
|
protected boolean |
isNull(org.apache.hadoop.io.Text nullSequence,
byte[] bytes,
int fieldByteBegin,
int fieldLength) |
protected boolean |
isNull(org.apache.hadoop.io.Text nullSequence,
ByteArrayRef ref,
int fieldByteBegin,
int fieldLength) |
getInspector, getObject, setInspector, setNull
protected ByteArrayRef bytes
protected int start
protected int length
protected LazyNonPrimitive(OI oi)
oi
- The ObjectInspector would have to have a hierarchy of
LazyObjectInspectors with the leaf nodes being
WritableObjectInspectors. It's used both for accessing the type
hierarchy of the complex object, as well as getting meta
information (separator, nullSequence, etc) when parsing the lazy
object.public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBase
init
in interface LazyObjectBase
init
in class LazyObject<OI extends ObjectInspector>
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"ByteArrayRef
protected final boolean isNull(org.apache.hadoop.io.Text nullSequence, ByteArrayRef ref, int fieldByteBegin, int fieldLength)
protected final boolean isNull(org.apache.hadoop.io.Text nullSequence, byte[] bytes, int fieldByteBegin, int fieldLength)
public int hashCode()
hashCode
in class LazyObject<OI extends ObjectInspector>
Copyright © 2017 The Apache Software Foundation. All rights reserved.