public class LazySimpleStructObjectInspector extends StructObjectInspector
Modifier and Type | Class and Description |
---|---|
protected static class |
LazySimpleStructObjectInspector.MyField |
ObjectInspector.Category
Modifier and Type | Field and Description |
---|---|
protected java.util.List<LazySimpleStructObjectInspector.MyField> |
fields |
static org.apache.commons.logging.Log |
LOG |
Modifier | Constructor and Description |
---|---|
protected |
LazySimpleStructObjectInspector(java.util.List<java.lang.String> structFieldNames,
java.util.List<ObjectInspector> structFieldObjectInspectors,
byte separator,
Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
Call ObjectInspectorFactory.getLazySimpleStructObjectInspector instead.
|
|
LazySimpleStructObjectInspector(java.util.List<java.lang.String> structFieldNames,
java.util.List<ObjectInspector> structFieldObjectInspectors,
java.util.List<java.lang.String> structFieldComments,
byte separator,
Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar) |
protected |
LazySimpleStructObjectInspector(java.util.List<StructField> fields,
byte separator,
Text nullSequence) |
Modifier and Type | Method and Description |
---|---|
java.util.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() |
Text |
getNullSequence() |
byte |
getSeparator() |
java.lang.Object |
getStructFieldData(java.lang.Object data,
StructField fieldRef)
returns null for data = null.
|
StructField |
getStructFieldRef(java.lang.String fieldName)
Look up a field.
|
java.util.List<java.lang.Object> |
getStructFieldsDataAsList(java.lang.Object data)
returns null for data = null.
|
java.lang.String |
getTypeName()
Returns the name of the data type that is inspected by this
ObjectInspector.
|
protected void |
init(java.util.List<java.lang.String> structFieldNames,
java.util.List<ObjectInspector> structFieldObjectInspectors,
java.util.List<java.lang.String> structFieldComments,
byte separator,
Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar) |
protected void |
init(java.util.List<StructField> fields,
byte separator,
Text nullSequence) |
boolean |
isEscaped() |
isSettable, toString
public static final org.apache.commons.logging.Log LOG
protected java.util.List<LazySimpleStructObjectInspector.MyField> fields
protected LazySimpleStructObjectInspector(java.util.List<java.lang.String> structFieldNames, java.util.List<ObjectInspector> structFieldObjectInspectors, byte separator, Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar)
public LazySimpleStructObjectInspector(java.util.List<java.lang.String> structFieldNames, java.util.List<ObjectInspector> structFieldObjectInspectors, java.util.List<java.lang.String> structFieldComments, byte separator, Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar)
protected LazySimpleStructObjectInspector(java.util.List<StructField> fields, byte separator, Text nullSequence)
public java.lang.String getTypeName()
ObjectInspector
protected void init(java.util.List<java.lang.String> structFieldNames, java.util.List<ObjectInspector> structFieldObjectInspectors, java.util.List<java.lang.String> structFieldComments, byte separator, Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar)
protected void init(java.util.List<StructField> fields, byte separator, Text nullSequence)
public final ObjectInspector.Category getCategory()
ObjectInspector
public StructField getStructFieldRef(java.lang.String fieldName)
StructObjectInspector
getStructFieldRef
in class StructObjectInspector
public java.util.List<? extends StructField> getAllStructFieldRefs()
StructObjectInspector
getAllStructFieldRefs
in class StructObjectInspector
public java.lang.Object getStructFieldData(java.lang.Object data, StructField fieldRef)
StructObjectInspector
getStructFieldData
in class StructObjectInspector
public java.util.List<java.lang.Object> getStructFieldsDataAsList(java.lang.Object data)
StructObjectInspector
getStructFieldsDataAsList
in class StructObjectInspector
public byte getSeparator()
public Text getNullSequence()
public boolean getLastColumnTakesRest()
public boolean isEscaped()
public byte getEscapeChar()
Copyright © 2012 The Apache Software Foundation