public class DataModelDriver extends Object
Constructor and Description |
---|
DataModelDriver(DataModelDescriptor descriptor,
org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector sourceInspector)
Creates a new instance.
|
DataModelDriver(DataModelDescriptor descriptor,
org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector sourceInspector,
DataModelMapping configuration)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<org.apache.hadoop.hive.serde2.objectinspector.StructField> |
getSourceFields()
Returns source field references which will be actually mapped into the data model.
|
org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector |
getSourceInspector()
Returns the source object inspector.
|
void |
set(Object dataModel,
Object source)
Sets data model properties from the source object.
|
public DataModelDriver(DataModelDescriptor descriptor, org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector sourceInspector)
descriptor
- the target data model descriptorsourceInspector
- the object inspector for the drive datapublic DataModelDriver(DataModelDescriptor descriptor, org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector sourceInspector, DataModelMapping configuration)
descriptor
- the target data model descriptorsourceInspector
- the object inspector for the drive dataconfiguration
- the driver configurationpublic org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector getSourceInspector()
public List<org.apache.hadoop.hive.serde2.objectinspector.StructField> getSourceFields()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.