Package org.rocksdb

Class WBWIRocksIterator.WriteEntry

    • Method Detail

      • getKey

        public DirectSlice getKey()
        Returns the key of the Write Entry
        Returns:
        The slice containing the key of the WriteEntry
      • getValue

        public DirectSlice getValue()
        Returns the value of the Write Entry
        Returns:
        The slice containing the value of the WriteEntry or null if the WriteEntry has no value
      • hashCode

        public int hashCode()
        Generates a hash code for the Write Entry. NOTE: The hash code is based on the string representation of the key, so it may not work correctly with exotic custom comparators.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code for the Write Entry
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • close

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