public class AvroHBaseValueFactory extends DefaultHBaseValueFactory
HBaseValueFactory
columnMappings, 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
|
createValueObject
public AvroHBaseValueFactory(int fieldID, org.apache.avro.Schema schema)
schema
- the associated schema
public void init(HBaseSerDeParameters hbaseParams, org.apache.hadoop.conf.Configuration conf, Properties properties) throws SerDeException
HBaseValueFactory
init
in interface HBaseValueFactory
init
in class DefaultHBaseValueFactory
hbaseParams
- the hbase parameters
conf
- the hadoop configuration
properties
- the custom Properties
SerDeException
- if there was an issue initializing the factorypublic ObjectInspector createValueObjectInspector(TypeInfo type) throws SerDeException
HBaseValueFactory
createValueObjectInspector
in interface HBaseValueFactory
createValueObjectInspector
in class DefaultHBaseValueFactory
type
- type informationSerDeException
- if there was an issue creating the object inspector
public byte[] serializeValue(Object object, StructField field) throws IOException
HBaseValueFactory
serializeValue
in interface HBaseValueFactory
serializeValue
in class DefaultHBaseValueFactory
object
- the object to be serializedfield
- the StructField
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.