Package org.projectnessie.model
Class IcebergTable
- java.lang.Object
-
- org.projectnessie.model.Content
-
- org.projectnessie.model.IcebergTable
-
- Direct Known Subclasses:
ImmutableIcebergTable
@Immutable public abstract class IcebergTable extends Content
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 Modifier and Type Method Description abstract @NotNull @NotBlank StringgetMetadataLocation()Location where Iceberg stored itsTableMetadatafile.abstract intgetSchemaId()abstract longgetSnapshotId()abstract intgetSortOrderId()abstract intgetSpecId()Content.TypegetType()Returns theContent.Typeenum constant for this content object.static IcebergTableof(String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId)static IcebergTableof(String metadataLocation, long snapshotId, int schemaId, int specId, int sortOrderId, String contentId)
-
-
-
Method Detail
-
getMetadataLocation
@NotNull @NotBlank public abstract @NotNull @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()
-
getSchemaId
public abstract int getSchemaId()
-
getSpecId
public abstract int getSpecId()
-
getSortOrderId
public abstract int getSortOrderId()
-
getType
public Content.Type getType()
Description copied from class:ContentReturns theContent.Typeenum constant for this content object.The name of the returned enum value should match the JSON type name used for serializing the content object.
-
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)
-
-