Package org.projectnessie.model
Class ImmutableIcebergTable
- java.lang.Object
-
- org.projectnessie.model.Contents
-
- org.projectnessie.model.IcebergTable
-
- org.projectnessie.model.ImmutableIcebergTable
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIcebergTable extends IcebergTable
Immutable implementation ofIcebergTable.Use the builder to create immutable instances:
ImmutableIcebergTable.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIcebergTable.BuilderBuilds instances of typeImmutableIcebergTable.-
Nested classes/interfaces inherited from class org.projectnessie.model.Contents
Contents.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableIcebergTable.Builderbuilder()Creates a builder forImmutableIcebergTable.static ImmutableIcebergTablecopyOf(IcebergTable instance)Creates an immutable copy of aIcebergTablevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableIcebergTablethat have equal attribute values.StringgetId()Unique id for this object.StringgetIdGenerators()Opaque representation of Iceberg'sTableIdGenerators.StringgetMetadataLocation()Location where Iceberg stored itsTableMetadatafile.inthashCode()Computes a hash code from attributes:id,metadataLocation,idGenerators.StringtoString()Prints the immutable valueIcebergTablewith attribute values.ImmutableIcebergTablewithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableIcebergTablewithIdGenerators(String value)Copy the current immutable object by setting a value for theidGeneratorsattribute.ImmutableIcebergTablewithMetadataLocation(String value)Copy the current immutable object by setting a value for themetadataLocationattribute.-
Methods inherited from class org.projectnessie.model.IcebergTable
of, of
-
-
-
-
Method Detail
-
getId
public String getId()
Unique id for this object.This id is unique for the entire lifetime of this Contents object and persists across renames. Two contents with the same key will have different id.
-
getMetadataLocation
public String getMetadataLocation()
Location where Iceberg stored itsTableMetadatafile. The location depends on the (implementation of) Iceberg'sFileIOconfigured for the particular Iceberg table.- Specified by:
getMetadataLocationin classIcebergTable
-
getIdGenerators
public String getIdGenerators()
Opaque representation of Iceberg'sTableIdGenerators.- Specified by:
getIdGeneratorsin classIcebergTable
-
withId
public final ImmutableIcebergTable withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withMetadataLocation
public final ImmutableIcebergTable withMetadataLocation(String value)
Copy the current immutable object by setting a value for themetadataLocationattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadataLocation- Returns:
- A modified copy of the
thisobject
-
withIdGenerators
public final ImmutableIcebergTable withIdGenerators(String value)
Copy the current immutable object by setting a value for theidGeneratorsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for idGenerators- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableIcebergTablethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,metadataLocation,idGenerators.
-
toString
public String toString()
Prints the immutable valueIcebergTablewith attribute values.
-
copyOf
public static ImmutableIcebergTable copyOf(IcebergTable instance)
Creates an immutable copy of aIcebergTablevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable IcebergTable instance
-
builder
public static ImmutableIcebergTable.Builder builder()
Creates a builder forImmutableIcebergTable.ImmutableIcebergTable.builder() .id(String) // optionalid.metadataLocation(String) // requiredmetadataLocation.idGenerators(String) // requiredidGenerators.build();- Returns:
- A new ImmutableIcebergTable builder
-
-