本文整理了Java中org.rocksdb.RocksDB.ingestExternalFile
方法的一些代码示例,展示了RocksDB.ingestExternalFile
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RocksDB.ingestExternalFile
方法的具体详情如下:
包路径:org.rocksdb.RocksDB
类名称:RocksDB
方法名:ingestExternalFile
[英]ingestExternalFile will load a list of external SST files (1) into the DB We will try to find the lowest possible level that the file can fit in, and ingest the file into this level (2). A file that have a key range that overlap with the memtable key range will require us to Flush the memtable first before ingesting the file. (1) External SST files can be created using SstFileWriter(2) We will try to ingest the files to the lowest possible level even if the file compression doesn't match the level compression
[中]ingestExternalFile将外部SST文件列表(1)加载到数据库中。我们将尝试找到该文件可以容纳的最低级别,并将该文件摄入该级别(2)。如果文件的密钥范围与memtable密钥范围重叠,则需要我们在接收该文件之前先刷新memtable。(1) 外部SST文件可以使用SstFileWriter创建(2)我们将尝试将文件接收到尽可能低的级别,即使文件压缩与压缩级别不匹配
代码示例来源:origin: hugegraph/hugegraph
public void ingest(ColumnFamilyHandle cf, List<String> ssts)
throws RocksDBException {
if (!ssts.isEmpty()) {
this.rocksdb.ingestExternalFile(cf, ssts, this.options);
}
}
代码示例来源:origin: com.baidu.hugegraph/hugegraph-rocksdb
public void ingest(ColumnFamilyHandle cf, List<String> ssts)
throws RocksDBException {
if (!ssts.isEmpty()) {
this.rocksdb.ingestExternalFile(cf, ssts, this.options);
}
}
代码示例来源:origin: org.rocksdb/rocksdbjni
/**
* ingestExternalFile will load a list of external SST files (1) into the DB
* We will try to find the lowest possible level that the file can fit in, and
* ingest the file into this level (2). A file that have a key range that
* overlap with the memtable key range will require us to Flush the memtable
* first before ingesting the file.
*
* (1) External SST files can be created using {@link SstFileWriter}
* (2) We will try to ingest the files to the lowest possible level
* even if the file compression doesn't match the level compression
*
* @param columnFamilyHandle The column family for the ingested files
* @param filePathList The list of files to ingest
* @param ingestExternalFileOptions the options for the ingestion
*
* @throws RocksDBException thrown if error happens in underlying
* native library.
*/
public void ingestExternalFile(final ColumnFamilyHandle columnFamilyHandle,
final List<String> filePathList,
final IngestExternalFileOptions ingestExternalFileOptions)
throws RocksDBException {
ingestExternalFile(nativeHandle_, columnFamilyHandle.nativeHandle_,
filePathList.toArray(new String[filePathList.size()]),
filePathList.size(), ingestExternalFileOptions.nativeHandle_);
}
代码示例来源:origin: org.rocksdb/rocksdbjni
/**
* ingestExternalFile will load a list of external SST files (1) into the DB
* We will try to find the lowest possible level that the file can fit in, and
* ingest the file into this level (2). A file that have a key range that
* overlap with the memtable key range will require us to Flush the memtable
* first before ingesting the file.
*
* (1) External SST files can be created using {@link SstFileWriter}
* (2) We will try to ingest the files to the lowest possible level
* even if the file compression doesn't match the level compression
*
* @param filePathList The list of files to ingest
* @param ingestExternalFileOptions the options for the ingestion
*
* @throws RocksDBException thrown if error happens in underlying
* native library.
*/
public void ingestExternalFile(final List<String> filePathList,
final IngestExternalFileOptions ingestExternalFileOptions)
throws RocksDBException {
ingestExternalFile(nativeHandle_, getDefaultColumnFamily().nativeHandle_,
filePathList.toArray(new String[filePathList.size()]),
filePathList.size(), ingestExternalFileOptions.nativeHandle_);
}
内容来源于网络,如有侵权,请联系作者删除!