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()
ObjectInspectorgetTypeName in interface ObjectInspectorprotected 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()
ObjectInspectorgetCategory in interface ObjectInspectorpublic byte getSeparator()
public Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
public java.lang.Object getField(java.lang.Object data)
UnionObjectInspectorgetField in interface UnionObjectInspectorpublic java.util.List<ObjectInspector> getObjectInspectors()
UnionObjectInspectorgetObjectInspectors in interface UnionObjectInspectorpublic byte getTag(java.lang.Object data)
UnionObjectInspectorgetTag in interface UnionObjectInspectorCopyright © 2012 The Apache Software Foundation