| Package | Description |
|---|---|
| org.apache.hadoop.hive.serde2 | |
| org.apache.hadoop.hive.serde2.avro | |
| org.apache.hadoop.hive.serde2.binarysortable.fast | |
| org.apache.hadoop.hive.serde2.fast | |
| org.apache.hadoop.hive.serde2.lazy | |
| org.apache.hadoop.hive.serde2.lazy.fast | |
| org.apache.hadoop.hive.serde2.lazybinary | |
| org.apache.hadoop.hive.serde2.lazybinary.fast | |
| org.apache.hadoop.hive.serde2.thrift | |
| org.apache.hadoop.hive.serde2.typeinfo |
This package provides the implementation of the SerDe type system.
|
| Modifier and Type | Method and Description |
|---|---|
List<TypeInfo> |
AbstractSerDe.getColumnTypes() |
List<TypeInfo> |
AbstractSerDe.getPartitionColumnTypes() |
protected List<TypeInfo> |
AbstractSerDe.parseColumnTypes() |
protected List<TypeInfo> |
AbstractSerDe.parseColumnTypes(String key) |
| Modifier and Type | Method and Description |
|---|---|
List<TypeInfo> |
AvroObjectInspectorGenerator.getColumnTypes() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.avro.Schema |
TypeInfoToSchema.convert(List<String> columnNames,
List<TypeInfo> columnTypes,
List<String> columnComments,
String namespace,
String name,
String doc)
Converts Hive schema to avro schema
|
static org.apache.avro.Schema |
AvroSerDe.getSchemaFromCols(Properties properties,
List<String> columnNames,
List<TypeInfo> columnTypes,
String columnCommentProperty) |
| Modifier and Type | Method and Description |
|---|---|
static BinarySortableDeserializeRead |
BinarySortableDeserializeRead.ascendingNullsFirst(TypeInfo[] typeInfos,
boolean useExternalBuffer) |
static BinarySortableDeserializeRead |
BinarySortableDeserializeRead.with(TypeInfo[] typeInfos,
boolean useExternalBuffer,
Properties tbl) |
| Constructor and Description |
|---|
BinarySortableDeserializeRead(TypeInfo[] typeInfos,
boolean useExternalBuffer,
boolean[] columnSortOrderIsDesc,
byte[] columnNullMarker,
byte[] columnNotNullMarker) |
BinarySortableDeserializeRead(TypeInfo[] typeInfos,
DataTypePhysicalVariation[] dataTypePhysicalVariations,
boolean useExternalBuffer,
boolean[] columnSortOrderIsDesc,
byte[] columnNullMarker,
byte[] columnNotNullMarker) |
| Modifier and Type | Field and Description |
|---|---|
protected TypeInfo[] |
DeserializeRead.typeInfos |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo[] |
DeserializeRead.typeInfos() |
| Constructor and Description |
|---|
DeserializeRead(TypeInfo[] typeInfos,
boolean useExternalBuffer) |
DeserializeRead(TypeInfo[] typeInfos,
DataTypePhysicalVariation[] dataTypePhysicalVariations,
boolean useExternalBuffer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
LazySerDeParameters.getRowTypeInfo() |
| Modifier and Type | Method and Description |
|---|---|
List<TypeInfo> |
LazySerDeParameters.getColumnTypes() |
protected List<TypeInfo> |
LazySimpleSerDe.parseColumnTypes()
NOTE: if "columns.types" is missing, all columns will be of String type.
|
| Modifier and Type | Method and Description |
|---|---|
static ObjectInspector |
LazyFactory.createLazyObjectInspector(TypeInfo typeInfo,
byte[] separators,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Deprecated.
|
static ObjectInspector |
LazyFactory.createLazyObjectInspector(TypeInfo typeInfo,
byte[] separators,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar,
boolean extendedBooleanLiteral)
Deprecated.
|
static ObjectInspector |
LazyFactory.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 |
LazyFactory.createLazyObjectInspector(TypeInfo typeInfo,
byte[] separators,
int separatorIndex,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar,
ObjectInspectorFactory.ObjectInspectorOptions option)
Deprecated.
|
static ObjectInspector |
LazyFactory.createLazyObjectInspector(TypeInfo typeInfo,
int separatorIndex,
LazyObjectInspectorParameters lazyParams,
ObjectInspectorFactory.ObjectInspectorOptions option)
Create a hierarchical ObjectInspector for LazyObject with the given typeInfo.
|
static boolean |
VerifyLazy.lazyCompare(TypeInfo typeInfo,
Object lazyObject,
Object expectedObject) |
| Modifier and Type | Method and Description |
|---|---|
static ObjectInspector |
LazyFactory.createColumnarStructInspector(List<String> columnNames,
List<TypeInfo> columnTypes,
byte[] separators,
org.apache.hadoop.io.Text nullSequence,
boolean escaped,
byte escapeChar)
Deprecated.
|
static ObjectInspector |
LazyFactory.createColumnarStructInspector(List<String> columnNames,
List<TypeInfo> columnTypes,
LazyObjectInspectorParameters lazyParams)
Create a hierarchical ObjectInspector for ColumnarStruct with the given
columnNames and columnTypeInfos.
|
static ObjectInspector |
LazyFactory.createLazyStructInspector(List<String> columnNames,
List<TypeInfo> typeInfos,
byte[] separators,
org.apache.hadoop.io.Text nullSequence,
boolean lastColumnTakesRest,
boolean escaped,
byte escapeChar)
Deprecated.
|
static ObjectInspector |
LazyFactory.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 |
LazyFactory.createLazyStructInspector(List<String> columnNames,
List<TypeInfo> typeInfos,
LazyObjectInspectorParameters lazyParams)
Create a hierarchical ObjectInspector for LazyStruct with the given
columnNames and columnTypeInfos.
|
| Constructor and Description |
|---|
LazySimpleDeserializeRead(TypeInfo[] typeInfos,
boolean useExternalBuffer,
LazySerDeParameters lazyParams) |
LazySimpleDeserializeRead(TypeInfo[] typeInfos,
DataTypePhysicalVariation[] dataTypePhysicalVariations,
boolean useExternalBuffer,
LazySerDeParameters lazyParams) |
| Modifier and Type | Method and Description |
|---|---|
static ObjectInspector |
LazyBinaryUtils.getLazyBinaryObjectInspectorFromTypeInfo(TypeInfo typeInfo)
Returns the lazy binary object inspector that can be used to inspect an
lazy binary object of that typeInfo
For primitive types, we use the standard writable object inspector.
|
| Modifier and Type | Method and Description |
|---|---|
static ObjectInspector |
LazyBinaryFactory.createColumnarStructInspector(List<String> columnNames,
List<TypeInfo> columnTypes) |
| Constructor and Description |
|---|
LazyBinaryDeserializeRead(TypeInfo[] typeInfos,
boolean useExternalBuffer) |
LazyBinaryDeserializeRead(TypeInfo[] typeInfos,
DataTypePhysicalVariation[] dataTypePhysicalVariations,
boolean useExternalBuffer) |
| Modifier and Type | Method and Description |
|---|---|
static Type |
Type.getType(TypeInfo typeInfo)
Convert TypeInfo to appropriate Type
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseCharTypeInfo |
class |
CharTypeInfo |
class |
DecimalTypeInfo |
class |
ListTypeInfo
A List Type has homogeneous elements.
|
class |
MapTypeInfo
A Map Type has homogeneous keys and homogeneous values.
|
class |
PrimitiveTypeInfo
There are limited number of Primitive Types.
|
class |
StructTypeInfo
StructTypeInfo represents the TypeInfo of a struct.
|
class |
TimestampLocalTZTypeInfo |
class |
UnionTypeInfo
UnionTypeInfo represents the TypeInfo of an union.
|
class |
VarcharTypeInfo |
| Modifier and Type | Method and Description |
|---|---|
static TypeInfo |
HiveDecimalUtils.getDecimalTypeForPrimitiveCategories(PrimitiveTypeInfo a,
PrimitiveTypeInfo b) |
TypeInfo |
ListTypeInfo.getListElementTypeInfo() |
static TypeInfo |
TypeInfoFactory.getListTypeInfo(TypeInfo elementTypeInfo) |
TypeInfo |
MapTypeInfo.getMapKeyTypeInfo() |
static TypeInfo |
TypeInfoFactory.getMapTypeInfo(TypeInfo keyTypeInfo,
TypeInfo valueTypeInfo) |
TypeInfo |
MapTypeInfo.getMapValueTypeInfo() |
static TypeInfo |
TypeInfoFactory.getPrimitiveTypeInfoFromJavaPrimitive(Class<?> clazz) |
static TypeInfo |
TypeInfoFactory.getPrimitiveTypeInfoFromPrimitiveWritable(Class<?> clazz) |
TypeInfo |
StructTypeInfo.getStructFieldTypeInfo(String field) |
static TypeInfo |
TypeInfoFactory.getStructTypeInfo(List<String> names,
List<TypeInfo> typeInfos) |
static TypeInfo |
TypeInfoUtils.getTypeInfoFromObjectInspector(ObjectInspector oi)
Get the TypeInfo object from the ObjectInspector object by recursively
going into the ObjectInspector structure.
|
static TypeInfo |
TypeInfoUtils.getTypeInfoFromTypeString(String typeString) |
static TypeInfo |
TypeInfoFactory.getUnionTypeInfo(List<TypeInfo> typeInfos) |
| Modifier and Type | Method and Description |
|---|---|
List<TypeInfo> |
StructTypeInfo.getAllStructFieldTypeInfos() |
List<TypeInfo> |
UnionTypeInfo.getAllUnionObjectTypeInfos() |
static List<TypeInfo> |
TypeInfoUtils.getParameterTypeInfos(Method m,
int size)
Get the parameter TypeInfo for a method.
|
static ArrayList<TypeInfo> |
TypeInfoUtils.getTypeInfosFromTypeString(String typeString) |
static ArrayList<TypeInfo> |
TypeInfoUtils.typeInfosFromStructObjectInspector(StructObjectInspector structObjectInspector) |
static ArrayList<TypeInfo> |
TypeInfoUtils.typeInfosFromTypeNames(List<String> typeNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DecimalTypeInfo.accept(TypeInfo other) |
boolean |
TypeInfo.accept(TypeInfo other) |
static boolean |
TypeInfoUtils.doPrimitiveCategoriesMatch(TypeInfo ti1,
TypeInfo ti2)
returns true if both TypeInfos are of primitive type, and the primitive category matches.
|
static TypeInfo |
TypeInfoFactory.getListTypeInfo(TypeInfo elementTypeInfo) |
static TypeInfo |
TypeInfoFactory.getMapTypeInfo(TypeInfo keyTypeInfo,
TypeInfo valueTypeInfo) |
static ObjectInspector |
TypeInfoUtils.getStandardJavaObjectInspectorFromTypeInfo(TypeInfo typeInfo)
Returns the standard object inspector that can be used to translate an
object of that typeInfo to a standard object type.
|
static ObjectInspector |
TypeInfoUtils.getStandardWritableObjectInspectorFromTypeInfo(TypeInfo typeInfo)
Returns the standard object inspector that can be used to translate an
object of that typeInfo to a standard object type.
|
static boolean |
TypeInfoUtils.implicitConvertible(TypeInfo from,
TypeInfo to)
Returns whether it is possible to implicitly convert an object of Class
from to Class to.
|
static boolean |
TypeInfoUtils.isConversionLossy(TypeInfo t1,
TypeInfo t2)
Returns true if the conversion between the types is lossy (i.e., it can lead to loss of information), and false
otherwise.
|
static boolean |
TypeInfoUtils.isConversionRequiredForComparison(TypeInfo typeA,
TypeInfo typeB)
Given two types, determine whether conversion needs to occur to compare the two types.
|
void |
ListTypeInfo.setListElementTypeInfo(TypeInfo listElementTypeInfo)
For java serialization use only.
|
void |
MapTypeInfo.setMapKeyTypeInfo(TypeInfo mapKeyTypeInfo)
For java serialization use only.
|
void |
MapTypeInfo.setMapValueTypeInfo(TypeInfo mapValueTypeInfo)
For java serialization use only.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeInfo |
TypeInfoFactory.getStructTypeInfo(List<String> names,
List<TypeInfo> typeInfos) |
static List<String> |
TypeInfoUtils.getTypeStringsFromTypeInfo(List<TypeInfo> typeInfos) |
static TypeInfo |
TypeInfoFactory.getUnionTypeInfo(List<TypeInfo> typeInfos) |
void |
StructTypeInfo.setAllStructFieldTypeInfos(List<TypeInfo> allStructFieldTypeInfos)
For java serialization use only.
|
void |
UnionTypeInfo.setAllUnionObjectTypeInfos(List<TypeInfo> allUnionObjectTypeInfos)
For java serialization use only.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.