Interface KeyValueStorage.Batch

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    Enclosing interface:
    KeyValueStorage

    public static interface KeyValueStorage.Batch
    extends java.io.Closeable
    Interface for a batch to be written in the storage.
    • Method Detail

      • put

        void put​(byte[] key,
                 byte[] value)
          throws java.io.IOException
        Throws:
        java.io.IOException
      • remove

        void remove​(byte[] key)
             throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteRange

        void deleteRange​(byte[] beginKey,
                         byte[] endKey)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • clear

        void clear()
      • flush

        void flush()
            throws java.io.IOException
        Throws:
        java.io.IOException
      • batchCount

        default int batchCount()