Record Class SpooledLocation.DirectLocation
java.lang.Object
java.lang.Record
io.trino.spi.spool.SpooledLocation.DirectLocation
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.spool.SpooledLocation
SpooledLocation.CoordinatorLocation, SpooledLocation.DirectLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectUrirecord component.final booleanIndicates whether some other object is "equal to" this one.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.
-
Constructor Details
-
DirectLocation
public DirectLocation(io.airlift.slice.Slice identifier, URI directUri, Map<String, List<String>> headers) Creates an instance of aDirectLocationrecord class.- Parameters:
identifier- the value for theidentifierrecord componentdirectUri- the value for thedirectUrirecord componentheaders- the value for theheadersrecord 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. 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.- Specified by:
identifierin interfaceSpooledLocation- Returns:
- the value of the
identifierrecord component
-
directUri
Returns the value of thedirectUrirecord component.- Returns:
- the value of the
directUrirecord component
-
headers
-