public abstract class AbstractHBaseKeyPredicateDecomposer extends Object
HiveStoragePredicateHandler.DecomposedPredicate
. In order to create
one, consumers should extend this class and override the "getScanRange" method to define the
start/stop keys and/or filters on their hbase scansModifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
AbstractHBaseKeyPredicateDecomposer() |
Modifier and Type | Method and Description |
---|---|
HiveStoragePredicateHandler.DecomposedPredicate |
decomposePredicate(String keyColName,
ExprNodeDesc predicate) |
protected IndexPredicateAnalyzer.FieldValidator |
getFieldValidator()
Get an optional
validator . |
protected abstract HBaseScanRange |
getScanRange(List<IndexSearchCondition> searchConditions)
Get the scan range that specifies the start/stop keys and/or filters to be applied onto the
hbase scan
|
public HiveStoragePredicateHandler.DecomposedPredicate decomposePredicate(String keyColName, ExprNodeDesc predicate)
protected abstract HBaseScanRange getScanRange(List<IndexSearchCondition> searchConditions) throws Exception
Exception
protected IndexPredicateAnalyzer.FieldValidator getFieldValidator()
validator
. A validator can be
used to optinally filter out the predicates which need not be decomposed. By default this
method returns null
which means that all predicates are pushed but consumers can choose
to override this to provide a custom validator as well.Copyright © 2017 The Apache Software Foundation. All rights reserved.