Class IncrementallyUpdatedFilterPredicate.ValueInspector
- java.lang.Object
-
- org.apache.parquet.filter2.recordlevel.IncrementallyUpdatedFilterPredicate.ValueInspector
-
- All Implemented Interfaces:
IncrementallyUpdatedFilterPredicate
- 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.parquet.filter2.recordlevel.IncrementallyUpdatedFilterPredicate
IncrementallyUpdatedFilterPredicate.And, IncrementallyUpdatedFilterPredicate.BinaryLogical, IncrementallyUpdatedFilterPredicate.Or, IncrementallyUpdatedFilterPredicate.ValueInspector, IncrementallyUpdatedFilterPredicate.Visitor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(IncrementallyUpdatedFilterPredicate.Visitor visitor)AIncrementallyUpdatedFilterPredicatemust accept aIncrementallyUpdatedFilterPredicate.Visitor, per the visitor pattern.booleangetResult()Should only be called ifisKnownreturn true.booleanisKnown()Return true if this inspector has received a value yet, false otherwise.voidreset()Reset to clear state and begin evaluating the next record.protected voidsetResult(boolean result)Subclasses should call this method to signal that the result of this predicate is known.voidupdate(boolean value)voidupdate(double value)voidupdate(float value)voidupdate(int value)voidupdate(long value)voidupdate(Binary value)voidupdateNull()
-
-
-
Method Detail
-
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 final 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 ifisKnownreturn 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:IncrementallyUpdatedFilterPredicateAIncrementallyUpdatedFilterPredicatemust accept aIncrementallyUpdatedFilterPredicate.Visitor, per the visitor pattern.- Specified by:
acceptin interfaceIncrementallyUpdatedFilterPredicate- Parameters:
visitor- a Visitor- Returns:
- the result of this predicate
-
-