Record Class EqualityConvertPlan
java.lang.Object
java.lang.Record
org.apache.iceberg.flink.maintenance.operator.EqualityConvertPlan
- Record Components:
dataFiles- new staging data files committed in the cyclestagingDVFiles- staging DVs passed through to main, used by DVWriter to merge with newly-created DVseqDeleteFiles- equality delete files resolved this cycle. Removed by the committer when staging and target are the same branch, so readers stop applying them once the equivalent DVs commit. Empty on a separate target branch, where the eq deletes remain on staging.stagingSnapshotId- staging snapshot the cycle resolved against, orNO_OP_STAGING_SNAPSHOT_IDfor a no-op cyclemainSnapshotId- main branch snapshot ID the index was resolved against, used for commit validationtriggerTimestamp- original trigger timestamp, forwarded by the Committer to the AggregatordoneTimestamp- timestamp after which all phase watermarks have been emitted; the DVWriter should only process the result when the watermark reaches or exceeds this value
- All Implemented Interfaces:
Serializable
@Internal
public record EqualityConvertPlan(List<DataFile> dataFiles, List<DeleteFile> stagingDVFiles, List<DeleteFile> eqDeleteFiles, long stagingSnapshotId, Long mainSnapshotId, long triggerTimestamp, long doneTimestamp)
extends Record
implements Serializable
Result of equality convert planning. Produced by
EqualityConvertPlanner and consumed by
both EqualityConvertDVWriter (for partition info and DV merge gating) and
EqualityConvertCommitter (for data files and staging deletes to commit).
A no-op cycle is encoded by stagingSnapshotId() == NO_OP_STAGING_SNAPSHOT_ID. Use noOp(Long, long, long) to construct one and noOp() to check.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEqualityConvertPlan(List<DataFile> dataFiles, List<DeleteFile> stagingDVFiles, List<DeleteFile> eqDeleteFiles, long stagingSnapshotId, Long mainSnapshotId, long triggerTimestamp, long doneTimestamp) Creates an instance of aEqualityConvertPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataFilesrecord component.longReturns the value of thedoneTimestamprecord component.Returns the value of theeqDeleteFilesrecord 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 themainSnapshotIdrecord component.booleannoOp()Returnstrueif this cycle has nothing to commit.static EqualityConvertPlanNo-op cycle: empty file lists, sentinel staging snapshot id.Returns the value of thestagingDVFilesrecord component.longReturns the value of thestagingSnapshotIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetriggerTimestamprecord component.
-
Field Details
-
NO_OP_STAGING_SNAPSHOT_ID
public static final long NO_OP_STAGING_SNAPSHOT_ID- See Also:
-
-
Constructor Details
-
EqualityConvertPlan
public EqualityConvertPlan(List<DataFile> dataFiles, List<DeleteFile> stagingDVFiles, List<DeleteFile> eqDeleteFiles, long stagingSnapshotId, Long mainSnapshotId, long triggerTimestamp, long doneTimestamp) Creates an instance of aEqualityConvertPlanrecord class.- Parameters:
dataFiles- the value for thedataFilesrecord componentstagingDVFiles- the value for thestagingDVFilesrecord componenteqDeleteFiles- the value for theeqDeleteFilesrecord componentstagingSnapshotId- the value for thestagingSnapshotIdrecord componentmainSnapshotId- the value for themainSnapshotIdrecord componenttriggerTimestamp- the value for thetriggerTimestamprecord componentdoneTimestamp- the value for thedoneTimestamprecord component
-
-
Method Details
-
noOp
public boolean noOp()Returnstrueif this cycle has nothing to commit. -
noOp
public static EqualityConvertPlan noOp(Long mainSnapshotId, long triggerTimestamp, long doneTimestamp) No-op cycle: empty file lists, sentinel staging snapshot id. -
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 '=='. -
dataFiles
Returns the value of thedataFilesrecord component.- Returns:
- the value of the
dataFilesrecord component
-
stagingDVFiles
Returns the value of thestagingDVFilesrecord component.- Returns:
- the value of the
stagingDVFilesrecord component
-
eqDeleteFiles
Returns the value of theeqDeleteFilesrecord component.- Returns:
- the value of the
eqDeleteFilesrecord component
-
stagingSnapshotId
public long stagingSnapshotId()Returns the value of thestagingSnapshotIdrecord component.- Returns:
- the value of the
stagingSnapshotIdrecord component
-
mainSnapshotId
Returns the value of themainSnapshotIdrecord component.- Returns:
- the value of the
mainSnapshotIdrecord component
-
triggerTimestamp
public long triggerTimestamp()Returns the value of thetriggerTimestamprecord component.- Returns:
- the value of the
triggerTimestamprecord component
-
doneTimestamp
public long doneTimestamp()Returns the value of thedoneTimestamprecord component.- Returns:
- the value of the
doneTimestamprecord component
-