|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.LazyFactory
public class LazyFactory
Constructor Summary | |
---|---|
LazyFactory()
|
Method Summary | |
---|---|
static ObjectInspector |
createColumnarStructInspector(List<String> columnNames,
List<TypeInfo> columnTypes,
byte[] separators,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Create a hierarchical ObjectInspector for ColumnarStruct with the given columnNames and columnTypeInfos. |
static LazyObject |
createLazyObject(ObjectInspector oi)
Create a hierarchical LazyObject based on the given typeInfo. |
static ObjectInspector |
createLazyObjectInspector(TypeInfo typeInfo,
byte[] separator,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Create a hierarchical ObjectInspector for LazyObject with the given typeInfo. |
static LazyPrimitive<?,?> |
createLazyPrimitiveClass(PrimitiveObjectInspector oi)
Create a lazy primitive class given the type name. |
static ObjectInspector |
createLazyStructInspector(List<String> columnNames,
List<TypeInfo> typeInfos,
byte[] separators,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
Create a hierarchical ObjectInspector for LazyStruct with the given columnNames and columnTypeInfos. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LazyFactory()
Method Detail |
---|
public static LazyPrimitive<?,?> createLazyPrimitiveClass(PrimitiveObjectInspector oi)
public static LazyObject createLazyObject(ObjectInspector oi)
public static ObjectInspector createLazyObjectInspector(TypeInfo typeInfo, byte[] separator, int separatorIndex, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar)
typeInfo
- The type information for the LazyObjectseparator
- The array of separators for delimiting each levelseparatorIndex
- The current level (for separators). List(array),
struct uses 1 level of separator, and map uses 2
levels: the first one for delimiting entries, the
second one for delimiting key and values.nullSequence
- The sequence of bytes representing NULL.
public static ObjectInspector createLazyStructInspector(List<String> columnNames, List<TypeInfo> typeInfos, byte[] separators, org.apache.hadoop.io.Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar)
lastColumnTakesRest
- whether the last column of the struct should take
the rest of the row if there are extra fields.createLazyObjectInspector(TypeInfo, byte[], int, Text, boolean, byte)
public static ObjectInspector createColumnarStructInspector(List<String> columnNames, List<TypeInfo> columnTypes, byte[] separators, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar)
createLazyObjectInspector(TypeInfo, byte[], int, Text, boolean, byte)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |