Package org.projectnessie.model
Class ImmutableIcebergView
- java.lang.Object
-
- org.projectnessie.model.Content
-
- org.projectnessie.model.IcebergView
-
- org.projectnessie.model.ImmutableIcebergView
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIcebergView extends IcebergView
Immutable implementation ofIcebergView.Use the builder to create immutable instances:
ImmutableIcebergView.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIcebergView.BuilderBuilds instances of typeImmutableIcebergView.-
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 ImmutableIcebergView.Builderbuilder()Creates a builder forImmutableIcebergView.static ImmutableIcebergViewcopyOf(IcebergView instance)Creates an immutable copy of aIcebergViewvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableIcebergViewthat have equal attribute values.StringgetDialect()StringgetId()Unique id for this object.StringgetMetadataLocation()Location where Iceberg stored itsViewMetadatafile.intgetSchemaId()StringgetSqlText()intgetVersionId()inthashCode()Computes a hash code from attributes:id,metadataLocation,versionId,schemaId,sqlText,dialect.StringtoString()Prints the immutable valueIcebergViewwith attribute values.ImmutableIcebergViewwithDialect(String value)Copy the current immutable object by setting a value for thedialectattribute.ImmutableIcebergViewwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableIcebergViewwithMetadataLocation(String value)Copy the current immutable object by setting a value for themetadataLocationattribute.ImmutableIcebergViewwithSchemaId(int value)Copy the current immutable object by setting a value for theschemaIdattribute.ImmutableIcebergViewwithSqlText(String value)Copy the current immutable object by setting a value for thesqlTextattribute.ImmutableIcebergViewwithVersionId(int value)Copy the current immutable object by setting a value for theversionIdattribute.-
Methods inherited from class org.projectnessie.model.IcebergView
getType, of, of
-
-
-
-
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.
-
getMetadataLocation
public String getMetadataLocation()
Location where Iceberg stored itsViewMetadatafile. The location depends on the (implementation of) Iceberg'sFileIOconfigured for the particular Iceberg table.- Specified by:
getMetadataLocationin classIcebergView
-
getVersionId
public int getVersionId()
- Specified by:
getVersionIdin classIcebergView- Returns:
- The value of the
versionIdattribute
-
getSchemaId
public int getSchemaId()
- Specified by:
getSchemaIdin classIcebergView- Returns:
- The value of the
schemaIdattribute
-
getSqlText
public String getSqlText()
- Specified by:
getSqlTextin classIcebergView- Returns:
- The value of the
sqlTextattribute
-
getDialect
public String getDialect()
- Specified by:
getDialectin classIcebergView- Returns:
- The value of the
dialectattribute
-
withId
public final ImmutableIcebergView 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 ImmutableIcebergView 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
-
withVersionId
public final ImmutableIcebergView withVersionId(int value)
Copy the current immutable object by setting a value for theversionIdattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for versionId- Returns:
- A modified copy of the
thisobject
-
withSchemaId
public final ImmutableIcebergView withSchemaId(int value)
Copy the current immutable object by setting a value for theschemaIdattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for schemaId- Returns:
- A modified copy of the
thisobject
-
withSqlText
public final ImmutableIcebergView withSqlText(String value)
Copy the current immutable object by setting a value for thesqlTextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sqlText- Returns:
- A modified copy of the
thisobject
-
withDialect
public final ImmutableIcebergView withDialect(String value)
Copy the current immutable object by setting a value for thedialectattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dialect- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableIcebergViewthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,metadataLocation,versionId,schemaId,sqlText,dialect.
-
toString
public String toString()
Prints the immutable valueIcebergViewwith attribute values.
-
copyOf
public static ImmutableIcebergView copyOf(IcebergView instance)
Creates an immutable copy of aIcebergViewvalue. 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 IcebergView instance
-
builder
public static ImmutableIcebergView.Builder builder()
Creates a builder forImmutableIcebergView.ImmutableIcebergView.builder() .id(String) // optionalid.metadataLocation(String) // requiredmetadataLocation.versionId(int) // requiredversionId.schemaId(int) // requiredschemaId.sqlText(String) // requiredsqlText.dialect(String) // requireddialect.build();- Returns:
- A new ImmutableIcebergView builder
-
-