Class IncrementallyUpdatedFilterPredicate.ValueInspector

java.lang.Object
org.apache.parquet.filter2.recordlevel.IncrementallyUpdatedFilterPredicate.ValueInspector
All Implemented Interfaces:
IncrementallyUpdatedFilterPredicate
Direct Known Subclasses:
IncrementallyUpdatedFilterPredicate.DelegatingValueInspector
Enclosing interface:
IncrementallyUpdatedFilterPredicate

public abstract static class IncrementallyUpdatedFilterPredicate.ValueInspector extends Object implements IncrementallyUpdatedFilterPredicate
This is the leaf node of a filter predicate. It receives the value for the primitive column it represents, and decides whether or not the predicate represented by this node is satisfied.

It is stateful, and needs to be rest after use.

  • Method Details

    • updateNull

      public void updateNull()
    • update

      public void update(int value)
    • update

      public void update(long value)
    • update

      public void update(double value)
    • update

      public void update(float value)
    • update

      public void update(boolean value)
    • update

      public void update(Binary value)
    • reset

      public void reset()
      Reset to clear state and begin evaluating the next record.
    • setResult

      protected final void setResult(boolean result)
      Subclasses should call this method to signal that the result of this predicate is known.
      Parameters:
      result - the result of this predicate, when it is determined
    • getResult

      public final boolean getResult()
      Should only be called if isKnown return true.
      Returns:
      the result of this predicate
    • isKnown

      public final boolean isKnown()
      Return true if this inspector has received a value yet, false otherwise.
      Returns:
      true if the value of this predicate has been determined
    • accept

      public boolean accept(IncrementallyUpdatedFilterPredicate.Visitor visitor)
      Description copied from interface: IncrementallyUpdatedFilterPredicate
      Specified by:
      accept in interface IncrementallyUpdatedFilterPredicate
      Parameters:
      visitor - a Visitor
      Returns:
      the result of this predicate