public class InCommitTimestampUtils
extends Object
| Constructor and Description |
|---|
InCommitTimestampUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<Metadata> |
getUpdatedMetadataWithICTEnablementInfo(Engine engine,
long inCommitTimestamp,
SnapshotImpl readSnapshot,
Metadata metadata,
long commitVersion)
Returns the updated
Metadata with inCommitTimestamp enablement related info (version
and timestamp) correctly set. |
public static java.util.Optional<Metadata> getUpdatedMetadataWithICTEnablementInfo(Engine engine, long inCommitTimestamp, SnapshotImpl readSnapshot, Metadata metadata, long commitVersion)
Metadata with inCommitTimestamp enablement related info (version
and timestamp) correctly set. This is done only 1. If this transaction enables
inCommitTimestamp. 2. If the commit version is not 0. This is because we only need to persist
the enablement info if there are non-ICT commits in the Delta log. Note: This function must
only be called after transaction conflicts have been resolved.