Record Class MemorySplit
java.lang.Object
java.lang.Record
io.trino.plugin.memory.MemorySplit
- All Implemented Interfaces:
ConnectorSplit
public record MemorySplit(long table, int partNumber, int totalPartsPerWorker, HostAddress address, long expectedRows, OptionalLong limit)
extends Record
implements ConnectorSplit
-
Constructor Summary
ConstructorsConstructorDescriptionMemorySplit(long table, int partNumber, int totalPartsPerWorker, HostAddress address, long expectedRows, OptionalLong limit) Creates an instance of aMemorySplitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpectedRowsrecord component.longfinal inthashCode()Returns a hash code value for this object.booleanlimit()Returns the value of thelimitrecord component.intReturns the value of thepartNumberrecord component.longtable()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalPartsPerWorkerrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.spi.connector.ConnectorSplit
getSplitWeight
-
Constructor Details
-
MemorySplit
public MemorySplit(long table, int partNumber, int totalPartsPerWorker, HostAddress address, long expectedRows, OptionalLong limit) Creates an instance of aMemorySplitrecord class.- Parameters:
table- the value for thetablerecord componentpartNumber- the value for thepartNumberrecord componenttotalPartsPerWorker- the value for thetotalPartsPerWorkerrecord componentaddress- the value for theaddressrecord componentexpectedRows- the value for theexpectedRowsrecord componentlimit- the value for thelimitrecord component
-
-
Method Details
-
getSplitInfo
- Specified by:
getSplitInfoin interfaceConnectorSplit
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Specified by:
getRetainedSizeInBytesin interfaceConnectorSplit
-
isRemotelyAccessible
public boolean isRemotelyAccessible()- Specified by:
isRemotelyAccessiblein interfaceConnectorSplit
-
getAddresses
- Specified by:
getAddressesin interfaceConnectorSplit
-
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. -
table
public long table()Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
partNumber
public int partNumber()Returns the value of thepartNumberrecord component.- Returns:
- the value of the
partNumberrecord component
-
totalPartsPerWorker
public int totalPartsPerWorker()Returns the value of thetotalPartsPerWorkerrecord component.- Returns:
- the value of the
totalPartsPerWorkerrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
expectedRows
public long expectedRows()Returns the value of theexpectedRowsrecord component.- Returns:
- the value of the
expectedRowsrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-