Record Class SpoolingContext
java.lang.Object
java.lang.Record
io.trino.spi.spool.SpoolingContext
@Experimental(eta="2025-05-31")
public record SpoolingContext(String encoding, QueryId queryId, long rows, long size)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpoolingContext(String encoding, QueryId queryId, long rows, long size) Creates an instance of aSpoolingContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionencoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.queryId()Returns the value of thequeryIdrecord component.longrows()Returns the value of therowsrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpoolingContext
Creates an instance of aSpoolingContextrecord class.- Parameters:
encoding- the value for theencodingrecord componentqueryId- the value for thequeryIdrecord componentrows- the value for therowsrecord componentsize- the value for thesizerecord 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. -
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
queryId
Returns the value of thequeryIdrecord component.- Returns:
- the value of the
queryIdrecord component
-
rows
public long rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-