Class GenericContent


  • @Immutable
    public abstract class GenericContent
    extends Content
    Special Content reserved for cases when the actual content type is not available.

    Nessie servers cannot properly handle unknown content types, but with this "fallback" clients can at least deserialize the content object and do not fail hard / error out.

    • Constructor Detail

      • GenericContent

        public GenericContent()
    • Method Detail

      • getType

        @Parameter(order=1)
        public abstract Content.Type getType()
        Description copied from class: Content
        Returns the Content.Type value for this content object.

        The name of the returned value should match the JSON type name used for serializing the content object.

        Specified by:
        getType in class Content
      • getId

        @Nullable
        @Nullable
        @Parameter(order=2)
        public abstract java.lang.String getId()
        Description copied from class: Content
        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.

        Specified by:
        getId in class Content
      • getAttributes

        @Nullable
        @Nullable
        @Parameter(order=3)
        public abstract java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
      • contentUnknownType

        public static GenericContent contentUnknownType​(java.lang.String type,
                                                        java.lang.String id,
                                                        java.util.Map<java.lang.String,​java.lang.Object> all)