Fix javadoc for keyMayExist (#8232)

Summary:
Closes https://github.com/facebook/rocksdb/issues/6985

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8232

Reviewed By: jay-zhuang

Differential Revision: D27999779

Pulled By: mrambacher

fbshipit-source-id: a37c88d93bde2692b8be9e46e673dda7bea701b2
This commit is contained in:
Adam Retter 2021-04-26 08:33:15 -07:00 committed by Facebook GitHub Bot
parent 6bab3a34e9
commit 69c986825e

View File

@ -2546,7 +2546,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.
@ -2570,7 +2572,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.
@ -2599,7 +2603,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.
@ -2626,7 +2632,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.
@ -2658,7 +2666,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.
@ -2685,7 +2695,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.
@ -2717,7 +2729,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.
@ -2746,7 +2760,9 @@ public class RocksDB extends RocksObject {
/**
* If the key definitely does not exist in the database, then this method
* returns null, else it returns an instance of KeyMayExistResult
* returns false, otherwise it returns true if the key might exist.
* That is to say that this method is probabilistic and may return false
* positives, but never a true negative.
*
* If the caller wants to obtain value when the key
* is found in memory, then {@code valueHolder} must be set.