Package org.projectnessie.model
Class IcebergTable
java.lang.Object
org.projectnessie.model.Content
org.projectnessie.model.IcebergContent
org.projectnessie.model.IcebergTable
Represents the state of an Iceberg table in Nessie. An Iceberg table is globally identified via
its
unique ID.
The Iceberg-table-state consists of the location to the table-metadata and the state of relevant IDs using a serialized version of those.
When adding a new table (aka content-object identified by a content-id), use a Operation.Put without an expected-value. In all other cases (updating an
existing table). always pass the last known version of IcebergTable as the expected-value
within the put-operation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.projectnessie.model.Content
Content.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.projectnessie.model.ImmutableIcebergTable.Builderbuilder()Deprecated.abstract @NotNull @NotNull @NotBlank @NotBlank StringLocation where Iceberg stored itsTableMetadatafile.abstract intCorresponds to Iceberg'scurrentSchemaId.abstract longCorresponds to Iceberg'scurrentSnapshotId.abstract intCorresponds to Iceberg'sdefaultSortOrderId.abstract intCorresponds to Iceberg'sdefaultSpecId.getType()Returns theContent.Typevalue for this content object.static IcebergTablestatic IcebergTableof(String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId, String contentId) abstract IcebergTable
-
Constructor Details
-
IcebergTable
public IcebergTable()
-
-
Method Details
-
getMetadataLocation
@NotNull @NotNull @NotBlank @NotBlank public abstract @NotNull @NotNull @NotBlank @NotBlank String getMetadataLocation()Location where Iceberg stored itsTableMetadatafile. The location depends on the (implementation of) Iceberg'sFileIOconfigured for the particular Iceberg table. -
getSnapshotId
public abstract long getSnapshotId()Corresponds to Iceberg'scurrentSnapshotId. -
getSchemaId
public abstract int getSchemaId()Corresponds to Iceberg'scurrentSchemaId. -
getSpecId
public abstract int getSpecId()Corresponds to Iceberg'sdefaultSpecId. -
getSortOrderId
public abstract int getSortOrderId()Corresponds to Iceberg'sdefaultSortOrderId. -
getType
Description copied from class:ContentReturns theContent.Typevalue for this content object.The name of the returned value should match the JSON type name used for serializing the content object.
-
getMetadata
Deprecated. -
withId
-
builder
public static org.projectnessie.model.ImmutableIcebergTable.Builder builder() -
of
public static IcebergTable of(String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId) -
of
public static IcebergTable of(String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId, String contentId)
-