Package org.rocksdb
Class WBWIRocksIterator.WriteEntry
- java.lang.Object
-
- org.rocksdb.WBWIRocksIterator.WriteEntry
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- WBWIRocksIterator
public static class WBWIRocksIterator.WriteEntry extends java.lang.Object implements java.lang.AutoCloseableRepresents an entry returned byWBWIRocksIterator.entry()It is worth noting that a WriteEntry with the typeWBWIRocksIterator.WriteType.DELETEorWBWIRocksIterator.WriteType.LOGwill not have a value.
-
-
Constructor Summary
Constructors Constructor Description WriteEntry(WBWIRocksIterator.WriteType type, DirectSlice key, DirectSlice value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(java.lang.Object other)DirectSlicegetKey()Returns the key of the Write EntryWBWIRocksIterator.WriteTypegetType()Returns the type of the Write EntryDirectSlicegetValue()Returns the value of the Write EntryinthashCode()Generates a hash code for the Write Entry.
-
-
-
Constructor Detail
-
WriteEntry
public WriteEntry(WBWIRocksIterator.WriteType type, DirectSlice key, DirectSlice value)
-
-
Method Detail
-
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:
hashCodein classjava.lang.Object- Returns:
- The hash code for the Write Entry
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-