Package io.trino.plugin.hive
Record Class LocationService.WriteInfo
java.lang.Object
java.lang.Record
io.trino.plugin.hive.LocationService.WriteInfo
- Enclosing interface:
- LocationService
public static record LocationService.WriteInfo(Location targetPath, Location writePath, LocationHandle.WriteMode writeMode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWriteInfo(Location targetPath, Location writePath, LocationHandle.WriteMode writeMode) Creates an instance of aWriteInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Target path for the partition, unpartitioned table, or the query.final StringtoString()Returns a string representation of this record class.Returns the value of thewriteModerecord component.Temporary path for writing to the partition, unpartitioned table or the query.
-
Constructor Details
-
WriteInfo
Creates an instance of aWriteInforecord class.- Parameters:
targetPath- the value for thetargetPathrecord componentwritePath- the value for thewritePathrecord componentwriteMode- the value for thewriteModerecord component
-
-
Method Details
-
targetPath
Target path for the partition, unpartitioned table, or the query. -
writePath
Temporary path for writing to the partition, unpartitioned table or the query.It may be the same as
targetPath. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
writeMode
Returns the value of thewriteModerecord component.- Returns:
- the value of the
writeModerecord component
-