public class DefaultHBaseKeyFactory extends AbstractHBaseKeyFactory implements HBaseKeyFactory
HiveStoragePredicateHandler.DecomposedPredicate
Modifier and Type | Field and Description |
---|---|
protected LazySerDeParameters |
serdeParams |
protected HBaseRowSerializer |
serializer |
hbaseParams, keyMapping, properties
Constructor and Description |
---|
DefaultHBaseKeyFactory() |
Modifier and Type | Method and Description |
---|---|
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
|
configureJobConf, decomposePredicate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configureJobConf
decomposePredicate
protected LazySerDeParameters serdeParams
protected HBaseRowSerializer serializer
public void init(HBaseSerDeParameters hbaseParam, Properties properties) throws SerDeException
HBaseKeyFactory
init
in interface HBaseKeyFactory
init
in class AbstractHBaseKeyFactory
SerDeException
public ObjectInspector createKeyObjectInspector(TypeInfo type) throws SerDeException
HBaseKeyFactory
createKeyObjectInspector
in interface HBaseKeyFactory
type
- type informationSerDeException
public LazyObjectBase createKey(ObjectInspector inspector) throws SerDeException
HBaseKeyFactory
createKey
in interface HBaseKeyFactory
inspector
- OI create by HBaseKeyFactory.createKeyObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo)
SerDeException
public byte[] serializeKey(Object object, StructField field) throws IOException
HBaseKeyFactory
serializeKey
in interface HBaseKeyFactory
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.