Class StatisticsFilter

  • All Implemented Interfaces:
    FilterPredicate.Visitor<Boolean>

    public class StatisticsFilter
    extends Object
    implements FilterPredicate.Visitor<Boolean>
    Applies a FilterPredicate to statistics about a group of records. Note: the supplied predicate must not contain any instances of the not() operator as this is not supported by this filter. the supplied predicate should first be run through LogicalInverseRewriter to rewrite it in a form that doesn't make use of the not() operator. the supplied predicate should also have already been run through SchemaCompatibilityValidator to make sure it is compatible with the schema of this file. Returns true if all the records represented by the statistics in the provided column metadata can be dropped. false otherwise (including when it is not known, which is often the case).