Package org.apache.parquet.filter2.predicate
-
Interface Summary Interface Description FilterPredicate A FilterPredicate is an expression tree describing the criteria for which records to keep when loading data from a parquet file.FilterPredicate.Visitor<R> A FilterPredicate Visitor must visit all the operators in a FilterPredicate expression tree, and must handle recursion itself, per the visitor pattern.Operators.SupportsEqNotEq Operators.SupportsLtGt -
Class Summary Class Description FilterApi The Filter API is expressed through these static methods.LogicalInverseRewriter 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)) The returned predicate should have the same meaning as the original, but without the use of the not() operator.LogicalInverter Converts aFilterPredicateto its logical inverse.Operators These are the operators in a filter predicate expression tree.Operators.And Operators.BinaryColumn Operators.BooleanColumn Operators.Column<T extends Comparable<T>> Operators.DoubleColumn Operators.Eq<T extends Comparable<T>> Operators.FloatColumn Operators.Gt<T extends Comparable<T>> Operators.GtEq<T extends Comparable<T>> Operators.IntColumn Operators.LogicalNotUserDefined<T extends Comparable<T>,U extends UserDefinedPredicate<T>> Operators.LongColumn Operators.Lt<T extends Comparable<T>> Operators.LtEq<T extends Comparable<T>> Operators.Not Operators.NotEq<T extends Comparable<T>> Operators.Or Operators.UserDefined<T extends Comparable<T>,U extends UserDefinedPredicate<T>> Operators.UserDefinedByClass<T extends Comparable<T>,U extends UserDefinedPredicate<T>> Operators.UserDefinedByInstance<T extends Comparable<T>,U extends UserDefinedPredicate<T> & Serializable> PrimitiveToBoxedClass Converts aClass<primitive>to it's correspondingClass<Boxed>, egClass<int>toClass<Integer>SchemaCompatibilityValidator 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.ValidTypeMap Contains all valid mappings from class -> parquet type (and vice versa) for use inFilterPredicates This is a bit ugly, but it allows us to provide good error messages at runtime when there are type mismatches.