Package org.apache.parquet.filter2.predicate
package org.apache.parquet.filter2.predicate
-
ClassDescriptionRecursively rewrites Contains predicates composed using And or Or into a single Contains predicate containing all predicate assertions.The Filter API is expressed through these static methods.A FilterPredicate is an expression tree describing the criteria for which records to keep when loading data from a parquet file.A FilterPredicate Visitor must visit all the operators in a FilterPredicate expression tree, and must handle recursion itself, per the visitor pattern.Recursively removes all use of the not() operator in a predicate by replacing all instances of not(x) with the inverse(x), eg: not(and(eq(), not(eq(y))) -> or(notEq(), eq(y))Converts a
FilterPredicateto its logical inverse.These are the operators in a filter predicate expression tree.Operators.Column<T extends Comparable<T>>Operators.Contains<T extends Comparable<T>>Operators.Eq<T extends Comparable<T>>Operators.Gt<T extends Comparable<T>>Operators.GtEq<T extends Comparable<T>>Operators.In<T extends Comparable<T>>Operators.Lt<T extends Comparable<T>>Operators.LtEq<T extends Comparable<T>>Operators.NotEq<T extends Comparable<T>>Operators.NotIn<T extends Comparable<T>>Operators.SetColumnFilterPredicate<T extends Comparable<T>>Base class forOperators.InandOperators.NotIn.Operators.UserDefinedByInstance<T extends Comparable<T>,U extends UserDefinedPredicate<T> & Serializable> Converts aClass<primitive>to it's correspondingClass<Boxed>, egClass<int>toClass<Integer>Inspects the column types found in the providedFilterPredicateand compares them to the actual schema found in the parquet file.Statistics<T>Contains statistics about a group of recordsUserDefinedPredicate<T extends Comparable<T>>A UserDefinedPredicate decides whether a record should be kept or dropped, first by inspecting meta data about a group of records to see if the entire group can be dropped, then by inspecting actual values of a single column.Contains all valid mappings from class -> parquet type (and vice versa) for use inFilterPredicates