Class NessieIcebergClient

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class NessieIcebergClient
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • NessieIcebergClient

        public NessieIcebergClient​(org.projectnessie.client.api.NessieApiV1 api,
                                   java.lang.String requestedRef,
                                   java.lang.String requestedHash,
                                   java.util.Map<java.lang.String,​java.lang.String> catalogOptions)
    • Method Detail

      • 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

        public NessieIcebergClient withReference​(java.lang.String requestedRef,
                                                 java.lang.String hash)
      • table

        public org.projectnessie.model.IcebergTable table​(TableIdentifier tableIdentifier)
      • createNamespace

        public void createNamespace​(Namespace namespace,
                                    java.util.Map<java.lang.String,​java.lang.String> metadata)
      • setProperties

        public boolean setProperties​(Namespace namespace,
                                     java.util.Map<java.lang.String,​java.lang.String> properties)
      • removeProperties

        public boolean removeProperties​(Namespace namespace,
                                        java.util.Set<java.lang.String> properties)
      • dropTable

        public boolean dropTable​(TableIdentifier identifier,
                                 boolean purge)
      • commitTable

        public void commitTable​(TableMetadata base,
                                TableMetadata metadata,
                                java.lang.String newMetadataLocation,
                                org.projectnessie.model.IcebergTable expectedContent,
                                org.projectnessie.model.ContentKey key)
                         throws org.projectnessie.error.NessieConflictException,
                                org.projectnessie.error.NessieNotFoundException
        Throws:
        org.projectnessie.error.NessieConflictException
        org.projectnessie.error.NessieNotFoundException
      • refName

        public java.lang.String refName()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable