Record Class ScanArgs
java.lang.Object
java.lang.Record
org.apache.datafusion.ScanArgs
public record ScanArgs(Optional<List<Integer>> projection, List<org.apache.datafusion.protobuf.LogicalExprNode> filters, OptionalLong limit)
extends Record
A physical scan request using DataFusion's projection, expression and limit semantics.
Projection indices refer to the registered table schema. An absent projection means all
columns; a present empty list means no columns (for example, COUNT(*)), not no rows.
Filters use the bundled DataFusion version's expression protobufs, not SQL strings. Their
generated types and expression shapes may change when the binding upgrades DataFusion.
The optional limit is the value supplied by DataFusion's planner. Sources may return more
rows; they must not return fewer than requested when that many matching rows are available.
DataFusion retains responsibility for deciding whether a limit can safely cross a residual
filter. Limits outside the non-negative Java long range are not forwarded; DataFusion
still applies the query's limit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.List<org.apache.datafusion.protobuf.LogicalExprNode> filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.Returns the value of theprojectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScanArgs
public ScanArgs(Optional<List<Integer>> projection, List<org.apache.datafusion.protobuf.LogicalExprNode> filters, OptionalLong limit) Creates an instance of aScanArgsrecord class.- Parameters:
projection- the value for theprojectionrecord componentfilters- the value for thefiltersrecord componentlimit- the value for thelimitrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
projection
-
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-