Package org.rocksdb
Class WBWIRocksIterator.WriteEntry
java.lang.Object
org.rocksdb.WBWIRocksIterator.WriteEntry
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
WBWIRocksIterator
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 Summary
ConstructorsConstructorDescriptionWriteEntry(WBWIRocksIterator.WriteType type, DirectSlice key, DirectSlice value) -
Method Summary
-
Constructor Details
-
WriteEntry
-
-
Method Details
-
getType
Returns the type of the Write Entry- Returns:
- the WriteType of the WriteEntry
-
getKey
Returns the key of the Write Entry- Returns:
- The slice containing the key of the WriteEntry
-
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. -
equals
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-