|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.objectinspector.LazyListObjectInspector
public class LazyListObjectInspector
LazyListObjectInspector works on array data that is stored in LazyArray. Always use the ObjectInspectorFactory to create new ObjectInspector objects, instead of directly creating an instance of this class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
|---|
ObjectInspector.Category |
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
| Constructor Summary | |
|---|---|
protected |
LazyListObjectInspector(ObjectInspector listElementObjectInspector,
byte separator,
Text nullSequence,
boolean escaped,
byte escapeChar)
Call ObjectInspectorFactory.getLazySimpleListObjectInspector instead. |
| Method Summary | |
|---|---|
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()
|
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. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
protected LazyListObjectInspector(ObjectInspector listElementObjectInspector,
byte separator,
Text nullSequence,
boolean escaped,
byte escapeChar)
| Method Detail |
|---|
public final ObjectInspector.Category getCategory()
ObjectInspector
getCategory in interface ObjectInspectorpublic ObjectInspector getListElementObjectInspector()
getListElementObjectInspector in interface ListObjectInspector
public Object getListElement(Object data,
int index)
ListObjectInspector
getListElement in interface ListObjectInspectorpublic int getListLength(Object data)
ListObjectInspector
getListLength in interface ListObjectInspectorpublic List<?> getList(Object data)
ListObjectInspector
getList in interface ListObjectInspectorpublic String getTypeName()
ObjectInspector
getTypeName in interface ObjectInspectorpublic byte getSeparator()
public Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||