public class LazyListObjectInspector extends Object implements ListObjectInspector
ObjectInspector.Category| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
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()
ObjectInspectorgetCategory in interface ObjectInspectorpublic ObjectInspector getListElementObjectInspector()
getListElementObjectInspector in interface ListObjectInspectorpublic Object getListElement(Object data, int index)
ListObjectInspectorgetListElement in interface ListObjectInspectorpublic int getListLength(Object data)
ListObjectInspectorgetListLength in interface ListObjectInspectorpublic List<?> getList(Object data)
ListObjectInspectorgetList in interface ListObjectInspectorpublic String getTypeName()
ObjectInspectorgetTypeName in interface ObjectInspectorpublic byte getSeparator()
public org.apache.hadoop.io.Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
public LazyObjectInspectorParameters getLazyParams()
Copyright © 2022 The Apache Software Foundation. All rights reserved.