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 |
oi
Modifier | Constructor and Description |
---|---|
protected |
LazyNonPrimitive(OI oi)
Create a LazyNonPrimitive object with the specified ObjectInspector.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObject()
If the LazyObjectBase is a primitive Object, then deserialize it and return the
actual primitive Object.
|
int |
hashCode() |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase.
|
getInspector, setInspector
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 class LazyObjectBase
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"ByteArrayRef
public java.lang.Object getObject()
LazyObjectBase
getObject
in class LazyObjectBase
public int hashCode()
hashCode
in class LazyObject<OI extends ObjectInspector>
Copyright © 2012 The Apache Software Foundation