Record Class SpooledBlock
java.lang.Object
java.lang.Record
io.trino.server.protocol.spooling.SpooledBlock
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpooledBlock(io.airlift.slice.Slice identifier, Optional<URI> directUri, Map<String, List<String>> headers, DataAttributes attributes) Creates an instance of aSpooledBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.static PagecreateNonSpooledPage(Page page) static SpooledBlockdeserialize(Page page) Returns the value of thedirectUrirecord component.final booleanIndicates whether some other object is "equal to" this one.static SpooledBlockforLocation(io.trino.spi.protocol.SpooledLocation location, DataAttributes attributes) final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.io.airlift.slice.SliceReturns the value of theidentifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SPOOLING_METADATA_TYPE
-
SPOOLING_METADATA_COLUMN_NAME
- See Also:
-
SPOOLING_METADATA_SYMBOL
-
-
Constructor Details
-
SpooledBlock
public SpooledBlock(io.airlift.slice.Slice identifier, Optional<URI> directUri, Map<String, List<String>> headers, DataAttributes attributes) Creates an instance of aSpooledBlockrecord class.- Parameters:
identifier- the value for theidentifierrecord componentdirectUri- the value for thedirectUrirecord componentheaders- the value for theheadersrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
deserialize
-
forLocation
public static SpooledBlock forLocation(io.trino.spi.protocol.SpooledLocation location, DataAttributes attributes) -
serialize
-
createNonSpooledPage
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
identifier
public io.airlift.slice.Slice identifier()Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
directUri
-
headers
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-