Package org.projectnessie.model
Class ImmutableDeltaLakeTable
- java.lang.Object
-
- org.projectnessie.model.Content
-
- org.projectnessie.model.DeltaLakeTable
-
- org.projectnessie.model.ImmutableDeltaLakeTable
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDeltaLakeTable extends DeltaLakeTable
Immutable implementation ofDeltaLakeTable.Use the builder to create immutable instances:
ImmutableDeltaLakeTable.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDeltaLakeTable.BuilderBuilds instances of typeImmutableDeltaLakeTable.-
Nested classes/interfaces inherited from class org.projectnessie.model.Content
Content.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDeltaLakeTable.Builderbuilder()Creates a builder forImmutableDeltaLakeTable.static ImmutableDeltaLakeTablecopyOf(DeltaLakeTable instance)Creates an immutable copy of aDeltaLakeTablevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDeltaLakeTablethat have equal attribute values.List<String>getCheckpointLocationHistory()StringgetId()Unique id for this object.StringgetLastCheckpoint()List<String>getMetadataLocationHistory()inthashCode()Computes a hash code from attributes:id,metadataLocationHistory,checkpointLocationHistory,lastCheckpoint.StringtoString()Prints the immutable valueDeltaLakeTablewith attribute values.ImmutableDeltaLakeTablewithCheckpointLocationHistory(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofcheckpointLocationHistory.ImmutableDeltaLakeTablewithCheckpointLocationHistory(String... elements)Copy the current immutable object with elements that replace the content ofcheckpointLocationHistory.ImmutableDeltaLakeTablewithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableDeltaLakeTablewithLastCheckpoint(String value)Copy the current immutable object by setting a value for thelastCheckpointattribute.ImmutableDeltaLakeTablewithMetadataLocationHistory(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofmetadataLocationHistory.ImmutableDeltaLakeTablewithMetadataLocationHistory(String... elements)Copy the current immutable object with elements that replace the content ofmetadataLocationHistory.-
Methods inherited from class org.projectnessie.model.DeltaLakeTable
getType
-
-
-
-
Method Detail
-
getId
public String getId()
Unique id for this object.This id is unique for the entire lifetime of this Content object and persists across renames. Two content objects with the same key will have different id.
-
getMetadataLocationHistory
public List<String> getMetadataLocationHistory()
- Specified by:
getMetadataLocationHistoryin classDeltaLakeTable- Returns:
- The value of the
metadataLocationHistoryattribute
-
getCheckpointLocationHistory
public List<String> getCheckpointLocationHistory()
- Specified by:
getCheckpointLocationHistoryin classDeltaLakeTable- Returns:
- The value of the
checkpointLocationHistoryattribute
-
getLastCheckpoint
@Nullable public String getLastCheckpoint()
- Specified by:
getLastCheckpointin classDeltaLakeTable- Returns:
- The value of the
lastCheckpointattribute
-
withId
public final ImmutableDeltaLakeTable 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
-
withMetadataLocationHistory
public final ImmutableDeltaLakeTable withMetadataLocationHistory(String... elements)
Copy the current immutable object with elements that replace the content ofmetadataLocationHistory.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMetadataLocationHistory
public final ImmutableDeltaLakeTable withMetadataLocationHistory(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofmetadataLocationHistory. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of metadataLocationHistory elements to set- Returns:
- A modified copy of
thisobject
-
withCheckpointLocationHistory
public final ImmutableDeltaLakeTable withCheckpointLocationHistory(String... elements)
Copy the current immutable object with elements that replace the content ofcheckpointLocationHistory.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCheckpointLocationHistory
public final ImmutableDeltaLakeTable withCheckpointLocationHistory(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofcheckpointLocationHistory. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of checkpointLocationHistory elements to set- Returns:
- A modified copy of
thisobject
-
withLastCheckpoint
public final ImmutableDeltaLakeTable withLastCheckpoint(@Nullable String value)
Copy the current immutable object by setting a value for thelastCheckpointattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastCheckpoint (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableDeltaLakeTablethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,metadataLocationHistory,checkpointLocationHistory,lastCheckpoint.
-
toString
public String toString()
Prints the immutable valueDeltaLakeTablewith attribute values.
-
copyOf
public static ImmutableDeltaLakeTable copyOf(DeltaLakeTable instance)
Creates an immutable copy of aDeltaLakeTablevalue. 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 DeltaLakeTable instance
-
builder
public static ImmutableDeltaLakeTable.Builder builder()
Creates a builder forImmutableDeltaLakeTable.ImmutableDeltaLakeTable.builder() .id(String) // optionalid.addMetadataLocationHistory|addAllMetadataLocationHistory(String) //metadataLocationHistoryelements .addCheckpointLocationHistory|addAllCheckpointLocationHistory(String) //checkpointLocationHistoryelements .lastCheckpoint(String | null) // nullablelastCheckpoint.build();- Returns:
- A new ImmutableDeltaLakeTable builder
-
-