|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector
public class StandardListObjectInspector
DefaultListObjectInspector works on list data that is stored as a Java List or Java Array object. 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 |
Constructor Summary | |
---|---|
protected |
StandardListObjectInspector(ObjectInspector listElementObjectInspector)
Call ObjectInspectorFactory.getStandardListObjectInspector 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 |
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. |
String |
getTypeName()
Returns the name of the data type that is inspected by this ObjectInspector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StandardListObjectInspector(ObjectInspector listElementObjectInspector)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |