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|
Struct class for returning multiple values from decomposePredicate.
|Modifier and Type||Method and Description|
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 = 2but 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 getSplits
deserializer- deserializer which will be used when fetching rows
predicate- predicate to be decomposed
Copyright © 2017 The Apache Software Foundation. All rights reserved.