public class AvroHBaseValueFactory extends DefaultHBaseValueFactory
HBaseValueFactorycolumnMappings, conf, hbaseParams, properties, serdeParams| Constructor and Description |
|---|
AvroHBaseValueFactory(int fieldID,
org.apache.avro.Schema schema)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ObjectInspector |
createValueObjectInspector(TypeInfo type)
create custom object inspector for the value
|
void |
init(HBaseSerDeParameters hbaseParams,
org.apache.hadoop.conf.Configuration conf,
Properties properties)
Initialize factory with properties
|
byte[] |
serializeValue(Object object,
StructField field)
Serialize the given hive object
|
createValueObjectpublic AvroHBaseValueFactory(int fieldID,
org.apache.avro.Schema schema)
schema - the associated schemapublic void init(HBaseSerDeParameters hbaseParams, org.apache.hadoop.conf.Configuration conf, Properties properties) throws SerDeException
HBaseValueFactoryinit in interface HBaseValueFactoryinit in class DefaultHBaseValueFactoryhbaseParams - the hbase parametersconf - the hadoop configurationproperties - the custom PropertiesSerDeException - if there was an issue initializing the factorypublic ObjectInspector createValueObjectInspector(TypeInfo type) throws SerDeException
HBaseValueFactorycreateValueObjectInspector in interface HBaseValueFactorycreateValueObjectInspector in class DefaultHBaseValueFactorytype - type informationSerDeException - if there was an issue creating the object inspectorpublic byte[] serializeValue(Object object, StructField field) throws IOException
HBaseValueFactoryserializeValue in interface HBaseValueFactoryserializeValue in class DefaultHBaseValueFactoryobject - the object to be serializedfield - the StructFieldIOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.