Record Class TableChangesSplit
java.lang.Object
java.lang.Record
io.trino.plugin.deltalake.functions.tablechanges.TableChangesSplit
- All Implemented Interfaces:
ConnectorSplit
public record TableChangesSplit(String path, long fileSize, Map<String,Optional<String>> partitionKeys, long currentVersionCommitTimestamp, TableChangesFileType fileType, long currentVersion)
extends Record
implements ConnectorSplit
-
Constructor Summary
ConstructorsConstructorDescriptionTableChangesSplit(String path, long fileSize, Map<String, Optional<String>> partitionKeys, long currentVersionCommitTimestamp, TableChangesFileType fileType, long currentVersion) Creates an instance of aTableChangesSplitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecurrentVersionrecord component.longReturns the value of thecurrentVersionCommitTimestamprecord component.final booleanIndicates whether some other object is "equal to" this one.longfileSize()Returns the value of thefileSizerecord component.fileType()Returns the value of thefileTyperecord component.getInfo()longfinal inthashCode()Returns a hash code value for this object.booleanReturns the value of thepartitionKeysrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableChangesSplit
public TableChangesSplit(String path, long fileSize, Map<String, Optional<String>> partitionKeys, long currentVersionCommitTimestamp, TableChangesFileType fileType, long currentVersion) Creates an instance of aTableChangesSplitrecord class.- Parameters:
path- the value for thepathrecord componentfileSize- the value for thefileSizerecord componentpartitionKeys- the value for thepartitionKeysrecord componentcurrentVersionCommitTimestamp- the value for thecurrentVersionCommitTimestamprecord componentfileType- the value for thefileTyperecord componentcurrentVersion- the value for thecurrentVersionrecord component
-
-
Method Details
-
isRemotelyAccessible
public boolean isRemotelyAccessible()- Specified by:
isRemotelyAccessiblein interfaceConnectorSplit
-
getAddresses
- Specified by:
getAddressesin interfaceConnectorSplit
-
getInfo
- Specified by:
getInfoin interfaceConnectorSplit
-
getSplitWeight
- Specified by:
getSplitWeightin interfaceConnectorSplit
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Specified by:
getRetainedSizeInBytesin interfaceConnectorSplit
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
fileSize
public long fileSize()Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-
partitionKeys
Returns the value of thepartitionKeysrecord component.- Returns:
- the value of the
partitionKeysrecord component
-
currentVersionCommitTimestamp
public long currentVersionCommitTimestamp()Returns the value of thecurrentVersionCommitTimestamprecord component.- Returns:
- the value of the
currentVersionCommitTimestamprecord component
-
fileType
Returns the value of thefileTyperecord component.- Returns:
- the value of the
fileTyperecord component
-
currentVersion
public long currentVersion()Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-