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