public class LazyUnion extends LazyNonPrimitive<LazyUnionObjectInspector>
bytes, length, startisNull, 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, isNullgetInspector, getObject, setInspector, setNullpublic LazyUnion(LazyUnionObjectInspector oi)
public LazyUnion(LazyUnionObjectInspector oi, byte tag, Object field)
public void init(ByteArrayRef bytes, int start, int length)
init in interface LazyObjectBaseinit 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 © 2019 The Apache Software Foundation. All Rights Reserved.