public class LazyUnionObjectInspector extends java.lang.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 |
protected java.util.List<ObjectInspector> |
ois |
Modifier | Constructor and Description |
---|---|
protected |
LazyUnionObjectInspector(java.util.List<ObjectInspector> ois,
byte separator,
Text nullSequence) |
protected |
LazyUnionObjectInspector(java.util.List<ObjectInspector> ois,
byte separator,
Text nullSequence,
boolean escaped,
byte escapeChar) |
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() |
java.lang.Object |
getField(java.lang.Object data)
Return the field based on the tag associated with the Object.
|
Text |
getNullSequence() |
java.util.List<ObjectInspector> |
getObjectInspectors()
Returns the array of ObjectInspectors that are for each of the tags.
|
byte |
getSeparator() |
byte |
getTag(java.lang.Object data)
Return the tag of the object.
|
java.lang.String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
protected void |
init(java.util.List<ObjectInspector> ois,
byte separator,
Text nullSequence) |
protected void |
init(java.util.List<ObjectInspector> ois,
byte separator,
Text nullSequence,
boolean escaped,
byte escapeChar) |
boolean |
isEscaped() |
public static final org.apache.commons.logging.Log LOG
protected java.util.List<ObjectInspector> ois
protected LazyUnionObjectInspector(java.util.List<ObjectInspector> ois, byte separator, Text nullSequence, boolean escaped, byte escapeChar)
protected LazyUnionObjectInspector(java.util.List<ObjectInspector> ois, byte separator, Text nullSequence)
public java.lang.String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
protected void init(java.util.List<ObjectInspector> ois, byte separator, Text nullSequence, boolean escaped, byte escapeChar)
protected void init(java.util.List<ObjectInspector> ois, byte separator, Text nullSequence)
public final ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
public byte getSeparator()
public Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
public java.lang.Object getField(java.lang.Object data)
UnionObjectInspector
getField
in interface UnionObjectInspector
public java.util.List<ObjectInspector> getObjectInspectors()
UnionObjectInspector
getObjectInspectors
in interface UnionObjectInspector
public byte getTag(java.lang.Object data)
UnionObjectInspector
getTag
in interface UnionObjectInspector
Copyright © 2012 The Apache Software Foundation