public interface HBaseValueFactory
Modifier and Type | Method and Description |
---|---|
LazyObjectBase |
createValueObject(ObjectInspector inspector)
create custom object for hbase value
|
ObjectInspector |
createValueObjectInspector(TypeInfo type)
create custom object inspector for the value
|
void |
init(HBaseSerDeParameters hbaseParam,
org.apache.hadoop.conf.Configuration conf,
Properties properties)
Initialize factory with properties
|
byte[] |
serializeValue(Object object,
StructField field)
Serialize the given hive object
|
void init(HBaseSerDeParameters hbaseParam, org.apache.hadoop.conf.Configuration conf, Properties properties) throws SerDeException
hbaseParam
- the hbase parameters
conf
- the hadoop configuration
properties
- the custom Properties
SerDeException
- if there was an issue initializing the factoryObjectInspector createValueObjectInspector(TypeInfo type) throws SerDeException
type
- type informationSerDeException
- if there was an issue creating the object inspector
LazyObjectBase createValueObject(ObjectInspector inspector) throws SerDeException
inspector
- OI create by HBaseKeyFactory.createKeyObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo)
SerDeException
byte[] serializeValue(Object object, StructField field) throws IOException
object
- the object to be serializedfield
- the StructField
{@link
- IOException} if there was an issue serializing the valueIOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.