Package io.trino.plugin.hive.util
Record Class AcidTables.AcidState
java.lang.Object
java.lang.Record
io.trino.plugin.hive.util.AcidTables.AcidState
- Enclosing class:
- AcidTables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseDirectoryrecord component.Returns the value of thebaseFilesrecord component.deltas()Returns the value of thedeltasrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalFilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AcidState
public AcidState(Optional<Location> baseDirectory, List<FileEntry> baseFiles, List<AcidTables.ParsedDelta> deltas, List<FileEntry> originalFiles) Creates an instance of aAcidStaterecord class.- Parameters:
baseDirectory- the value for thebaseDirectoryrecord componentbaseFiles- the value for thebaseFilesrecord componentdeltas- the value for thedeltasrecord componentoriginalFiles- the value for theoriginalFilesrecord component
-
-
Method Details
-
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). -
baseDirectory
Returns the value of thebaseDirectoryrecord component.- Returns:
- the value of the
baseDirectoryrecord component
-
baseFiles
Returns the value of thebaseFilesrecord component.- Returns:
- the value of the
baseFilesrecord component
-
deltas
Returns the value of thedeltasrecord component.- Returns:
- the value of the
deltasrecord component
-
originalFiles
Returns the value of theoriginalFilesrecord component.- Returns:
- the value of the
originalFilesrecord component
-