Package org.projectnessie.model
Class Content
java.lang.Object
org.projectnessie.model.Content
- Direct Known Subclasses:
DeltaLakeTable,GenericContent,IcebergContent,Namespace,UDF
Base class for an object stored within Nessie.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Content
public Content()
-
-
Method Details
-
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.
-
getType
Returns theContent.Typevalue for this content object.The name of the returned value should match the JSON type name used for serializing the content object.
-
withId
-
unwrap
Unwrap object if possible, otherwise throw.- Type Parameters:
T- Type to wrap to.- Parameters:
clazz- Class we're trying to return.- Returns:
- The return value
-