Package org.apache.iceberg.nessie
Class NessieIcebergClient
java.lang.Object
org.apache.iceberg.nessie.NessieIcebergClient
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
commitTable
(TableMetadata base, TableMetadata metadata, String newMetadataLocation, String contentId, org.projectnessie.model.ContentKey key) void
commitView
(ViewMetadata base, ViewMetadata metadata, String newMetadataLocation, String contentId, org.projectnessie.model.ContentKey key) void
createNamespace
(Namespace namespace, Map<String, String> metadata) boolean
dropNamespace
(Namespace namespace) boolean
dropTable
(TableIdentifier identifier, boolean purge) boolean
dropView
(TableIdentifier identifier, boolean purge) org.projectnessie.model.IcebergContent
fetchContent
(TableIdentifier tableIdentifier) org.projectnessie.client.api.NessieApiV1
getApi()
org.projectnessie.model.Reference
listNamespaces
(Namespace namespace) listTables
(Namespace namespace) loadNamespaceMetadata
(Namespace namespace) refName()
void
refresh()
boolean
removeProperties
(Namespace namespace, Set<String> properties) void
renameTable
(TableIdentifier from, TableIdentifier to) void
renameView
(TableIdentifier from, TableIdentifier to) boolean
setProperties
(Namespace namespace, Map<String, String> properties) org.projectnessie.model.IcebergTable
table
(TableIdentifier tableIdentifier) org.projectnessie.model.IcebergView
view
(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.NessieConflictException
org.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.NessieConflictException
org.projectnessie.error.NessieNotFoundException
-
refName
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-