Record Class FilterPushdownSupport.PushdownResult
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.FilterPushdownSupport.PushdownResult
- Record Components:
pushedFilter- source-specific filter object (opaque to core), or null if nothing was pushedpushedExpressions- the original ESQL expressions that were successfully translated into the pushed filter. Carried through the pipeline so per-file filter adaptation can re-translate them for files with different schemas (UNION_BY_NAME).remainder- expressions that could not be pushed and must remain in FilterExec
- Enclosing interface:
FilterPushdownSupport
public static record FilterPushdownSupport.PushdownResult(Object pushedFilter, List<Expression> pushedExpressions, List<Expression> remainder)
extends Record
Result of attempting to push filters to a data source.
-
Constructor Summary
ConstructorsConstructorDescriptionPushdownResult(Object pushedFilter, List<Expression> remainder) Backward-compatible constructor for implementations that do not track pushed expressions.PushdownResult(Object pushedFilter, List<Expression> pushedExpressions, List<Expression> remainder) Creates an instance of aPushdownResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionCreates a result indicating all filters were pushed.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns true if any filters were successfully pushed.booleanReturns true if there are remaining filters that couldn't be pushed.none(List<Expression> all) Creates a result indicating no filters could be pushed.Returns the value of thepushedExpressionsrecord component.Returns the value of thepushedFilterrecord component.Returns the value of theremainderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PushdownResult
Backward-compatible constructor for implementations that do not track pushed expressions. -
PushdownResult
public PushdownResult(Object pushedFilter, List<Expression> pushedExpressions, List<Expression> remainder) Creates an instance of aPushdownResultrecord class.- Parameters:
pushedFilter- the value for thepushedFilterrecord componentpushedExpressions- the value for thepushedExpressionsrecord componentremainder- the value for theremainderrecord component
-
-
Method Details
-
none
Creates a result indicating no filters could be pushed.- Parameters:
all- the original filter expressions- Returns:
- a PushdownResult with null pushed filter and all expressions as remainder
-
all
Creates a result indicating all filters were pushed.- Parameters:
pushedFilter- the source-specific filter object- Returns:
- a PushdownResult with the pushed filter and empty remainder
-
hasPushedFilter
public boolean hasPushedFilter()Returns true if any filters were successfully pushed. -
hasRemainder
public boolean hasRemainder()Returns true if there are remaining filters that couldn't be pushed. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
pushedFilter
Returns the value of thepushedFilterrecord component.- Returns:
- the value of the
pushedFilterrecord component
-
pushedExpressions
Returns the value of thepushedExpressionsrecord component.- Returns:
- the value of the
pushedExpressionsrecord component
-
remainder
Returns the value of theremainderrecord component.- Returns:
- the value of the
remainderrecord component
-