public final class LazyFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static ObjectInspector |
createColumnarStructInspector(List<String> columnNames,
List<TypeInfo> columnTypes,
byte[] separators,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Deprecated.
|
static ObjectInspector |
createColumnarStructInspector(List<String> columnNames,
List<TypeInfo> columnTypes,
LazyObjectInspectorParameters lazyParams)
Create a hierarchical ObjectInspector for ColumnarStruct with the given
columnNames and columnTypeInfos.
|
static LazyObject<? extends ObjectInspector> |
createLazyObject(ObjectInspector oi)
Create a hierarchical LazyObject based on the given typeInfo.
|
static LazyObject<? extends ObjectInspector> |
createLazyObject(ObjectInspector oi,
boolean typeBinary)
Creates a LazyObject based on the LazyObjectInspector.
|
static ObjectInspector |
createLazyObjectInspector(TypeInfo typeInfo,
byte[] separators,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Deprecated.
|
static ObjectInspector |
createLazyObjectInspector(TypeInfo typeInfo,
byte[] separators,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar,
boolean extendedBooleanLiteral)
Deprecated.
|
static ObjectInspector |
createLazyObjectInspector(TypeInfo typeInfo,
byte[] separators,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar,
boolean extendedBooleanLiteral,
ObjectInspectorFactory.ObjectInspectorOptions option)
Deprecated.
|
static ObjectInspector |
createLazyObjectInspector(TypeInfo typeInfo,
byte[] separators,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar,
ObjectInspectorFactory.ObjectInspectorOptions option)
Deprecated.
|
static ObjectInspector |
createLazyObjectInspector(TypeInfo typeInfo,
int separatorIndex,
LazyObjectInspectorParameters lazyParams,
ObjectInspectorFactory.ObjectInspectorOptions option)
Create a hierarchical ObjectInspector for LazyObject with the given typeInfo.
|
static LazyPrimitive<? extends ObjectInspector,? extends org.apache.hadoop.io.Writable> |
createLazyPrimitiveBinaryClass(PrimitiveObjectInspector poi) |
static LazyPrimitive<? extends ObjectInspector,? extends org.apache.hadoop.io.Writable> |
createLazyPrimitiveClass(PrimitiveObjectInspector oi)
Create a lazy primitive class given the type name.
|
static LazyPrimitive<? extends ObjectInspector,? extends org.apache.hadoop.io.Writable> |
createLazyPrimitiveClass(PrimitiveObjectInspector poi,
boolean typeBinary)
Create a lazy primitive object instance given a primitive object inspector based on it's
type.
|
static ObjectInspector |
createLazyStructInspector(List<String> columnNames,
List<TypeInfo> typeInfos,
byte[] separators,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
Deprecated.
|
static ObjectInspector |
createLazyStructInspector(List<String> columnNames,
List<TypeInfo> typeInfos,
byte[] separators,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar,
boolean extendedBooleanLiteral)
Deprecated.
|
static ObjectInspector |
createLazyStructInspector(List<String> columnNames,
List<TypeInfo> typeInfos,
LazyObjectInspectorParameters lazyParams)
Create a hierarchical ObjectInspector for LazyStruct with the given
columnNames and columnTypeInfos.
|
public static LazyPrimitive<? extends ObjectInspector,? extends org.apache.hadoop.io.Writable> createLazyPrimitiveClass(PrimitiveObjectInspector poi, boolean typeBinary)
poi - PrimitiveObjectInspectortypeBinary - a switch to return either a LazyPrimtive class or it's binary
companionpublic static LazyPrimitive<? extends ObjectInspector,? extends org.apache.hadoop.io.Writable> createLazyPrimitiveClass(PrimitiveObjectInspector oi)
public static LazyPrimitive<? extends ObjectInspector,? extends org.apache.hadoop.io.Writable> createLazyPrimitiveBinaryClass(PrimitiveObjectInspector poi)
public static LazyObject<? extends ObjectInspector> createLazyObject(ObjectInspector oi)
public static LazyObject<? extends ObjectInspector> createLazyObject(ObjectInspector oi, boolean typeBinary)
typeBinary is specified as true.oi - ObjectInspectortypeBinary - Boolean value used as switch to return variants of LazyPrimitive
objects which are initialized from a binary format for the data.@Deprecated public static ObjectInspector createLazyObjectInspector(TypeInfo typeInfo, byte[] separators, int separatorIndex, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar, ObjectInspectorFactory.ObjectInspectorOptions option) throws SerDeException
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.SerDeException@Deprecated public static ObjectInspector createLazyObjectInspector(TypeInfo typeInfo, byte[] separators, int separatorIndex, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar) throws SerDeException
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.SerDeException@Deprecated public static ObjectInspector createLazyObjectInspector(TypeInfo typeInfo, byte[] separators, int separatorIndex, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar, boolean extendedBooleanLiteral) throws SerDeException
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.extendedBooleanLiteral - whether extended boolean literal set is legaloption - the ObjectInspectorOptionSerDeException@Deprecated public static ObjectInspector createLazyObjectInspector(TypeInfo typeInfo, byte[] separators, int separatorIndex, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar, boolean extendedBooleanLiteral, ObjectInspectorFactory.ObjectInspectorOptions option) throws SerDeException
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.extendedBooleanLiteral - whether extended boolean literal set is legaloption - the ObjectInspectorOptionSerDeExceptionpublic static ObjectInspector createLazyObjectInspector(TypeInfo typeInfo, int separatorIndex, LazyObjectInspectorParameters lazyParams, ObjectInspectorFactory.ObjectInspectorOptions option) throws SerDeException
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.lazyParams - Params for lazy typesoption - the ObjectInspectorOptionSerDeException@Deprecated public static ObjectInspector createLazyStructInspector(List<String> columnNames, List<TypeInfo> typeInfos, byte[] separators, org.apache.hadoop.io.Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar) throws SerDeException
lastColumnTakesRest - whether the last column of the struct should take the rest of the
row if there are extra fields.SerDeExceptioncreateLazyObjectInspector(TypeInfo, byte[], int, Text,
boolean, byte)@Deprecated public static ObjectInspector createLazyStructInspector(List<String> columnNames, List<TypeInfo> typeInfos, byte[] separators, org.apache.hadoop.io.Text nullSequence, boolean lastColumnTakesRest, boolean escaped, byte escapeChar, boolean extendedBooleanLiteral) throws SerDeException
lastColumnTakesRest - whether the last column of the struct should take the rest of the
row if there are extra fields.extendedBooleanLiteral - whether extended boolean literal set is legalSerDeExceptioncreateLazyObjectInspector(TypeInfo, byte[], int, Text,
boolean, byte)public static ObjectInspector createLazyStructInspector(List<String> columnNames, List<TypeInfo> typeInfos, LazyObjectInspectorParameters lazyParams) throws SerDeException
lastColumnTakesRest - whether the last column of the struct should take the rest of the
row if there are extra fields.lazyParams - parameters for the lazy typesSerDeExceptioncreateLazyObjectInspector(TypeInfo, byte[], int, Text,
boolean, byte)@Deprecated public static ObjectInspector createColumnarStructInspector(List<String> columnNames, List<TypeInfo> columnTypes, byte[] separators, org.apache.hadoop.io.Text nullSequence, boolean escaped, byte escapeChar) throws SerDeException
public static ObjectInspector createColumnarStructInspector(List<String> columnNames, List<TypeInfo> columnTypes, LazyObjectInspectorParameters lazyParams) throws SerDeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.