Record Class ExchangeSourceHandleSource.ExchangeSourceHandleBatch
java.lang.Object
java.lang.Record
io.trino.spi.exchange.ExchangeSourceHandleSource.ExchangeSourceHandleBatch
- Enclosing interface:
ExchangeSourceHandleSource
public static record ExchangeSourceHandleSource.ExchangeSourceHandleBatch(List<ExchangeSourceHandle> handles, boolean lastBatch)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExchangeSourceHandleBatch(List<ExchangeSourceHandle> handles, boolean lastBatch) Creates an instance of aExchangeSourceHandleBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.handles()Returns the value of thehandlesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelastBatchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExchangeSourceHandleBatch
Creates an instance of aExchangeSourceHandleBatchrecord class.- Parameters:
handles- the value for thehandlesrecord componentlastBatch- the value for thelastBatchrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
handles
Returns the value of thehandlesrecord component.- Returns:
- the value of the
handlesrecord component
-
lastBatch
public boolean lastBatch()Returns the value of thelastBatchrecord component.- Returns:
- the value of the
lastBatchrecord component
-