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)
LazyObjectBase
init
in interface 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 void setNull()
LazyObjectBase
setNull
in interface LazyObjectBase
public Object getObject()
getObject
in interface LazyObjectBase
Copyright © 2017 The Apache Software Foundation. All rights reserved.