Package org.projectnessie.model
Class Content
- java.lang.Object
-
- org.projectnessie.model.Content
-
- Direct Known Subclasses:
DeltaLakeTable,IcebergTable,SqlView
public abstract class Content extends Object
Base class for an object stored within Nessie.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContent.Type
-
Constructor Summary
Constructors Constructor Description Content()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetId()Unique id for this object.abstract Content.TypegetType()Returns theContent.Typeenum constant for this content object.<T> Optional<T>unwrap(Class<T> clazz)Unwrap object if possible, otherwise throw.
-
-
-
Method Detail
-
getId
@Default 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.
-
getType
@Redacted public abstract Content.Type getType()
Returns 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.
-
-