Package org.projectnessie.api.v1.http
Interface HttpContentApi
- All Superinterfaces:
ContentApi
@Consumes("application/json")
@Consumes("application/json")
@Path("v1/contents")
@Path("v1/contents")
public interface HttpContentApi
extends ContentApi
-
Method Summary
Modifier and TypeMethodDescriptiongetContent(ContentKey key, String ref, String hashOnRef) getMultipleContents(String ref, String hashOnRef, GetMultipleContentsRequest request) Similar toContentApi.getContent(ContentKey, String, String), but takes multipleContentKeys and returns theContentfor the one or moreContentKeys in a named-reference (aBranchorTag).
-
Method Details
-
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") String ref, @QueryParam("hashOnRef") @QueryParam("hashOnRef") String hashOnRef) throws NessieNotFoundException Description copied from interface:ContentApiThis operation returns theContentfor aContentKeyin a named-reference (aBranchorTag).If the table-metadata is tracked globally (Iceberg), Nessie returns a
Contentobject, 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:
getContentin interfaceContentApi- Parameters:
key- theContentKeys to retrieveref- named-reference to retrieve the content forhashOnRef- hash onrefto retrieve the content for, translates toHEAD, if missing/null- Returns:
- list of
GetMultipleContentsResponse.ContentWithKeys - Throws:
NessieNotFoundException- ifreforhashOnRefdoes not exist
-
getMultipleContents
@POST @POST @Produces("application/json") @Produces("application/json") @Consumes("application/json") @Consumes("application/json") GetMultipleContentsResponse getMultipleContents(@QueryParam("ref") @QueryParam("ref") String ref, @QueryParam("hashOnRef") @QueryParam("hashOnRef") String hashOnRef, GetMultipleContentsRequest request) throws NessieNotFoundException Description copied from interface:ContentApiSimilar toContentApi.getContent(ContentKey, String, String), but takes multipleContentKeys and returns theContentfor the one or moreContentKeys in a named-reference (aBranchorTag).If the table-metadata is tracked globally (Iceberg), Nessie returns a
Contentobject, 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:
getMultipleContentsin interfaceContentApi- Parameters:
ref- named-reference to retrieve the content forhashOnRef- hash onrefto retrieve the content for, translates toHEAD, if missing/nullrequest- theContentKeys to retrieve- Returns:
- list of
GetMultipleContentsResponse.ContentWithKeys - Throws:
NessieNotFoundException- ifreforhashOnRefdoes not exist
-