public class LeafPredicate extends Object implements Predicate
Predicate
tree. Compares a field in the row with literals.Constructor and Description |
---|
LeafPredicate(LeafFunction function,
DataType type,
int fieldIndex,
String fieldName,
List<Object> literals) |
Modifier and Type | Method and Description |
---|---|
LeafPredicate |
copyWithNewIndex(int fieldIndex) |
boolean |
equals(Object o) |
String |
fieldName() |
FieldRef |
fieldRef() |
LeafFunction |
function() |
int |
hashCode() |
int |
index() |
List<Object> |
literals() |
Optional<Predicate> |
negate() |
boolean |
test(InternalRow row)
Test based on the specific input row.
|
boolean |
test(long rowCount,
InternalRow minValues,
InternalRow maxValues,
InternalArray nullCounts)
Test based on the statistical information to determine whether a hit is possible.
|
String |
toString() |
DataType |
type() |
<T> T |
visit(PredicateVisitor<T> visitor) |
public LeafPredicate(LeafFunction function, DataType type, int fieldIndex, String fieldName, List<Object> literals)
public LeafFunction function()
public DataType type()
public int index()
public String fieldName()
public FieldRef fieldRef()
public LeafPredicate copyWithNewIndex(int fieldIndex)
public boolean test(InternalRow row)
Predicate
public boolean test(long rowCount, InternalRow minValues, InternalRow maxValues, InternalArray nullCounts)
Predicate
public <T> T visit(PredicateVisitor<T> visitor)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.