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
|
decomposePredicate
void init(HBaseSerDeParameters hbaseParam, Properties properties) throws SerDeException
SerDeException
ObjectInspector createKeyObjectInspector(TypeInfo type) throws SerDeException
type
- type informationSerDeException
LazyObjectBase createKey(ObjectInspector inspector) throws SerDeException
inspector
- OI create by createKeyObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo)
SerDeException
byte[] serializeKey(Object object, StructField field) throws IOException
object
- field
- IOException
void configureJobConf(TableDesc tableDesc, org.apache.hadoop.mapred.JobConf jobConf) throws IOException
tableDesc
- jobConf
- IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.