Interface HttpContentApi

  • All Superinterfaces:
    ContentApi

    @Consumes("application/json")
    @Consumes("application/json")
    @Path("v1/contents")
    @Path("v1/contents")
    public interface HttpContentApi
    extends ContentApi
    • Method Detail

      • getContent

        @GET
        @GET
        @Produces("application/json")
        @Produces("application/json")
        @Path("{key}")
        @Path("{key}")
        Content getContent​(@PathParam("key") @PathParam("key")
                           ContentKey key,
                           @QueryParam("ref") @QueryParam("ref")
                           java.lang.String ref,
                           @QueryParam("hashOnRef") @QueryParam("hashOnRef")
                           java.lang.String hashOnRef)
                    throws NessieNotFoundException
        Description copied from interface: ContentApi
        This operation returns the Content for a ContentKey in a named-reference (a Branch or Tag).

        If the table-metadata is tracked globally (Iceberg), Nessie returns a Content object, that contains the most up-to-date part for the globally tracked part (Iceberg: table-metadata) plus the per-Nessie-reference/hash specific part (Iceberg: snapshot-ID, schema-ID, partition-spec-ID, default-sort-order-ID).

        Specified by:
        getContent in interface ContentApi
        Parameters:
        key - the ContentKeys to retrieve
        ref - named-reference to retrieve the content for
        hashOnRef - hash on ref to retrieve the content for, translates to HEAD, if missing/null
        Returns:
        list of GetMultipleContentsResponse.ContentWithKeys
        Throws:
        NessieNotFoundException - if ref or hashOnRef does not exist