Package org.apache.orc.impl.filter
Class FilterFactory
java.lang.Object
org.apache.orc.impl.filter.FilterFactory
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchFilter
createBatchFilter
(Reader.Options opts, TypeDescription readSchema, boolean isSchemaCaseAware, OrcFile.Version version, boolean normalize, String filePath, Configuration conf) Create a BatchFilter.static VectorFilter
createSArgFilter
(org.apache.hadoop.hive.ql.io.sarg.ExpressionTree expr, Set<String> colIds, List<org.apache.hadoop.hive.ql.io.sarg.PredicateLeaf> leaves, TypeDescription readSchema, boolean isSchemaCaseAware, OrcFile.Version version)
-
Constructor Details
-
FilterFactory
public FilterFactory()
-
-
Method Details
-
createBatchFilter
public static BatchFilter createBatchFilter(Reader.Options opts, TypeDescription readSchema, boolean isSchemaCaseAware, OrcFile.Version version, boolean normalize, String filePath, Configuration conf) Create a BatchFilter. This considers both the input filter and the SearchArgument filter. If both are available then they are compounded by AND.- Parameters:
opts
- for reading the filereadSchema
- that should be usedisSchemaCaseAware
- identifies if the schema is case-sensitiveversion
- provides the ORC file versionnormalize
- identifies if the SArg should be normalized or notfilePath
- that is fully qualified to determine plugin filter(s)conf
- configuration shared when determining Plugin filter(s)- Returns:
- BatchFilter that represents the SearchArgument or null
-
createSArgFilter
public static VectorFilter createSArgFilter(org.apache.hadoop.hive.ql.io.sarg.ExpressionTree expr, Set<String> colIds, List<org.apache.hadoop.hive.ql.io.sarg.PredicateLeaf> leaves, TypeDescription readSchema, boolean isSchemaCaseAware, OrcFile.Version version) throws FilterFactory.UnSupportedSArgException
-