Package org.rocksdb

Class WBWIRocksIterator.WriteEntry

java.lang.Object
org.rocksdb.WBWIRocksIterator.WriteEntry
All Implemented Interfaces:
AutoCloseable
Enclosing class:
WBWIRocksIterator

public static class WBWIRocksIterator.WriteEntry extends Object implements AutoCloseable
Represents an entry returned by WBWIRocksIterator.entry() It is worth noting that a WriteEntry with the type WBWIRocksIterator.WriteType.DELETE or WBWIRocksIterator.WriteType.LOG will not have a value.
  • Constructor Details

  • Method Details

    • getType

      public WBWIRocksIterator.WriteType getType()
      Returns the type of the Write Entry
      Returns:
      the WriteType of the WriteEntry
    • 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 Object
      Returns:
      The hash code for the Write Entry
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable