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 parametersconf - the hadoop configurationproperties - the custom PropertiesSerDeException - if there was an issue initializing the factoryObjectInspector createValueObjectInspector(TypeInfo type) throws SerDeException
type - type informationSerDeException - if there was an issue creating the object inspectorLazyObjectBase createValueObject(ObjectInspector inspector) throws SerDeException
inspector - OI create by HBaseKeyFactory.createKeyObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo)SerDeExceptionbyte[] serializeValue(Object object, StructField field) throws IOException
object - the object to be serializedfield - the StructField{@link - IOException} if there was an issue serializing the valueIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.