Package org.projectnessie.model
Class IcebergTable
- java.lang.Object
-
- org.projectnessie.model.Content
-
- org.projectnessie.model.IcebergContent
-
- org.projectnessie.model.IcebergTable
-
@Immutable public abstract class IcebergTable extends IcebergContent
Represents the state of an Iceberg table in Nessie. An Iceberg table is globally identified via itsunique 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.Putwithout an expected-value. In all other cases (updating an existing table). always pass the last known version ofIcebergTableas 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 Constructor Description IcebergTable()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.projectnessie.model.ImmutableIcebergTable.Builderbuilder()abstract GenericMetadatagetMetadata()Deprecated.abstract @NotNull @NotBlank java.lang.StringgetMetadataLocation()Location where Iceberg stored itsTableMetadatafile.abstract intgetSchemaId()Corresponds to Iceberg'scurrentSchemaId.abstract longgetSnapshotId()Corresponds to Iceberg'scurrentSnapshotId.abstract intgetSortOrderId()Corresponds to Iceberg'sdefaultSortOrderId.abstract intgetSpecId()Corresponds to Iceberg'sdefaultSpecId.Content.TypegetType()Returns theContent.Typevalue for this content object.static IcebergTableof(java.lang.String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId)static IcebergTableof(java.lang.String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId, java.lang.String contentId)
-
-
-
Method Detail
-
getMetadataLocation
@NotNull @NotBlank public abstract @NotNull @NotBlank java.lang.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
public Content.Type 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 @Nullable public abstract GenericMetadata getMetadata()
Deprecated.
-
builder
public static org.projectnessie.model.ImmutableIcebergTable.Builder builder()
-
of
public static IcebergTable of(java.lang.String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId)
-
of
public static IcebergTable of(java.lang.String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId, java.lang.String contentId)
-
-