public interface HiveStoragePredicateHandler
HiveStorageHandler
; it should only be implemented by handlers which
support decomposition of predicates being pushed down into table scans.Modifier and Type | Interface and Description |
---|---|
static class |
HiveStoragePredicateHandler.DecomposedPredicate
Struct class for returning multiple values from decomposePredicate.
|
Modifier and Type | Method and Description |
---|---|
HiveStoragePredicateHandler.DecomposedPredicate |
decomposePredicate(org.apache.hadoop.mapred.JobConf jobConf,
Deserializer deserializer,
ExprNodeDesc predicate)
Gives the storage handler a chance to decompose a predicate.
|
HiveStoragePredicateHandler.DecomposedPredicate decomposePredicate(org.apache.hadoop.mapred.JobConf jobConf, Deserializer deserializer, ExprNodeDesc predicate)
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.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.