public abstract class PropertyDescriptor extends Object implements org.apache.hadoop.hive.serde2.objectinspector.StructField, ValueSerde, PropertyExtractor
| Constructor and Description |
|---|
PropertyDescriptor(String name,
ValueSerde serde)
Creates a new instance.
|
PropertyDescriptor(String name,
ValueSerde serde,
String comment)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ValueOption<?> |
extract(Object dataModel)
Returns the target property in the data model.
|
ValueDriver |
getDriver(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector target)
Returns an
ValueDriver. |
String |
getFieldComment() |
int |
getFieldID() |
String |
getFieldName() |
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getFieldObjectInspector() |
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getInspector()
Returns an
ObjectInspector. |
ColumnInfo |
getSchema()
Returns the
ColumnInfo of this property. |
org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
getTypeInfo()
Returns the type info.
|
Class<? extends ValueOption<?>> |
getValueClass()
Returns the
ValueOption class. |
String |
toString() |
public PropertyDescriptor(String name, ValueSerde serde)
name - the property nameserde - the property accessorpublic PropertyDescriptor(String name, ValueSerde serde, String comment)
name - the property nameserde - the property accessorcomment - comment for the property (nullable)public abstract ValueOption<?> extract(Object dataModel)
PropertyExtractorextract in interface PropertyExtractordataModel - the target data modelnullpublic org.apache.hadoop.hive.serde2.typeinfo.TypeInfo getTypeInfo()
ValueSerdegetTypeInfo in interface ValueSerdepublic Class<? extends ValueOption<?>> getValueClass()
ValueSerdeValueOption class.getValueClass in interface ValueSerdeValueOption classpublic org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getInspector()
ValueSerdeObjectInspector.getInspector in interface ValueSerdeObjectInspectorpublic ValueDriver getDriver(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector target)
ValueSerdeValueDriver.getDriver in interface ValueSerdetarget - the target ObjectInspectorValueDriver for the target ObjectInspectorpublic String getFieldName()
getFieldName in interface org.apache.hadoop.hive.serde2.objectinspector.StructFieldpublic org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getFieldObjectInspector()
getFieldObjectInspector in interface org.apache.hadoop.hive.serde2.objectinspector.StructFieldpublic String getFieldComment()
getFieldComment in interface org.apache.hadoop.hive.serde2.objectinspector.StructFieldpublic int getFieldID()
getFieldID in interface org.apache.hadoop.hive.serde2.objectinspector.StructFieldpublic ColumnInfo getSchema()
ColumnInfo of this property.ColumnInfoCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.