public class LazyUnion extends LazyNonPrimitive<LazyUnionObjectInspector>
bytes, length, start
isNull, oi
Constructor and Description |
---|
LazyUnion(LazyUnionObjectInspector oi)
Construct a LazyUnion object with the ObjectInspector.
|
LazyUnion(LazyUnionObjectInspector oi,
byte tag,
Object field) |
Modifier and Type | Method and Description |
---|---|
Object |
getField()
Get the field out of the union.
|
byte |
getTag()
Get the tag of the union
|
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the row data for this LazyUnion.
|
hashCode, isNull, isNull
getInspector, getObject, setInspector, setNull
public LazyUnion(LazyUnionObjectInspector oi)
public LazyUnion(LazyUnionObjectInspector oi, byte tag, Object field)
public void init(ByteArrayRef bytes, int start, int length)
init
in interface LazyObjectBase
init
in class LazyNonPrimitive<LazyUnionObjectInspector>
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"LazyObject.init(ByteArrayRef, int, int)
public Object getField()
public byte getTag()
Copyright © 2017 The Apache Software Foundation. All rights reserved.