Package org.apache.iceberg.nessie
Class NessieIcebergClient
java.lang.Object
org.apache.iceberg.nessie.NessieIcebergClient
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommitTable(TableMetadata base, TableMetadata metadata, String newMetadataLocation, String contentId, org.projectnessie.model.ContentKey key) voidcommitView(ViewMetadata base, ViewMetadata metadata, String newMetadataLocation, String contentId, org.projectnessie.model.ContentKey key) voidcreateNamespace(Namespace namespace, Map<String, String> metadata) booleandropNamespace(Namespace namespace) booleandropTable(TableIdentifier identifier, boolean purge) booleandropView(TableIdentifier identifier, boolean purge) org.projectnessie.model.IcebergContentfetchContent(TableIdentifier tableIdentifier) org.projectnessie.client.api.NessieApiV1getApi()org.projectnessie.model.ReferencelistNamespaces(Namespace namespace) listTables(Namespace namespace) loadNamespaceMetadata(Namespace namespace) refName()voidrefresh()booleanremoveProperties(Namespace namespace, Set<String> properties) voidrenameTable(TableIdentifier from, TableIdentifier to) voidrenameView(TableIdentifier from, TableIdentifier to) booleansetProperties(Namespace namespace, Map<String, String> properties) org.projectnessie.model.IcebergTabletable(TableIdentifier tableIdentifier) org.projectnessie.model.IcebergViewview(TableIdentifier tableIdentifier) withReference(String requestedRef, String hash)
-
Constructor Details
-
NessieIcebergClient
-
-
Method Details
-
getApi
public org.projectnessie.client.api.NessieApiV1 getApi() -
getReference
public org.projectnessie.model.Reference getReference() -
refresh
public void refresh() throws org.projectnessie.error.NessieNotFoundException- Throws:
org.projectnessie.error.NessieNotFoundException
-
withReference
-
listTables
-
listViews
-
table
-
view
-
fetchContent
-
createNamespace
-
listNamespaces
- Throws:
NoSuchNamespaceException
-
dropNamespace
- Throws:
NamespaceNotEmptyException
-
loadNamespaceMetadata
public Map<String,String> loadNamespaceMetadata(Namespace namespace) throws NoSuchNamespaceException - Throws:
NoSuchNamespaceException
-
setProperties
-
removeProperties
-
renameTable
-
renameView
-
dropTable
-
dropView
-
commitTable
public void commitTable(TableMetadata base, TableMetadata metadata, String newMetadataLocation, String contentId, org.projectnessie.model.ContentKey key) throws org.projectnessie.error.NessieConflictException, org.projectnessie.error.NessieNotFoundException - Throws:
org.projectnessie.error.NessieConflictExceptionorg.projectnessie.error.NessieNotFoundException
-
commitView
public void commitView(ViewMetadata base, ViewMetadata metadata, String newMetadataLocation, String contentId, org.projectnessie.model.ContentKey key) throws org.projectnessie.error.NessieConflictException, org.projectnessie.error.NessieNotFoundException - Throws:
org.projectnessie.error.NessieConflictExceptionorg.projectnessie.error.NessieNotFoundException
-
refName
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-