Class IcebergObjectInspector
- java.lang.Object
-
- org.apache.iceberg.types.TypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
- org.apache.iceberg.mr.hive.serde.objectinspector.IcebergObjectInspector
-
public final class IcebergObjectInspector extends TypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
DATE_INSPECTOR
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
TIMESTAMP_INSPECTOR
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
TIMESTAMP_INSPECTOR_WITH_TZ
-
Constructor Summary
Constructors Constructor Description IcebergObjectInspector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
create(Schema schema)
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
create(Types.NestedField... fields)
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
field(Types.NestedField field, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector fieldObjectInspector)
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
list(Types.ListType listTypeInfo, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector listObjectInspector)
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
map(Types.MapType mapType, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector keyObjectInspector, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector valueObjectInspector)
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
primitive(Type.PrimitiveType primitiveType)
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
schema(Schema schema, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector structObjectInspector)
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
struct(Types.StructType structType, java.util.List<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector> fieldObjectInspectors)
-
Methods inherited from class org.apache.iceberg.types.TypeUtil.SchemaVisitor
afterField, afterListElement, afterMapKey, afterMapValue, beforeField, beforeListElement, beforeMapKey, beforeMapValue
-
-
-
-
Field Detail
-
DATE_INSPECTOR
public static final org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector DATE_INSPECTOR
-
TIMESTAMP_INSPECTOR
public static final org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector TIMESTAMP_INSPECTOR
-
TIMESTAMP_INSPECTOR_WITH_TZ
public static final org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector TIMESTAMP_INSPECTOR_WITH_TZ
-
-
Method Detail
-
create
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector create(@Nullable Schema schema)
-
create
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector create(Types.NestedField... fields)
-
field
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector field(Types.NestedField field, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector fieldObjectInspector)
- Overrides:
field
in classTypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
list
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector list(Types.ListType listTypeInfo, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector listObjectInspector)
- Overrides:
list
in classTypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
map
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector map(Types.MapType mapType, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector keyObjectInspector, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector valueObjectInspector)
- Overrides:
map
in classTypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
primitive
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector primitive(Type.PrimitiveType primitiveType)
- Overrides:
primitive
in classTypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
schema
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector schema(Schema schema, org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector structObjectInspector)
- Overrides:
schema
in classTypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
struct
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector struct(Types.StructType structType, java.util.List<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector> fieldObjectInspectors)
- Overrides:
struct
in classTypeUtil.SchemaVisitor<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector>
-
-