public class DataModelInspector
extends org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
Constructor and Description |
---|
DataModelInspector(DataModelDescriptor descriptor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<? extends org.apache.hadoop.hive.serde2.objectinspector.StructField> |
getAllStructFieldRefs() |
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category |
getCategory() |
Object |
getStructFieldData(Object data,
org.apache.hadoop.hive.serde2.objectinspector.StructField field) |
org.apache.hadoop.hive.serde2.objectinspector.StructField |
getStructFieldRef(String name) |
List<Object> |
getStructFieldsDataAsList(Object data) |
String |
getTypeName() |
public DataModelInspector(DataModelDescriptor descriptor)
descriptor
- the target data model descriptorpublic org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category getCategory()
public String getTypeName()
public List<? extends org.apache.hadoop.hive.serde2.objectinspector.StructField> getAllStructFieldRefs()
getAllStructFieldRefs
in class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
public Object getStructFieldData(Object data, org.apache.hadoop.hive.serde2.objectinspector.StructField field)
getStructFieldData
in class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
public org.apache.hadoop.hive.serde2.objectinspector.StructField getStructFieldRef(String name)
getStructFieldRef
in class org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.