Definition at line 134 of file cvnCreateDB.cc.
Definition at line 152 of file cvnCreateDB.cc.
157 outputDir=
config.fTestOutputDir;
159 outputDir=
config.fTrainOutputDir;
161 if (
config.fOutputFormat==
"LevelDB"){
162 leveldb::Options fileOptions;
163 fileOptions.error_if_exists =
config.fErrorIfExists;
164 fileOptions.create_if_missing =
config.fCreateIfMissing;
165 fileOptions.write_buffer_size =
config.fWriteBufferSize;
169 if(!leveldb::DB::Open(fileOptions, outputDir, &
fLevelDB).ok()) {
170 std::cout <<
"Problem opening the database: " 176 else if (
config.fOutputFormat==
"LMDB") {
177 mkdir(outputDir.c_str(),0777);
179 mdb_env_set_mapsize(
mdb_env, 10737418240);
180 mdb_env_open(
mdb_env, outputDir.c_str(), 0, 0777);
186 std::cout <<
"Unrecognized output format " <<
config.fOutputFormat <<
std::endl;
def mkdir(path, mode=0o777)
leveldb::WriteOptions fWriteOptions
QTextStream & endl(QTextStream &s)
Definition at line 196 of file cvnCreateDB.cc.
201 mdb_data.mv_size=serializeString.size();
202 mdb_data.mv_data=
reinterpret_cast<void*
>(&serializeString[0]);
203 mdb_key.mv_size=serializeKey.size();
204 mdb_key.mv_data=
reinterpret_cast<void*
>(&serializeKey[0]);
206 std::cout<<
"ERROR: Events not loaded correctly" <<
std::endl;
leveldb::WriteOptions fWriteOptions
QTextStream & endl(QTextStream &s)
leveldb::DB* OutputDB::fLevelDB |
|
private |
leveldb::WriteOptions OutputDB::fWriteOptions |
|
private |
MDB_val OutputDB::mdb_data |
|
private |
MDB_dbi OutputDB::mdb_dbi |
|
private |
MDB_env* OutputDB::mdb_env |
|
private |
MDB_val OutputDB::mdb_key |
|
private |
MDB_txn* OutputDB::mdb_txn |
|
private |
The documentation for this class was generated from the following file: