public abstract class LazyObject<OI extends ObjectInspector> extends Object implements LazyObjectBase
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isNull |
protected OI |
oi |
| Modifier | Constructor and Description |
|---|---|
protected |
LazyObject(OI oi)
Create a LazyObject.
|
| Modifier and Type | Method and Description |
|---|---|
protected OI |
getInspector() |
Object |
getObject()
Returns the primitive object represented by this LazyObject.
|
abstract int |
hashCode() |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase.
|
protected void |
setInspector(OI oi) |
void |
setNull()
called for null binary, hbase columns, for example
|
protected OI extends ObjectInspector oi
protected boolean isNull
protected LazyObject(OI oi)
oi - Derived classes can access meta information about this Lazy Object
(e.g, separator, nullSequence, escaper) from it.protected OI getInspector()
protected void setInspector(OI oi)
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBaseinit in interface LazyObjectBasebytes - The wrapper of the byte[].start - The start position inside the bytes.length - The length of the data, starting from "start"ByteArrayRefpublic void setNull()
LazyObjectBasesetNull in interface LazyObjectBasepublic Object getObject()
getObject in interface LazyObjectBaseCopyright © 2019 The Apache Software Foundation. All Rights Reserved.