public abstract class AbstractHBaseKeyFactory extends Object implements HBaseKeyFactory
HiveStoragePredicateHandler.DecomposedPredicate
Modifier and Type | Field and Description |
---|---|
protected HBaseSerDeParameters |
hbaseParams |
protected ColumnMappings.ColumnMapping |
keyMapping |
protected Properties |
properties |
Constructor and Description |
---|
AbstractHBaseKeyFactory() |
Modifier and Type | Method and Description |
---|---|
void |
configureJobConf(TableDesc tableDesc,
org.apache.hadoop.mapred.JobConf jobConf)
configure jobConf for this factory
|
HiveStoragePredicateHandler.DecomposedPredicate |
decomposePredicate(org.apache.hadoop.mapred.JobConf jobConf,
Deserializer deserializer,
ExprNodeDesc predicate)
Gives the storage handler a chance to decompose a predicate.
|
void |
init(HBaseSerDeParameters hbaseParam,
Properties properties)
initialize factory with properties
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createKey, createKeyObjectInspector, serializeKey
protected HBaseSerDeParameters hbaseParams
protected ColumnMappings.ColumnMapping keyMapping
protected Properties properties
public void init(HBaseSerDeParameters hbaseParam, Properties properties) throws SerDeException
HBaseKeyFactory
init
in interface HBaseKeyFactory
SerDeException
public void configureJobConf(TableDesc tableDesc, org.apache.hadoop.mapred.JobConf jobConf) throws IOException
HBaseKeyFactory
configureJobConf
in interface HBaseKeyFactory
IOException
public HiveStoragePredicateHandler.DecomposedPredicate decomposePredicate(org.apache.hadoop.mapred.JobConf jobConf, Deserializer deserializer, ExprNodeDesc predicate)
HiveStoragePredicateHandler
x = 2 AND upper(y)='YUM'
, the storage handler
might be able to handle x = 2
but leave the "residual"
upper(y)='YUM'
for Hive to deal with. The breakdown
need not be non-overlapping; for example, given the
predicate x LIKE 'a%b'
, the storage handler might
be able to evaluate the prefix search x LIKE 'a%'
, leaving
x LIKE '%b'
as the residual.decomposePredicate
in interface HiveStoragePredicateHandler
jobConf
- contains a job configuration matching the one that
will later be passed to getRecordReader and getSplitsdeserializer
- deserializer which will be used when
fetching rowspredicate
- predicate to be decomposedCopyright © 2017 The Apache Software Foundation. All rights reserved.