Record Class QueryRequest
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.QueryRequest
public record QueryRequest(String target, List<String> projectedColumns, List<Attribute> attributes, Map<String,Object> config, int batchSize, int rowLimit, BlockFactory blockFactory)
extends Record
Describes a query to execute against a connector.
Immutable; use
withBlockFactory(org.elasticsearch.compute.data.BlockFactory) to create a copy bound to a specific driver context.-
Constructor Summary
ConstructorsConstructorDescriptionQueryRequest(String target, List<String> projectedColumns, List<Attribute> attributes, Map<String, Object> config, int batchSize, int rowLimit, BlockFactory blockFactory) Creates an instance of aQueryRequestrecord class.QueryRequest(String target, List<String> projectedColumns, List<Attribute> attributes, Map<String, Object> config, int batchSize, BlockFactory blockFactory) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.intReturns the value of thebatchSizerecord component.Returns the value of theblockFactoryrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectedColumnsrecord component.introwLimit()Returns the value of therowLimitrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.withBlockFactory(BlockFactory blockFactory)
-
Constructor Details
-
QueryRequest
-
QueryRequest
public QueryRequest(String target, List<String> projectedColumns, List<Attribute> attributes, Map<String, Object> config, int batchSize, int rowLimit, BlockFactory blockFactory) Creates an instance of aQueryRequestrecord class.- Parameters:
target- the value for thetargetrecord componentprojectedColumns- the value for theprojectedColumnsrecord componentattributes- the value for theattributesrecord componentconfig- the value for theconfigrecord componentbatchSize- the value for thebatchSizerecord componentrowLimit- the value for therowLimitrecord componentblockFactory- the value for theblockFactoryrecord component
-
-
Method Details
-
withBlockFactory
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
projectedColumns
Returns the value of theprojectedColumnsrecord component.- Returns:
- the value of the
projectedColumnsrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
rowLimit
public int rowLimit()Returns the value of therowLimitrecord component.- Returns:
- the value of the
rowLimitrecord component
-
blockFactory
Returns the value of theblockFactoryrecord component.- Returns:
- the value of the
blockFactoryrecord component
-