Package org.apache.iceberg
Class MetadataUpdate.SetSnapshotRef
- java.lang.Object
-
- org.apache.iceberg.MetadataUpdate.SetSnapshotRef
-
- All Implemented Interfaces:
java.io.Serializable
,MetadataUpdate
- Enclosing interface:
- MetadataUpdate
public static class MetadataUpdate.SetSnapshotRef extends java.lang.Object implements MetadataUpdate
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.MetadataUpdate
MetadataUpdate.AddPartitionSpec, MetadataUpdate.AddSchema, MetadataUpdate.AddSnapshot, MetadataUpdate.AddSortOrder, MetadataUpdate.AssignUUID, MetadataUpdate.RemoveProperties, MetadataUpdate.RemoveSnapshot, MetadataUpdate.RemoveSnapshotRef, MetadataUpdate.RemoveStatistics, MetadataUpdate.SetCurrentSchema, MetadataUpdate.SetDefaultPartitionSpec, MetadataUpdate.SetDefaultSortOrder, MetadataUpdate.SetLocation, MetadataUpdate.SetProperties, MetadataUpdate.SetSnapshotRef, MetadataUpdate.SetStatistics, MetadataUpdate.UpgradeFormatVersion
-
-
Constructor Summary
Constructors Constructor Description SetSnapshotRef(java.lang.String refName, java.lang.Long snapshotId, org.apache.iceberg.SnapshotRefType type, java.lang.Integer minSnapshotsToKeep, java.lang.Long maxSnapshotAgeMs, java.lang.Long maxRefAgeMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyTo(TableMetadata.Builder metadataBuilder)
java.lang.Long
maxRefAgeMs()
java.lang.Long
maxSnapshotAgeMs()
java.lang.Integer
minSnapshotsToKeep()
java.lang.String
name()
long
snapshotId()
java.lang.String
type()
-
-
-
Method Detail
-
name
public java.lang.String name()
-
type
public java.lang.String type()
-
snapshotId
public long snapshotId()
-
minSnapshotsToKeep
public java.lang.Integer minSnapshotsToKeep()
-
maxSnapshotAgeMs
public java.lang.Long maxSnapshotAgeMs()
-
maxRefAgeMs
public java.lang.Long maxRefAgeMs()
-
applyTo
public void applyTo(TableMetadata.Builder metadataBuilder)
- Specified by:
applyTo
in interfaceMetadataUpdate
-
-