public class LazyListObjectInspector extends java.lang.Object implements ListObjectInspector
ObjectInspector.Category
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Modifier | Constructor and Description |
---|---|
protected |
LazyListObjectInspector(ObjectInspector listElementObjectInspector,
byte separator,
Text nullSequence,
boolean escaped,
byte escapeChar)
Call ObjectInspectorFactory.getLazySimpleListObjectInspector instead.
|
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.util.List<?> |
getList(java.lang.Object data)
returns null for data = null.
|
java.lang.Object |
getListElement(java.lang.Object data,
int index)
returns null for null list, out-of-the-range index.
|
ObjectInspector |
getListElementObjectInspector() |
int |
getListLength(java.lang.Object data)
returns -1 for data = null.
|
Text |
getNullSequence()
Returns the NullSequence for this array.
|
byte |
getSeparator()
Returns the separator for delimiting items in this array.
|
java.lang.String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
boolean |
isEscaped() |
protected LazyListObjectInspector(ObjectInspector listElementObjectInspector, byte separator, Text nullSequence, boolean escaped, byte escapeChar)
public final ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
public ObjectInspector getListElementObjectInspector()
getListElementObjectInspector
in interface ListObjectInspector
public java.lang.Object getListElement(java.lang.Object data, int index)
ListObjectInspector
getListElement
in interface ListObjectInspector
public int getListLength(java.lang.Object data)
ListObjectInspector
getListLength
in interface ListObjectInspector
public java.util.List<?> getList(java.lang.Object data)
ListObjectInspector
getList
in interface ListObjectInspector
public java.lang.String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
public byte getSeparator()
public Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
Copyright © 2012 The Apache Software Foundation