|
||||||||||
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.LazyUnionObjectInspector
public class LazyUnionObjectInspector
LazyUnionObjectInspector works on union data that is stored in LazyUnion.
Always use the LazyObjectInspectorFactory
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
|
protected List<ObjectInspector> |
ois
|
Constructor Summary | |
---|---|
protected |
LazyUnionObjectInspector(List<ObjectInspector> ois,
byte separator,
Text nullSequence)
|
protected |
LazyUnionObjectInspector(List<ObjectInspector> ois,
byte separator,
Text nullSequence,
boolean escaped,
byte escapeChar)
|
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()
|
Object |
getField(Object data)
Return the field based on the tag associated with the Object. |
Text |
getNullSequence()
|
List<ObjectInspector> |
getObjectInspectors()
Returns the array of ObjectInspectors that are for each of the tags. |
byte |
getSeparator()
|
byte |
getTag(Object data)
Return the tag of the object. |
String |
getTypeName()
Returns the name of the data type that is inspected by this ObjectInspector. |
protected void |
init(List<ObjectInspector> ois,
byte separator,
Text nullSequence)
|
protected void |
init(List<ObjectInspector> ois,
byte separator,
Text nullSequence,
boolean escaped,
byte escapeChar)
|
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
protected List<ObjectInspector> ois
Constructor Detail |
---|
protected LazyUnionObjectInspector(List<ObjectInspector> ois, byte separator, Text nullSequence, boolean escaped, byte escapeChar)
protected LazyUnionObjectInspector(List<ObjectInspector> ois, byte separator, Text nullSequence)
Method Detail |
---|
public String getTypeName()
ObjectInspector
getTypeName
in interface ObjectInspector
protected void init(List<ObjectInspector> ois, byte separator, Text nullSequence, boolean escaped, byte escapeChar)
protected void init(List<ObjectInspector> ois, byte separator, Text nullSequence)
public final ObjectInspector.Category getCategory()
ObjectInspector
getCategory
in interface ObjectInspector
public byte getSeparator()
public Text getNullSequence()
public boolean isEscaped()
public byte getEscapeChar()
public Object getField(Object data)
UnionObjectInspector
getField
in interface UnionObjectInspector
public List<ObjectInspector> getObjectInspectors()
UnionObjectInspector
getObjectInspectors
in interface UnionObjectInspector
public byte getTag(Object data)
UnionObjectInspector
getTag
in interface UnionObjectInspector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |