Package io.delta.storage.commit.uniform
Class IcebergMetadata
Object
io.delta.storage.commit.uniform.IcebergMetadata
Metadata for Delta Uniform Iceberg conversion.
This class contains information about the latest Iceberg conversion for a Delta table, which is sent to Unity Catalog to track the Iceberg metadata state.
-
Constructor Summary
ConstructorsConstructorDescriptionIcebergMetadata(String metadataLocation, long convertedDeltaVersion, String convertedDeltaTimestamp) Constructs IcebergMetadata without a base converted delta version (full conversion).IcebergMetadata(String metadataLocation, long convertedDeltaVersion, String convertedDeltaTimestamp, Optional<Long> baseConvertedDeltaVersion) Constructs IcebergMetadata with the specified conversion details. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Delta version from which this conversion incrementally started, or empty if this was a full (non-incremental) conversion.Returns the timestamp when the conversion occurred.longReturns the Delta version that was converted to Iceberg.Returns the Iceberg metadata file location.
-
Constructor Details
-
IcebergMetadata
public IcebergMetadata(String metadataLocation, long convertedDeltaVersion, String convertedDeltaTimestamp, Optional<Long> baseConvertedDeltaVersion) Constructs IcebergMetadata with the specified conversion details.- Parameters:
metadataLocation- The Iceberg metadata file location (e.g., "s3://bucket/metadata/v1.json")convertedDeltaVersion- The Delta version that was converted (e.g., 1044)convertedDeltaTimestamp- The timestamp of the conversion (e.g., "2025-01-04T03:13:11.423")baseConvertedDeltaVersion- The Delta version from which this conversion incrementally started at, or empty if this was a full (non-incremental) conversion.
-
IcebergMetadata
public IcebergMetadata(String metadataLocation, long convertedDeltaVersion, String convertedDeltaTimestamp) Constructs IcebergMetadata without a base converted delta version (full conversion).- Parameters:
metadataLocation- The Iceberg metadata file locationconvertedDeltaVersion- The Delta version that was convertedconvertedDeltaTimestamp- The timestamp of the conversion
-
-
Method Details
-
getMetadataLocation
Returns the Iceberg metadata file location. -
getConvertedDeltaVersion
public long getConvertedDeltaVersion()Returns the Delta version that was converted to Iceberg. -
getConvertedDeltaTimestamp
Returns the timestamp when the conversion occurred. -
getBaseConvertedDeltaVersion
Returns the Delta version from which this conversion incrementally started, or empty if this was a full (non-incremental) conversion.
-