public interface HBaseKeyFactory extends HiveStoragePredicateHandler
HiveStoragePredicateHandler.DecomposedPredicate| Modifier and Type | Method and Description |
|---|---|
void |
configureJobConf(TableDesc tableDesc,
org.apache.hadoop.mapred.JobConf jobConf)
configure jobConf for this factory
|
LazyObjectBase |
createKey(ObjectInspector inspector)
create custom object for hbase key
|
ObjectInspector |
createKeyObjectInspector(TypeInfo type)
create custom object inspector for hbase key
|
void |
init(HBaseSerDeParameters hbaseParam,
Properties properties)
initialize factory with properties
|
byte[] |
serializeKey(Object object,
StructField field)
serialize hive object in internal format of custom key
|
decomposePredicatevoid init(HBaseSerDeParameters hbaseParam, Properties properties) throws SerDeException
SerDeExceptionObjectInspector createKeyObjectInspector(TypeInfo type) throws SerDeException
type - type informationSerDeExceptionLazyObjectBase createKey(ObjectInspector inspector) throws SerDeException
inspector - OI create by createKeyObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo)SerDeExceptionbyte[] serializeKey(Object object, StructField field) throws IOException
object - field - IOExceptionvoid configureJobConf(TableDesc tableDesc, org.apache.hadoop.mapred.JobConf jobConf) throws IOException
tableDesc - jobConf - IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.