|
|
|
@ -2235,13 +2235,16 @@ public class Options extends RocksObject { |
|
|
|
|
long handle, int minPartialMergeOperands); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set the merge operator to be used for merging two different key/value |
|
|
|
|
* pairs that share the same key. The merge function is invoked during |
|
|
|
|
* Set the merge operator to be used for merging two merge operands |
|
|
|
|
* of the same key. The merge function is invoked during |
|
|
|
|
* compaction and at lookup time, if multiple key/value pairs belonging |
|
|
|
|
* to the same key are found in the database. |
|
|
|
|
* |
|
|
|
|
* @param name the name of the merge function, as defined by |
|
|
|
|
* the MergeOperators factory (see utilities/MergeOperators.h) |
|
|
|
|
* The merge function is specified by name and must be one of the |
|
|
|
|
* standard merge operators provided by RocksDB. The available |
|
|
|
|
* operators are "put", "uint64add", "stringappend" and "stringappendtest". |
|
|
|
|
* @return the reference to the current option. |
|
|
|
|
*/ |
|
|
|
|
public Options setMergeOperatorName(String name) { |
|
|
|
@ -2257,8 +2260,7 @@ public class Options extends RocksObject { |
|
|
|
|
* compaction and at lookup time, if multiple key/value pairs belonging |
|
|
|
|
* to the same key are found in the database. |
|
|
|
|
* |
|
|
|
|
* @param name the name of the merge function, as defined by |
|
|
|
|
* the MergeOperators factory (see utilities/MergeOperators.h) |
|
|
|
|
* @param a {@link MergeOperator} object |
|
|
|
|
* @return the reference to the current option. |
|
|
|
|
*/ |
|
|
|
|
public Options setMergeOperator(MergeOperator mergeOperator) { |
|
|
|
|