|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
org.apache.hadoop.hive.serde2.lazy.objectinspector.LazySimpleStructObjectInspector
public class LazySimpleStructObjectInspector
LazySimpleStructObjectInspector works on struct data that is stored in LazyStruct. The names of the struct fields and the internal structure of the struct fields are specified in the ctor of the LazySimpleStructObjectInspector. Always use the ObjectInspectorFactory to create new ObjectInspector objects, instead of directly creating an instance of this class.
Nested Class Summary | |
---|---|
protected static class |
LazySimpleStructObjectInspector.MyField
|
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
---|
ObjectInspector.Category |
Field Summary | |
---|---|
protected List<LazySimpleStructObjectInspector.MyField> |
fields
|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
protected |
LazySimpleStructObjectInspector(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
byte separator,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
Call ObjectInspectorFactory.getLazySimpleStructObjectInspector instead. |
protected |
LazySimpleStructObjectInspector(List<StructField> fields,
byte separator,
org.apache.hadoop.io.Text nullSequence)
|
Method Summary | |
---|---|
List<? extends StructField> |
getAllStructFieldRefs()
Returns all the fields. |
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()
|
boolean |
getLastColumnTakesRest()
|
org.apache.hadoop.io.Text |
getNullSequence()
|
byte |
getSeparator()
|
Object |
getStructFieldData(Object data,
StructField fieldRef)
returns null for data = null. |
StructField |
getStructFieldRef(String fieldName)
Look up a field. |
List<Object> |
getStructFieldsDataAsList(Object data)
returns null for data = null. |
String |
getTypeName()
Returns the name of the data type that is inspected by this ObjectInspector. |
protected void |
init(List<String> structFieldNames,
List<ObjectInspector> structFieldObjectInspectors,
byte separator,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
|
protected void |
init(List<StructField> fields,
byte separator,
org.apache.hadoop.io.Text nullSequence)
|
boolean |
isEscaped()
|
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
protected List<LazySimpleStructObjectInspector.MyField> fields
Constructor Detail |
---|
protected LazySimpleStructObjectInspector(List<String> structFieldNames, List<ObjectInspector> structFieldObjectInspectors, byte separator, org.apache.hadoop.io.Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar)
protected LazySimpleStructObjectInspector(List<StructField> fields, byte separator, org.apache.hadoop.io.Text nullSequence)
Method Detail |
---|
public String getTypeName()
ObjectInspector
protected void init(List<String> structFieldNames, List<ObjectInspector> structFieldObjectInspectors, byte separator, org.apache.hadoop.io.Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar)
protected void init(List<StructField> fields, byte separator, org.apache.hadoop.io.Text nullSequence)
public final ObjectInspector.Category getCategory()
ObjectInspector
public StructField getStructFieldRef(String fieldName)
StructObjectInspector
getStructFieldRef
in class StructObjectInspector
public List<? extends StructField> getAllStructFieldRefs()
StructObjectInspector
getAllStructFieldRefs
in class StructObjectInspector
public Object getStructFieldData(Object data, StructField fieldRef)
StructObjectInspector
getStructFieldData
in class StructObjectInspector
public List<Object> getStructFieldsDataAsList(Object data)
StructObjectInspector
getStructFieldsDataAsList
in class StructObjectInspector
public byte getSeparator()
public org.apache.hadoop.io.Text getNullSequence()
public boolean getLastColumnTakesRest()
public boolean isEscaped()
public byte getEscapeChar()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |