本文整理了Java中org.rocksdb.Options.setMergeOperatorName()
方法的一些代码示例,展示了Options.setMergeOperatorName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Options.setMergeOperatorName()
方法的具体详情如下:
包路径:org.rocksdb.Options
类名称:Options
方法名:setMergeOperatorName
暂无
代码示例来源:origin: hugegraph/hugegraph
@Override
public void createTable(String table) throws RocksDBException {
EnvOptions env = new EnvOptions();
Options options = new Options();
RocksDBStdSessions.initOptions(this.conf, options, options, options);
// NOTE: unset merge op due to SIGSEGV when cf.setMergeOperatorName()
options.setMergeOperatorName("not-exist-merge-op");
SstFileWriter sst = new SstFileWriter(env, options);
Path path = Paths.get(this.dataPath, table);
sst.open(path.toString() + ".sst");
this.tables.put(table, sst);
}
代码示例来源:origin: org.rocksdb/rocksdbjni
@Override
public Options setMergeOperatorName(final String name) {
assert(isOwningHandle());
if (name == null) {
throw new IllegalArgumentException(
"Merge operator name must not be null.");
}
setMergeOperatorName(nativeHandle_, name);
return this;
}
代码示例来源:origin: org.jsimpledb/jsimpledb-kv-rocksdb
/**
* Set the {@link Options} this instance will use when opening the database at startup.
* Overwrites any previous options configuration(s).
*
* @param options database options
* @throws IllegalArgumentException if {@code options} is null
* @throws IllegalStateException if this instance is already {@link #start}ed
*/
public synchronized void setOptions(Options options) {
Preconditions.checkArgument(options != null, "null options");
Preconditions.checkState(this.db == null, "already started");
this.options = options;
this.options.setMergeOperatorName("uint64add");
this.setLogger(this.options);
}
代码示例来源:origin: com.baidu.hugegraph/hugegraph-rocksdb
@Override
public void createTable(String table) throws RocksDBException {
EnvOptions env = new EnvOptions();
Options options = new Options();
RocksDBStdSessions.initOptions(this.conf, options, options, options);
// NOTE: unset merge op due to SIGSEGV when cf.setMergeOperatorName()
options.setMergeOperatorName("not-exist-merge-op");
SstFileWriter sst = new SstFileWriter(env, options);
Path path = Paths.get(this.dataPath, table);
sst.open(path.toString() + ".sst");
this.tables.put(table, sst);
}
内容来源于网络,如有侵权,请联系作者删除!