public class LazyUnionObjectInspector extends Object implements UnionObjectInspector
LazyObjectInspectorFactory
to create new
ObjectInspector objects, instead of directly creating an instance of this
class.ObjectInspector.Category
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Modifier | Constructor and Description |
---|---|
protected |
LazyUnionObjectInspector() |
protected |
LazyUnionObjectInspector(List<ObjectInspector> ois,
byte separator,
LazyObjectInspectorParameters lazyParams) |
Modifier and Type | Method and Description |
---|---|
ObjectInspector.Category |
getCategory()
An ObjectInspector must inherit from one of the following interfaces if
getCategory() returns: PRIMITIVE: PrimitiveObjectInspector LIST:
ListObjectInspector MAP: MapObjectInspector STRUCT: StructObjectInspector.
|
byte |
getEscapeChar() |
Object |
getField(Object data)
Return the field based on the tag associated with the Object.
|
LazyObjectInspectorParameters |
getLazyParams() |
org.apache.hadoop.io.Text |
getNullSequence() |
List<ObjectInspector> |
getObjectInspectors()
Returns the array of ObjectInspectors that are for each of the tags.
|
byte |
getSeparator() |
byte |
getTag(Object data)
Return the tag of the object.
|
String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
protected void |
init(List<ObjectInspector> ois,
byte separator,
LazyObjectInspectorParameters lazyParams) |
boolean |
isEscaped() |
protected LazyUnionObjectInspector()
protected LazyUnionObjectInspector(List<ObjectInspector> ois, byte separator, LazyObjectInspectorParameters lazyParams)
public String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
protected void init(List<ObjectInspector> ois, byte separator, LazyObjectInspectorParameters lazyParams)
public final ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
public byte getSeparator()
public org.apache.hadoop.io.Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
public LazyObjectInspectorParameters getLazyParams()
public Object getField(Object data)
UnionObjectInspector
getField
in interface UnionObjectInspector
public List<ObjectInspector> getObjectInspectors()
UnionObjectInspector
getObjectInspectors
in interface UnionObjectInspector
public byte getTag(Object data)
UnionObjectInspector
getTag
in interface UnionObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.