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, decomposePredicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigureJobConfdecomposePredicateprotected LazySerDeParameters serdeParams
protected HBaseRowSerializer serializer
public void init(HBaseSerDeParameters hbaseParam, Properties properties) throws SerDeException
HBaseKeyFactoryinit in interface HBaseKeyFactoryinit in class AbstractHBaseKeyFactorySerDeExceptionpublic ObjectInspector createKeyObjectInspector(TypeInfo type) throws SerDeException
HBaseKeyFactorycreateKeyObjectInspector in interface HBaseKeyFactorytype - type informationSerDeExceptionpublic LazyObjectBase createKey(ObjectInspector inspector) throws SerDeException
HBaseKeyFactorycreateKey in interface HBaseKeyFactoryinspector - OI create by HBaseKeyFactory.createKeyObjectInspector(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo)SerDeExceptionpublic byte[] serializeKey(Object object, StructField field) throws IOException
HBaseKeyFactoryserializeKey in interface HBaseKeyFactoryIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.