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
    Constructor
    Description
    ScanArgs(Optional<List<Integer>> projection, List<org.apache.datafusion.protobuf.LogicalExprNode> filters, OptionalLong limit)
    Creates an instance of a ScanArgs record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    List<org.apache.datafusion.protobuf.LogicalExprNode>
    Returns the value of the filters record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the limit record component.
    Returns the value of the projection record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ScanArgs

      public ScanArgs(Optional<List<Integer>> projection, List<org.apache.datafusion.protobuf.LogicalExprNode> filters, OptionalLong limit)
      Creates an instance of a ScanArgs record class.
      Parameters:
      projection - the value for the projection record component
      filters - the value for the filters record component
      limit - the value for the limit record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • projection

      public Optional<List<Integer>> projection()
      Returns the value of the projection record component.
      Returns:
      the value of the projection record component
    • filters

      public List<org.apache.datafusion.protobuf.LogicalExprNode> filters()
      Returns the value of the filters record component.
      Returns:
      the value of the filters record component
    • limit

      public OptionalLong limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component