From 74bdd1dd353d169b9e267732eb166214a1e0962f Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 10 Jun 2022 17:50:59 +0800 Subject: [PATCH 01/26] fix range_deletion schedule --- db/db_impl.cc | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 9bca984b64..260f25e839 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1057,24 +1057,29 @@ void DBImpl::ScheduleTtlGC() { return v == port::kMaxUint64 ? 0 : v; }; ROCKS_LOG_BUFFER( - &log_buffer_info, + &log_buffer_debug, "SST #%" PRIu64 " ttl schedule debug info @L%d , property: (%" PRIu64 " , %" PRIu64 ") now: %" PRIu64 " deleted key: %" PRIu64, meta->fd.GetNumber(), l, max_to_zero(meta->prop.earliest_time_begin_compact), max_to_zero(meta->prop.latest_time_end_compact), now, meta->prop.num_deletions); - if( meta->prop.num_deletions > meta->prop.num_entries * 0.2 ){ - meta->marked_for_compaction = FileMetaData::kMarkedFromRangeDeletion; - ROCKS_LOG_BUFFER( - &log_buffer_info, - "SST #%" PRIu64 " ttl schedule debug info @L%d , property: (%" PRIu64 - " , %" PRIu64 ") now: %" PRIu64 " deleted key: %" PRIu64 " marked as range_deletion", - meta->fd.GetNumber(), l, max_to_zero(meta->prop.earliest_time_begin_compact), - max_to_zero(meta->prop.latest_time_end_compact), now, meta->prop.num_deletions); - } - ++total_count; bool marked = - !!(meta->marked_for_compaction & FileMetaData::kMarkedFromTTL); + !!(meta->marked_for_compaction & (FileMetaData::kMarkedFromTTL | FileMetaData::kMarkedFromRangeDeletion)); + ++total_count; old_mark_count += marked; + if (!marked && + meta->prop.num_deletions > meta->prop.num_entries * 0.2) { + meta->marked_for_compaction |= FileMetaData::kMarkedFromRangeDeletion; + ROCKS_LOG_BUFFER(&log_buffer_info, + "SST #%" PRIu64 + " ttl schedule debug info @L%d , property: (%" PRIu64 + " , %" PRIu64 ") now: %" PRIu64 + " deleted key: %" PRIu64 " marked as range_deletion", + meta->fd.GetNumber(), l, + max_to_zero(meta->prop.earliest_time_begin_compact), + max_to_zero(meta->prop.latest_time_end_compact), now, + meta->prop.num_deletions); + marked = true; + } TEST_SYNC_POINT("DBImpl:Exist-SST"); if (!marked && has_ttl && should_marked_for_compacted( From 9121d1db96bd5d56443521f4fdcc229a21a7a42e Mon Sep 17 00:00:00 2001 From: wangyi Date: Wed, 15 Jun 2022 12:14:22 +0800 Subject: [PATCH 02/26] update publish script of release --- java/publish-terarkdbjni-bd-release.sh | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 java/publish-terarkdbjni-bd-release.sh diff --git a/java/publish-terarkdbjni-bd-release.sh b/java/publish-terarkdbjni-bd-release.sh new file mode 100755 index 0000000000..af9eb6892e --- /dev/null +++ b/java/publish-terarkdbjni-bd-release.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +################################################################################ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +# fail on errors +set -e + +PREFIX=java/target/frocksdb-release/fterarkdbjni-${VERSION} + +function deploy() { + echo "Deploying with prefix=${PREFIX}" + mvn deploy:deploy-file \ + -DrepositoryId=bytedance-releases \ + -Durl=http://maven.byted.org/repository/releases \ + -Dfile=${PREFIX}.jar \ + -Dsources=${PREFIX}-sources.jar \ + -Djavadoc=${PREFIX}-javadoc.jar \ + -DpomFile=${PREFIX}.pom + +} + +deploy From cbe97f812f33bb4496dc72b6790215f9346d07b0 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Wed, 22 Jun 2022 16:59:55 +0800 Subject: [PATCH 03/26] support fake flush for check_point --- db/db_filesnapshot.cc | 91 +++++++++++++++++++++++++ db/db_impl.h | 7 ++ db/version_builder.cc | 6 +- db/version_edit.h | 4 ++ include/rocksdb/db.h | 11 +++ include/rocksdb/options.h | 2 + utilities/checkpoint/checkpoint_impl.cc | 12 +++- 7 files changed, 131 insertions(+), 2 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index cda47f65a2..d5998332a1 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -81,6 +81,97 @@ int DBImpl::IsFileDeletionsEnabled() const { return !disable_delete_obsolete_files_; } +Status DBImpl::UndoFakeFlush() { + mutex_.Lock(); + autovector cfds; + for (auto cfd : *versions_->GetColumnFamilySet()) { + if (cfd->IsDropped()) { + continue; + } + cfd->Ref(); + cfds.push_back(cfd); + } + mutex_.Unlock(); + Status status; + for (auto cfd : cfds) { + auto iter = version_edits_.find(cfd->GetID()); + if (iter == version_edits_.end()) continue; + VersionEdit* edit = &iter->second; + VersionEdit edit_del; + for (auto f : edit->GetNewFiles()) { + edit_del.DeleteFile(0, f.second.fd.GetNumber()); + } + edit_del.set_check_point(true); + mutex_.Lock(); + status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), + &edit_del, &mutex_); + mutex_.Unlock(); + if (!status.ok()) { + break; + } + } + + mutex_.Lock(); + for (auto cfd : cfds) { + cfd->Unref(); + } + mutex_.Unlock(); + + return status; +} + +Status DBImpl::FakeFlush(std::vector& ret) { + Status status; + mutex_.Lock(); + autovector cfds; + for (auto cfd : *versions_->GetColumnFamilySet()) { + if (cfd->IsDropped()) { + continue; + } + cfd->Ref(); + cfds.push_back(cfd); + } + mutex_.Unlock(); + version_edits_.clear(); + + for (auto cfd : cfds) { + VersionEdit edit; + edit.SetColumnFamily(cfd->GetID()); + version_edits_.insert({cfd->GetID(), edit}); + } + for (auto cfd : cfds) { + auto iter = version_edits_.find(cfd->GetID()); + int job_id = next_job_id_.fetch_add(1); + VersionEdit* edit = &iter->second; + status = WriteLevel0TableForRecovery(job_id, cfd, cfd->mem(), edit); + edit->set_check_point(true); + if (status.ok()) { + mutex_.Lock(); + status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), + edit, &mutex_); + mutex_.Unlock(); + if (!status.ok()) { + break; + } + } + } + mutex_.Lock(); + for (auto cfd : cfds) { + cfd->Unref(); + } + mutex_.Unlock(); + + if (status.ok()) { + for (auto iter : version_edits_) { + VersionEdit* edit = &iter.second; + int cf_id = iter.first; + for (auto f : edit->GetNewFiles()) { + ret.push_back(MakeTableFileName("", f.second.fd.GetNumber())); + } + } + } + return status; +} Status DBImpl::GetLiveFiles(std::vector& ret, uint64_t* manifest_file_size, bool flush_memtable) { *manifest_file_size = 0; diff --git a/db/db_impl.h b/db/db_impl.h index 66c51a6c3f..8791b033bd 100644 --- a/db/db_impl.h +++ b/db/db_impl.h @@ -276,6 +276,11 @@ class DBImpl : public DB { virtual Status DisableFileDeletions() override; virtual Status EnableFileDeletions(bool force) override; virtual int IsFileDeletionsEnabled() const; + + virtual Status FakeFlush(std::vector&) override; + + virtual Status UndoFakeFlush() override; + // All the returned filenames start with "/" virtual Status GetLiveFiles(std::vector&, uint64_t* manifest_file_size, @@ -1827,6 +1832,8 @@ class DBImpl : public DB { ErrorHandler error_handler_; + std::unordered_map version_edits_; + // Conditional variable to coordinate installation of atomic flush results. // With atomic flush, each bg thread installs the result of flushing multiple // column families, and different threads can flush different column diff --git a/db/version_builder.cc b/db/version_builder.cc index 3e260ab95b..f47d277602 100644 --- a/db/version_builder.cc +++ b/db/version_builder.cc @@ -877,7 +877,11 @@ bool VersionBuilder::CheckConsistencyForNumLevels() { return rep_->CheckConsistencyForNumLevels(); } -void VersionBuilder::Apply(VersionEdit* edit) { rep_->Apply(edit); } +void VersionBuilder::Apply(VersionEdit* edit) { + // not change the current state + if(edit->check_point()) return; + rep_->Apply(edit); +} void VersionBuilder::SaveTo(VersionStorageInfo* vstorage, double maintainer_job_ratio) { diff --git a/db/version_edit.h b/db/version_edit.h index 8e1a41a44d..f47c995d5b 100644 --- a/db/version_edit.h +++ b/db/version_edit.h @@ -411,6 +411,9 @@ class VersionEdit { std::string DebugString(bool hex_key = false) const; std::string DebugJSON(int edit_num, bool hex_key = false) const; + bool check_point() { return for_checkpoint_; } + void set_check_point(bool b) { for_checkpoint_ = b; } + private: friend class VersionSet; friend class Version; @@ -450,6 +453,7 @@ class VersionEdit { bool is_column_family_add_; std::string column_family_name_; + bool for_checkpoint_; bool is_open_db_; bool is_in_atomic_group_; uint32_t remaining_entries_; diff --git a/include/rocksdb/db.h b/include/rocksdb/db.h index c6272e2d09..6d261c4dda 100644 --- a/include/rocksdb/db.h +++ b/include/rocksdb/db.h @@ -1042,6 +1042,15 @@ class DB { // threads call EnableFileDeletions() virtual Status EnableFileDeletions(bool force = true) = 0; + + virtual Status FakeFlush(std::vector&){ + return Status::NotSupported("FakeFlush not implemented"); + } + + virtual Status UndoFakeFlush(){ + return Status::NotSupported("UndoFakeFlush not implemented"); + } + // GetLiveFiles followed by GetSortedWalFiles can generate a lossless backup // Retrieve the list of all files in the database. The files are @@ -1058,6 +1067,8 @@ class DB { // you still need to call GetSortedWalFiles after GetLiveFiles to compensate // for new data that arrived to already-flushed column families while other // column families were flushing + + virtual Status GetLiveFiles(std::vector&, uint64_t* manifest_file_size, bool flush_memtable = true) = 0; diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index 110f5ec52a..07ab6d0e74 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -993,6 +993,8 @@ struct DBOptions { // transaction is encountered in the WAL bool allow_2pc = false; + bool check_point_fake_flush = true; + // A global cache for table-level rows. // Default: nullptr (disabled) // Not supported in ROCKSDB_LITE mode! diff --git a/utilities/checkpoint/checkpoint_impl.cc b/utilities/checkpoint/checkpoint_impl.cc index 5f7981622c..a097a0606d 100644 --- a/utilities/checkpoint/checkpoint_impl.cc +++ b/utilities/checkpoint/checkpoint_impl.cc @@ -204,7 +204,12 @@ Status CheckpointImpl::CreateCustomCheckpoint( } // this will return live_files prefixed with "/" - s = db_->GetLiveFiles(live_files, &manifest_file_size, flush_memtable); + if(db_options.check_point_fake_flush){ + s = db_->FakeFlush(live_files); + s = db_->GetLiveFiles(live_files, &manifest_file_size, false); + }else{ + s = db_->GetLiveFiles(live_files, &manifest_file_size, flush_memtable); + } if (s.ok() && db_options.allow_2pc) { // If 2PC is enabled, we need to get minimum log number after the flush. @@ -324,6 +329,11 @@ Status CheckpointImpl::CreateCustomCheckpoint( } } + if(db_options.check_point_fake_flush){ + // Write Manifest + db_->UndoFakeFlush(); + } + return s; } From c91e19143d96e827fd45eaa90f6b35e98a4edf88 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Wed, 29 Jun 2022 14:22:11 +0800 Subject: [PATCH 04/26] fix fake_flush variable init --- db/version_edit.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/version_edit.cc b/db/version_edit.cc index 0435704bc6..9bf4e6d2af 100644 --- a/db/version_edit.cc +++ b/db/version_edit.cc @@ -124,6 +124,7 @@ void VersionEdit::Clear() { is_open_db_ = false; is_in_atomic_group_ = false; remaining_entries_ = 0; + for_checkpoint_ = false; } bool VersionEdit::EncodeTo(std::string* dst) const { From 444593533bbc00cbba488e2c83bd541de010622e Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Wed, 29 Jun 2022 14:39:31 +0800 Subject: [PATCH 05/26] fix checkpoint unit test --- db/db_filesnapshot.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index d5998332a1..182c4124e8 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -131,7 +131,6 @@ Status DBImpl::FakeFlush(std::vector& ret) { cfd->Ref(); cfds.push_back(cfd); } - mutex_.Unlock(); version_edits_.clear(); for (auto cfd : cfds) { @@ -146,16 +145,14 @@ Status DBImpl::FakeFlush(std::vector& ret) { status = WriteLevel0TableForRecovery(job_id, cfd, cfd->mem(), edit); edit->set_check_point(true); if (status.ok()) { - mutex_.Lock(); + status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), edit, &mutex_); - mutex_.Unlock(); if (!status.ok()) { break; } } } - mutex_.Lock(); for (auto cfd : cfds) { cfd->Unref(); } From a473a12832afb4e9d1d32010e2bef6a14c965a47 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Wed, 29 Jun 2022 15:00:12 +0800 Subject: [PATCH 06/26] fix check_point file not found --- db/db_filesnapshot.cc | 3 ++- utilities/checkpoint/checkpoint_impl.cc | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 182c4124e8..36a01c2a41 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -163,7 +163,8 @@ Status DBImpl::FakeFlush(std::vector& ret) { VersionEdit* edit = &iter.second; int cf_id = iter.first; for (auto f : edit->GetNewFiles()) { - ret.push_back(MakeTableFileName("", f.second.fd.GetNumber())); + ret.push_back(MakeTableFileName("", + f.second.fd.GetNumber())); } } } diff --git a/utilities/checkpoint/checkpoint_impl.cc b/utilities/checkpoint/checkpoint_impl.cc index a097a0606d..543a51abc3 100644 --- a/utilities/checkpoint/checkpoint_impl.cc +++ b/utilities/checkpoint/checkpoint_impl.cc @@ -170,6 +170,7 @@ Status CheckpointImpl::CreateCustomCheckpoint( uint64_t* sequence_number, uint64_t log_size_for_flush) { Status s; std::vector live_files; + std::vector fake_flush_files; uint64_t manifest_file_size = 0; uint64_t min_log_num = port::kMaxUint64; *sequence_number = db_->GetLatestSequenceNumber(); @@ -205,8 +206,10 @@ Status CheckpointImpl::CreateCustomCheckpoint( // this will return live_files prefixed with "/" if(db_options.check_point_fake_flush){ - s = db_->FakeFlush(live_files); + s = db_->FakeFlush(fake_flush_files); s = db_->GetLiveFiles(live_files, &manifest_file_size, false); + live_files.insert(live_files.end(), fake_flush_files.begin(), + fake_flush_files.end()); }else{ s = db_->GetLiveFiles(live_files, &manifest_file_size, flush_memtable); } From b905041b5a26a6033fc0c562c73ddc4db5e2266b Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Thu, 30 Jun 2022 14:37:19 +0800 Subject: [PATCH 07/26] fix ut & not copy wal file --- db/db_filesnapshot.cc | 2 ++ utilities/checkpoint/checkpoint_impl.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 36a01c2a41..a57f34d732 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -157,6 +157,8 @@ Status DBImpl::FakeFlush(std::vector& ret) { cfd->Unref(); } mutex_.Unlock(); + TEST_SYNC_POINT("DBImpl::GetLiveFiles:1"); + TEST_SYNC_POINT("DBImpl::GetLiveFiles:2"); if (status.ok()) { for (auto iter : version_edits_) { diff --git a/utilities/checkpoint/checkpoint_impl.cc b/utilities/checkpoint/checkpoint_impl.cc index 543a51abc3..f385df8870 100644 --- a/utilities/checkpoint/checkpoint_impl.cc +++ b/utilities/checkpoint/checkpoint_impl.cc @@ -246,7 +246,7 @@ Status CheckpointImpl::CreateCustomCheckpoint( db_->FlushWAL(false /* sync */); } // if we have more than one column family, we need to also get WAL files - if (s.ok()) { + if (s.ok() && !db_options.check_point_fake_flush ) { s = db_->GetSortedWalFiles(live_wal_files); } if (!s.ok()) { From c7417c19f4e5f206547ccaa2450e099dc3e81c8d Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Thu, 30 Jun 2022 20:22:07 +0800 Subject: [PATCH 08/26] fix manifest too large --- db/version_edit.h | 2 +- include/rocksdb/options.h | 2 +- utilities/checkpoint/checkpoint_impl.cc | 14 +++++++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/db/version_edit.h b/db/version_edit.h index f47c995d5b..305ea7cb0d 100644 --- a/db/version_edit.h +++ b/db/version_edit.h @@ -411,7 +411,7 @@ class VersionEdit { std::string DebugString(bool hex_key = false) const; std::string DebugJSON(int edit_num, bool hex_key = false) const; - bool check_point() { return for_checkpoint_; } + bool check_point() const { return for_checkpoint_; } void set_check_point(bool b) { for_checkpoint_ = b; } private: diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index 07ab6d0e74..0b48a058fe 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -993,7 +993,7 @@ struct DBOptions { // transaction is encountered in the WAL bool allow_2pc = false; - bool check_point_fake_flush = true; + bool check_point_fake_flush = false; // A global cache for table-level rows. // Default: nullptr (disabled) diff --git a/utilities/checkpoint/checkpoint_impl.cc b/utilities/checkpoint/checkpoint_impl.cc index f385df8870..bf65668eb6 100644 --- a/utilities/checkpoint/checkpoint_impl.cc +++ b/utilities/checkpoint/checkpoint_impl.cc @@ -205,12 +205,16 @@ Status CheckpointImpl::CreateCustomCheckpoint( } // this will return live_files prefixed with "/" - if(db_options.check_point_fake_flush){ + if (db_options.check_point_fake_flush) { s = db_->FakeFlush(fake_flush_files); - s = db_->GetLiveFiles(live_files, &manifest_file_size, false); - live_files.insert(live_files.end(), fake_flush_files.begin(), - fake_flush_files.end()); - }else{ + if (s.ok()) { + s = db_->GetLiveFiles(live_files, &manifest_file_size, false); + } + if (s.ok()) { + live_files.insert(live_files.end(), fake_flush_files.begin(), + fake_flush_files.end()); + } + } else { s = db_->GetLiveFiles(live_files, &manifest_file_size, flush_memtable); } From ce803414134bd74908582175c7bbe7322a250a65 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 1 Jul 2022 02:10:34 +0800 Subject: [PATCH 09/26] WIP --- db/version_set.cc | 4 +--- include/rocksdb/options.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/db/version_set.cc b/db/version_set.cc index 096c61a3c3..9c4871ca49 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -3192,9 +3192,7 @@ Status VersionSet::ProcessManifestWrites(std::deque& writers, Status s; assert(pending_manifest_file_number_ == 0); - if (!descriptor_log_ || - manifest_file_size_ > db_options_->max_manifest_file_size || - manifest_edit_count_ > db_options_->max_manifest_edit_count) { + if (!descriptor_log_) { pending_manifest_file_number_ = NewFileNumber(); batch_edits.back()->SetNextFile(next_file_number_.load()); new_descriptor_log = true; diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index 0b48a058fe..07ab6d0e74 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -993,7 +993,7 @@ struct DBOptions { // transaction is encountered in the WAL bool allow_2pc = false; - bool check_point_fake_flush = false; + bool check_point_fake_flush = true; // A global cache for table-level rows. // Default: nullptr (disabled) From c6891d3665407c13b6e9c7f7d3947ff7851738b2 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 1 Jul 2022 02:27:28 +0800 Subject: [PATCH 10/26] WIP --- db/db_filesnapshot.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index a57f34d732..30b32abe4e 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -142,7 +142,15 @@ Status DBImpl::FakeFlush(std::vector& ret) { auto iter = version_edits_.find(cfd->GetID()); int job_id = next_job_id_.fetch_add(1); VersionEdit* edit = &iter->second; - status = WriteLevel0TableForRecovery(job_id, cfd, cfd->mem(), edit); + autovector mems; + cfd->imm()->PickMemtablesToFlush(nullptr,&mems); + for(auto m: mems){ + status = WriteLevel0TableForRecovery(job_id, cfd, m , edit); + if(!status.ok()) break; + } + if(status.ok()){ + status = WriteLevel0TableForRecovery(job_id, cfd, cfd->mem(), edit); + } edit->set_check_point(true); if (status.ok()) { From c1d85471a9b21d7baa671a5f1f7f755155812a55 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 1 Jul 2022 02:45:25 +0800 Subject: [PATCH 11/26] WIP --- db/db_filesnapshot.cc | 4 +++- db/db_impl.h | 1 + utilities/checkpoint/checkpoint_impl.cc | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 30b32abe4e..90be4fb545 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -82,6 +82,7 @@ int DBImpl::IsFileDeletionsEnabled() const { } Status DBImpl::UndoFakeFlush() { + ReleaseFileNumberFromPendingOutputs(pending_output_elem_); mutex_.Lock(); autovector cfds; for (auto cfd : *versions_->GetColumnFamilySet()) { @@ -121,6 +122,7 @@ Status DBImpl::UndoFakeFlush() { } Status DBImpl::FakeFlush(std::vector& ret) { + pending_output_elem_ = CaptureCurrentFileNumberInPendingOutputs(); Status status; mutex_.Lock(); autovector cfds; @@ -144,7 +146,7 @@ Status DBImpl::FakeFlush(std::vector& ret) { VersionEdit* edit = &iter->second; autovector mems; cfd->imm()->PickMemtablesToFlush(nullptr,&mems); - for(auto m: mems){ + for(auto& m: mems){ status = WriteLevel0TableForRecovery(job_id, cfd, m , edit); if(!status.ok()) break; } diff --git a/db/db_impl.h b/db/db_impl.h index 8791b033bd..a7a3bee7e0 100644 --- a/db/db_impl.h +++ b/db/db_impl.h @@ -1833,6 +1833,7 @@ class DBImpl : public DB { ErrorHandler error_handler_; std::unordered_map version_edits_; + std::list::iterator pending_output_elem_; // Conditional variable to coordinate installation of atomic flush results. // With atomic flush, each bg thread installs the result of flushing multiple diff --git a/utilities/checkpoint/checkpoint_impl.cc b/utilities/checkpoint/checkpoint_impl.cc index bf65668eb6..12f5880991 100644 --- a/utilities/checkpoint/checkpoint_impl.cc +++ b/utilities/checkpoint/checkpoint_impl.cc @@ -203,7 +203,6 @@ Status CheckpointImpl::CreateCustomCheckpoint( live_wal_files.clear(); } } - // this will return live_files prefixed with "/" if (db_options.check_point_fake_flush) { s = db_->FakeFlush(fake_flush_files); From 535604c55f195f7a4df7ea59d2becaa827196c9d Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 1 Jul 2022 18:18:33 +0800 Subject: [PATCH 12/26] WIP --- db/db_filesnapshot.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 90be4fb545..4615d21d31 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -82,7 +82,6 @@ int DBImpl::IsFileDeletionsEnabled() const { } Status DBImpl::UndoFakeFlush() { - ReleaseFileNumberFromPendingOutputs(pending_output_elem_); mutex_.Lock(); autovector cfds; for (auto cfd : *versions_->GetColumnFamilySet()) { @@ -105,7 +104,7 @@ Status DBImpl::UndoFakeFlush() { edit_del.set_check_point(true); mutex_.Lock(); status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), - &edit_del, &mutex_); + &edit_del, &mutex_, nullptr, true); mutex_.Unlock(); if (!status.ok()) { break; @@ -117,7 +116,7 @@ Status DBImpl::UndoFakeFlush() { cfd->Unref(); } mutex_.Unlock(); - + ReleaseFileNumberFromPendingOutputs(pending_output_elem_); return status; } From 591fedf9df6fe30c8d9364d7686bda1f2a2f795a Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 1 Jul 2022 18:27:46 +0800 Subject: [PATCH 13/26] WIP --- db/db_filesnapshot.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 4615d21d31..1eaa3c951d 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -98,10 +98,10 @@ Status DBImpl::UndoFakeFlush() { if (iter == version_edits_.end()) continue; VersionEdit* edit = &iter->second; VersionEdit edit_del; - for (auto f : edit->GetNewFiles()) { - edit_del.DeleteFile(0, f.second.fd.GetNumber()); - } - edit_del.set_check_point(true); +// for (auto f : edit->GetNewFiles()) { +// edit_del.DeleteFile(0, f.second.fd.GetNumber()); +// } +// edit_del.set_check_point(true); mutex_.Lock(); status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), &edit_del, &mutex_, nullptr, true); From 19ad1b832b5c0027684de28a8fb3c8131133a089 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Tue, 5 Jul 2022 13:39:55 +0800 Subject: [PATCH 14/26] WIP --- Makefile | 3 +- db/db_filesnapshot.cc | 11 +++-- utilities/checkpoint/checkpoint_test.cc | 57 +++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1cb34e8fc8..1a62eb44fe 100644 --- a/Makefile +++ b/Makefile @@ -1883,7 +1883,8 @@ rocksdbjavastaticreleasedocker: rocksdbjavastatic rocksdbjavastaticdockerx86_64 fterark:rocksdbjavastatic cd java;jar -cf target/$(ROCKSDB_JAR_ALL) HISTORY*.md - cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-*.so libterarkdbjni-* + cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-* + #cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-*.so libterarkdbjni-* cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/rocksdb/*.class org/rocksdb/util/*.class # update apache license diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 1eaa3c951d..48bb82c8ce 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -145,9 +145,14 @@ Status DBImpl::FakeFlush(std::vector& ret) { VersionEdit* edit = &iter->second; autovector mems; cfd->imm()->PickMemtablesToFlush(nullptr,&mems); - for(auto& m: mems){ - status = WriteLevel0TableForRecovery(job_id, cfd, m , edit); - if(!status.ok()) break; + if (!mems.empty()) { + cfd->imm()->RollbackMemtableFlush(mems, 0, status); + } + if (status.ok()) { + for (auto& m : mems) { + status = WriteLevel0TableForRecovery(job_id, cfd, m, edit); + if (!status.ok()) break; + } } if(status.ok()){ status = WriteLevel0TableForRecovery(job_id, cfd, cfd->mem(), edit); diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index b9441f454b..06d3796889 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -232,6 +232,63 @@ class CheckpointTest : public testing::Test { } }; +TEST_F(CheckpointTest, RepeatGetSnapshotLink) { + for (uint64_t log_size_for_flush : {0, 1000000}) { + Options options; + DB* snapshotDB; + ReadOptions roptions; + std::string result; + Checkpoint* checkpoint; + + options = CurrentOptions(); + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + + // Create a database + Status s; + options.create_if_missing = true; + ASSERT_OK(DB::Open(options, dbname_, &db_)); + std::string key = std::string("foo"); + ASSERT_OK(Put(key, "v1")); + // Take a snapshot + for (int i = 0; i < 10; i++) { + ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); + std::string snap_shot = snapshot_name_; + snap_shot.push_back(('a' + i)); + ASSERT_OK(checkpoint->CreateCheckpoint(snap_shot, log_size_for_flush)); + ASSERT_OK(Put(key, "v1")); + ASSERT_EQ("v1", Get(key)); + ASSERT_OK(Flush()); + ASSERT_EQ("v1", Get(key)); + // Open snapshot and verify contents while DB is running + options.create_if_missing = false; + ASSERT_OK(DB::Open(options, snap_shot, &snapshotDB)); + ASSERT_OK(snapshotDB->Get(roptions, key, &result)); + ASSERT_EQ("v1", result); + delete snapshotDB; + snapshotDB = nullptr; + } + delete db_; + db_ = nullptr; + + // Destroy original DB + ASSERT_OK(DestroyDB(dbname_, options)); + + // Open snapshot and verify contents + options.create_if_missing = false; + dbname_ = snapshot_name_; + ASSERT_OK(DB::Open(options, dbname_, &db_)); + ASSERT_EQ("v1", Get(key)); + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + delete checkpoint; + + // Restore DB name + dbname_ = test::PerThreadDBPath(env_, "db_test"); + } +} TEST_F(CheckpointTest, GetSnapshotLink) { for (uint64_t log_size_for_flush : {0, 1000000}) { Options options; From cedaffc0d6532fb5d590849a0d763c88a528e782 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Tue, 5 Jul 2022 18:40:54 +0800 Subject: [PATCH 15/26] fix flush stall --- db/db_filesnapshot.cc | 29 +++------ db/db_impl.h | 3 - utilities/checkpoint/checkpoint_impl.cc | 9 ++- utilities/checkpoint/checkpoint_test.cc | 79 +++++++++++++++++++++---- 4 files changed, 81 insertions(+), 39 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 48bb82c8ce..9b28f6e0ca 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -91,37 +91,22 @@ Status DBImpl::UndoFakeFlush() { cfd->Ref(); cfds.push_back(cfd); } - mutex_.Unlock(); Status status; - for (auto cfd : cfds) { - auto iter = version_edits_.find(cfd->GetID()); - if (iter == version_edits_.end()) continue; - VersionEdit* edit = &iter->second; + if (cfds.size() > 0) { + auto& cfd = cfds[0]; VersionEdit edit_del; -// for (auto f : edit->GetNewFiles()) { -// edit_del.DeleteFile(0, f.second.fd.GetNumber()); -// } -// edit_del.set_check_point(true); - mutex_.Lock(); status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), &edit_del, &mutex_, nullptr, true); - mutex_.Unlock(); - if (!status.ok()) { - break; - } } - - mutex_.Lock(); for (auto cfd : cfds) { cfd->Unref(); } mutex_.Unlock(); - ReleaseFileNumberFromPendingOutputs(pending_output_elem_); return status; } Status DBImpl::FakeFlush(std::vector& ret) { - pending_output_elem_ = CaptureCurrentFileNumberInPendingOutputs(); + std::unordered_map version_edits; Status status; mutex_.Lock(); autovector cfds; @@ -132,15 +117,15 @@ Status DBImpl::FakeFlush(std::vector& ret) { cfd->Ref(); cfds.push_back(cfd); } - version_edits_.clear(); + version_edits.clear(); for (auto cfd : cfds) { VersionEdit edit; edit.SetColumnFamily(cfd->GetID()); - version_edits_.insert({cfd->GetID(), edit}); + version_edits.insert({cfd->GetID(), edit}); } for (auto cfd : cfds) { - auto iter = version_edits_.find(cfd->GetID()); + auto iter = version_edits.find(cfd->GetID()); int job_id = next_job_id_.fetch_add(1); VersionEdit* edit = &iter->second; autovector mems; @@ -175,7 +160,7 @@ Status DBImpl::FakeFlush(std::vector& ret) { TEST_SYNC_POINT("DBImpl::GetLiveFiles:2"); if (status.ok()) { - for (auto iter : version_edits_) { + for (auto iter : version_edits) { VersionEdit* edit = &iter.second; int cf_id = iter.first; for (auto f : edit->GetNewFiles()) { diff --git a/db/db_impl.h b/db/db_impl.h index a7a3bee7e0..0aef5db3e2 100644 --- a/db/db_impl.h +++ b/db/db_impl.h @@ -1832,9 +1832,6 @@ class DBImpl : public DB { ErrorHandler error_handler_; - std::unordered_map version_edits_; - std::list::iterator pending_output_elem_; - // Conditional variable to coordinate installation of atomic flush results. // With atomic flush, each bg thread installs the result of flushing multiple // column families, and different threads can flush different column diff --git a/utilities/checkpoint/checkpoint_impl.cc b/utilities/checkpoint/checkpoint_impl.cc index 12f5880991..6f6bbccbe1 100644 --- a/utilities/checkpoint/checkpoint_impl.cc +++ b/utilities/checkpoint/checkpoint_impl.cc @@ -335,9 +335,14 @@ Status CheckpointImpl::CreateCustomCheckpoint( } } - if(db_options.check_point_fake_flush){ + if(s.ok() && db_options.check_point_fake_flush){ // Write Manifest - db_->UndoFakeFlush(); + s = db_->UndoFakeFlush(); + } + + if (!s.ok()) { + ROCKS_LOG_INFO(db_options.info_log, "CheckPoint Failed %", + s.ToString().c_str()); } return s; diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index 06d3796889..4e898ad5ae 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -231,9 +231,64 @@ class CheckpointTest : public testing::Test { return result; } }; +TEST_F(CheckpointTest, GetSnapshotLinkAndFlush) { + for (uint64_t log_size_for_flush : {1000000}) { + Options options; + DB* snapshotDB; + ReadOptions roptions; + std::string result; + Checkpoint* checkpoint; + + options = CurrentOptions(); + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + + // Create a database + Status s; + options.create_if_missing = true; + ASSERT_OK(DB::Open(options, dbname_, &db_)); + std::string key = std::string("foo"); + ASSERT_OK(Put(key, "v1")); + // Take a snapshot + ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); + for (int i = 0; i < 100; i++) { + std::string snap_shot = snapshot_name_; + for(int k = 0;kCreateCheckpoint(snap_shot)); + std::cout << "snapshot finished" << std::endl; + }); + for(int i = 0;i < 100;i++){ + ASSERT_OK(Put(key, "v1")); + ASSERT_OK(Flush()); + } + std::cout << "flush finished" << std::endl; + t.join(); + // Open snapshot and verify contents while DB is running + options.create_if_missing = false; + } + + delete db_; + db_ = nullptr; + // Open snapshot and verify contents + options.create_if_missing = false; + ASSERT_OK(DB::Open(options, dbname_, &db_)); + ASSERT_EQ("v1", Get(key)); + delete db_; + db_ = nullptr; +// ASSERT_OK(DestroyDB(dbname_, options)); + + delete checkpoint; + // Restore DB name + dbname_ = test::PerThreadDBPath(env_, "db_test"); + } +} TEST_F(CheckpointTest, RepeatGetSnapshotLink) { - for (uint64_t log_size_for_flush : {0, 1000000}) { + for (uint64_t log_size_for_flush : {1000000}) { Options options; DB* snapshotDB; ReadOptions roptions; @@ -252,15 +307,19 @@ TEST_F(CheckpointTest, RepeatGetSnapshotLink) { std::string key = std::string("foo"); ASSERT_OK(Put(key, "v1")); // Take a snapshot - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 100; i++) { ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); std::string snap_shot = snapshot_name_; - snap_shot.push_back(('a' + i)); + for(int k = 0;kCreateCheckpoint(snap_shot, log_size_for_flush)); - ASSERT_OK(Put(key, "v1")); - ASSERT_EQ("v1", Get(key)); + ASSERT_OK(Put(key, "v2")); + ASSERT_EQ("v2", Get(key)); ASSERT_OK(Flush()); - ASSERT_EQ("v1", Get(key)); + ASSERT_EQ("v2", Get(key)); + ASSERT_OK(Put(key, "v1")); // Open snapshot and verify contents while DB is running options.create_if_missing = false; ASSERT_OK(DB::Open(options, snap_shot, &snapshotDB)); @@ -268,23 +327,19 @@ TEST_F(CheckpointTest, RepeatGetSnapshotLink) { ASSERT_EQ("v1", result); delete snapshotDB; snapshotDB = nullptr; + ASSERT_OK(DestroyDB(snap_shot, options)); } + delete db_; db_ = nullptr; - - // Destroy original DB - ASSERT_OK(DestroyDB(dbname_, options)); - // Open snapshot and verify contents options.create_if_missing = false; - dbname_ = snapshot_name_; ASSERT_OK(DB::Open(options, dbname_, &db_)); ASSERT_EQ("v1", Get(key)); delete db_; db_ = nullptr; ASSERT_OK(DestroyDB(dbname_, options)); delete checkpoint; - // Restore DB name dbname_ = test::PerThreadDBPath(env_, "db_test"); } From 0a0708c80b847696b8563a9c20e859672905e48e Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Thu, 7 Jul 2022 23:37:56 +0800 Subject: [PATCH 16/26] add check point write test --- utilities/checkpoint/checkpoint_test.cc | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index 4e898ad5ae..5018de2023 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -286,7 +286,48 @@ TEST_F(CheckpointTest, GetSnapshotLinkAndFlush) { dbname_ = test::PerThreadDBPath(env_, "db_test"); } } +TEST_F(CheckpointTest, RepeatWriteSnapShot){ + Options options; + DB* snapshotDB; + ReadOptions roptions; + std::string result; + Checkpoint* checkpoint; + + options = CurrentOptions(); + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + + // Create a database + Status s; + options.create_if_missing = true; + options.compression = CompressionType::kNoCompression; + options.write_buffer_size = 64 * 1024* 1024; + ASSERT_OK(DB::Open(options, dbname_, &db_)); + ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); + std::string key = std::string("foo"); + std::string value(1024,'a'); + + WriteOptions wo; + wo.disableWAL = true; + + for(int i = 0;;i++){ + std::string tmp = key; + tmp.insert(tmp.begin(),'a'+( i % 26)); + for(int j = 0;j < 32*1024;j++){ + std::string k = tmp; + k.append(std::string(j / 26,j%26)); + db_->Put(wo,k,value); + } + ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name_)); + options.create_if_missing = false; + ASSERT_OK(DB::Open(options, snapshot_name_, &snapshotDB)); + delete snapshotDB; + snapshotDB = nullptr; + ASSERT_OK(DestroyDB(snapshot_name_, options)); + } +} TEST_F(CheckpointTest, RepeatGetSnapshotLink) { for (uint64_t log_size_for_flush : {1000000}) { Options options; From 1e5a2e318b3e4ce566ac88a2e6a2d29d1901690f Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Tue, 12 Jul 2022 00:18:55 +0800 Subject: [PATCH 17/26] 1. catch the WriteLevel0TableForRecovery 2. Ref the MemTable 3. WaitUnitFlushWouldNotStallWrites 4. Wait FlushPending finished --- db/builder.cc | 5 +++ db/db_filesnapshot.cc | 58 +++++++++++++++++++++---- utilities/checkpoint/checkpoint_test.cc | 58 +++++++++++++++++++++++-- 3 files changed, 109 insertions(+), 12 deletions(-) diff --git a/db/builder.cc b/db/builder.cc index 1a85576c72..035034be0c 100644 --- a/db/builder.cc +++ b/db/builder.cc @@ -90,6 +90,11 @@ Status BuildTable( std::vector* table_properties_vec, int level, double compaction_load, const uint64_t creation_time, const uint64_t oldest_key_time, Env::WriteLifeTimeHint write_hint) { + + if(reason == TableFileCreationReason::kRecovery){ + TEST_SYNC_POINT("DBImpl::FakeFlush:2"); + } + assert((column_family_id == TablePropertiesCollectorFactory::Context::kUnknownColumnFamily) == column_family_name.empty()); diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 9b28f6e0ca..114f9d36c6 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -117,31 +117,64 @@ Status DBImpl::FakeFlush(std::vector& ret) { cfd->Ref(); cfds.push_back(cfd); } + mutex_.Unlock(); version_edits.clear(); - + auto need_force_flush = [](ColumnFamilyData* cfd) { + return cfd->ioptions()->atomic_flush_group == nullptr && + cfd->imm()->HasFlushRequested(); + }; for (auto cfd : cfds) { VersionEdit edit; edit.SetColumnFamily(cfd->GetID()); version_edits.insert({cfd->GetID(), edit}); + bool flush_needed = true; + status = WaitUntilFlushWouldNotStallWrites(cfd, &flush_needed); + if(!status.ok()){ + break; + } + while(cfd->imm()->IsFlushPending() || need_force_flush(cfd)){ + bg_cv_.TimedWait(1000); + } } + mutex_.Lock(); for (auto cfd : cfds) { auto iter = version_edits.find(cfd->GetID()); int job_id = next_job_id_.fetch_add(1); VersionEdit* edit = &iter->second; autovector mems; cfd->imm()->PickMemtablesToFlush(nullptr,&mems); - if (!mems.empty()) { - cfd->imm()->RollbackMemtableFlush(mems, 0, status); + for (int i = 0; status.ok() && i < mems.size(); i++) { + auto& m = mems[i]; + m->Ref(); + try { + status = WriteLevel0TableForRecovery(job_id, cfd, m, edit); + } catch (std::exception e) { + ROCKS_LOG_DEBUG(immutable_db_options_.info_log, + "[%s] [WriteLevel0TableForRecovery]" + " memory usage:%" PRIu64 "", + cfd->GetName().c_str(), m->ApproximateMemoryUsage()); + status = Status::Corruption( + "WriteLevel0TableForRecovery immutmemtable Corruption"); + } + m->Unref(); } if (status.ok()) { - for (auto& m : mems) { + auto m = cfd->mem(); + m->Ref(); + try { + TEST_SYNC_POINT("DBImpl::FakeFlush:1"); status = WriteLevel0TableForRecovery(job_id, cfd, m, edit); - if (!status.ok()) break; + } catch (std::exception e) { + ROCKS_LOG_DEBUG(immutable_db_options_.info_log, + "[%s] [WriteLevel0TableForRecovery]" + " memory usage:%" PRIu64 "", + cfd->GetName().c_str(), m->ApproximateMemoryUsage()); + status = Status::Corruption( + "WriteLevel0TableForRecovery memtable Corruption"); } + m->Unref(); } - if(status.ok()){ - status = WriteLevel0TableForRecovery(job_id, cfd, cfd->mem(), edit); - } + // TODO wangyi edit->set_check_point(true); if (status.ok()) { @@ -151,6 +184,15 @@ Status DBImpl::FakeFlush(std::vector& ret) { break; } } + + if (!mems.empty()) { + cfd->imm()->RollbackMemtableFlush(mems, 0, status); + ROCKS_LOG_DEBUG(immutable_db_options_.info_log, + "[%s] [WriteLevel0TableForRecovery] immut table size:%d", + cfd->GetName().c_str(), mems.size()); + // we should apply the immut table to Manifest + } + } for (auto cfd : cfds) { cfd->Unref(); diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index 5018de2023..7cdccd9c7f 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -231,6 +231,53 @@ class CheckpointTest : public testing::Test { return result; } }; +TEST_F(CheckpointTest, FakeFlush) { + TERARKDB_NAMESPACE::SyncPoint::GetInstance()->LoadDependency( + {{"DBImpl::FakeFlush:1", "CheckpointTest::Flush1"}, + {"CheckpointTest::Flush2","DBImpl::FakeFlush:2" }}); + TERARKDB_NAMESPACE::SyncPoint::GetInstance()->EnableProcessing(); + Options options; + DB* snapshotDB; + ReadOptions roptions; + std::string result; + Checkpoint* checkpoint; + + options = CurrentOptions(); + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + // Create a database + Status s; + options.create_if_missing = true; + options.write_buffer_size = 256 << 20; + ASSERT_OK(DB::Open(options, dbname_, &db_)); + std::string key = std::string("foo"); + + for(int i = 0;i < 256;i++){ + std::string k = key; + k.push_back('a' + i); + ASSERT_OK(Put(key, "v1")); + } + ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); + TERARKDB_NAMESPACE::port::Thread t1([&]() { + ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name_)); + std::cout << "snapshot finished" << std::endl; + }); + TERARKDB_NAMESPACE::port::Thread t2([&]() { + TEST_SYNC_POINT("CheckpointTest::Flush1"); + std::cout << "flush started" << std::endl; + ASSERT_OK(Flush()); + std::cout << "flush finished" << std::endl; + TEST_SYNC_POINT("CheckpointTest::Flush2"); + }); + t1.join(); + t2.join(); + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + delete checkpoint; +} + TEST_F(CheckpointTest, GetSnapshotLinkAndFlush) { for (uint64_t log_size_for_flush : {1000000}) { Options options; @@ -269,6 +316,9 @@ TEST_F(CheckpointTest, GetSnapshotLinkAndFlush) { t.join(); // Open snapshot and verify contents while DB is running options.create_if_missing = false; + ASSERT_OK(DB::Open(options, snap_shot, &snapshotDB)); + delete snapshotDB; + snapshotDB = nullptr; } delete db_; @@ -320,10 +370,10 @@ TEST_F(CheckpointTest, RepeatWriteSnapShot){ db_->Put(wo,k,value); } ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name_)); - options.create_if_missing = false; - ASSERT_OK(DB::Open(options, snapshot_name_, &snapshotDB)); - delete snapshotDB; - snapshotDB = nullptr; +// options.create_if_missing = false; +// ASSERT_OK(DB::Open(options, snapshot_name_, &snapshotDB)); +// delete snapshotDB; +// snapshotDB = nullptr; ASSERT_OK(DestroyDB(snapshot_name_, options)); } From 31043a67bc84f1f412cce85d81141299455ad08b Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Sun, 17 Jul 2022 20:53:17 +0800 Subject: [PATCH 18/26] LOG the status of fakeflush and schedule the flush --- db/db_filesnapshot.cc | 65 ++++++++++------- db/db_impl_write.cc | 1 + utilities/checkpoint/checkpoint_test.cc | 93 ++++++++++++++++++++----- 3 files changed, 113 insertions(+), 46 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 114f9d36c6..9b1c4e42fa 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -119,21 +119,35 @@ Status DBImpl::FakeFlush(std::vector& ret) { } mutex_.Unlock(); version_edits.clear(); - auto need_force_flush = [](ColumnFamilyData* cfd) { - return cfd->ioptions()->atomic_flush_group == nullptr && - cfd->imm()->HasFlushRequested(); - }; for (auto cfd : cfds) { VersionEdit edit; edit.SetColumnFamily(cfd->GetID()); version_edits.insert({cfd->GetID(), edit}); - bool flush_needed = true; - status = WaitUntilFlushWouldNotStallWrites(cfd, &flush_needed); - if(!status.ok()){ - break; - } - while(cfd->imm()->IsFlushPending() || need_force_flush(cfd)){ - bg_cv_.TimedWait(1000); + // bool flush_needed = true; + // we don't need to waitFlush because we don't really do flush + // status = WaitUntilFlushWouldNotStallWrites(cfd, &flush_needed); + int cnt = 0; + while (cfd->imm()->IsFlushPending()) { + ROCKS_LOG_INFO( + immutable_db_options_.info_log, + "[%s] isFlushPending, NumNotFlushed: %d, HasFlushRequested: %d", + cfd->GetName().c_str(), cfd->imm()->NumNotFlushed(), + cfd->imm()->HasFlushRequested()); + bg_cv_.TimedWait(1000000); + cnt++; + ROCKS_LOG_INFO(immutable_db_options_.info_log, + "[%s] CheckPoint MaybeScheduleFlushOrCompaction cnt: %d", + cfd->GetName().c_str(), cnt); + mutex_.Lock(); + // the flush will not schedule when the threadpool is busy + MaybeScheduleFlushOrCompaction(); + mutex_.Unlock(); + if (cnt > 10) { + ROCKS_LOG_WARN(immutable_db_options_.info_log, + "[%s] CheckPoint break MaybeScheduleFlushOrCompaction", + cfd->GetName().c_str()); + break; + } } } mutex_.Lock(); @@ -142,17 +156,17 @@ Status DBImpl::FakeFlush(std::vector& ret) { int job_id = next_job_id_.fetch_add(1); VersionEdit* edit = &iter->second; autovector mems; - cfd->imm()->PickMemtablesToFlush(nullptr,&mems); + cfd->imm()->PickMemtablesToFlush(nullptr, &mems); for (int i = 0; status.ok() && i < mems.size(); i++) { auto& m = mems[i]; m->Ref(); try { status = WriteLevel0TableForRecovery(job_id, cfd, m, edit); } catch (std::exception e) { - ROCKS_LOG_DEBUG(immutable_db_options_.info_log, - "[%s] [WriteLevel0TableForRecovery]" - " memory usage:%" PRIu64 "", - cfd->GetName().c_str(), m->ApproximateMemoryUsage()); + ROCKS_LOG_WARN(immutable_db_options_.info_log, + "[%s] [WriteLevel0TableForRecovery]" + " memory usage:%" PRIu64 "", + cfd->GetName().c_str(), m->ApproximateMemoryUsage()); status = Status::Corruption( "WriteLevel0TableForRecovery immutmemtable Corruption"); } @@ -165,10 +179,10 @@ Status DBImpl::FakeFlush(std::vector& ret) { TEST_SYNC_POINT("DBImpl::FakeFlush:1"); status = WriteLevel0TableForRecovery(job_id, cfd, m, edit); } catch (std::exception e) { - ROCKS_LOG_DEBUG(immutable_db_options_.info_log, - "[%s] [WriteLevel0TableForRecovery]" - " memory usage:%" PRIu64 "", - cfd->GetName().c_str(), m->ApproximateMemoryUsage()); + ROCKS_LOG_WARN(immutable_db_options_.info_log, + "[%s] [WriteLevel0TableForRecovery]" + " memory usage:%" PRIu64 "", + cfd->GetName().c_str(), m->ApproximateMemoryUsage()); status = Status::Corruption( "WriteLevel0TableForRecovery memtable Corruption"); } @@ -177,7 +191,6 @@ Status DBImpl::FakeFlush(std::vector& ret) { // TODO wangyi edit->set_check_point(true); if (status.ok()) { - status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), edit, &mutex_); if (!status.ok()) { @@ -187,12 +200,11 @@ Status DBImpl::FakeFlush(std::vector& ret) { if (!mems.empty()) { cfd->imm()->RollbackMemtableFlush(mems, 0, status); - ROCKS_LOG_DEBUG(immutable_db_options_.info_log, - "[%s] [WriteLevel0TableForRecovery] immut table size:%d", - cfd->GetName().c_str(), mems.size()); + ROCKS_LOG_INFO(immutable_db_options_.info_log, + "[%s] [WriteLevel0TableForRecovery] immut table size:%d", + cfd->GetName().c_str(), mems.size()); // we should apply the immut table to Manifest } - } for (auto cfd : cfds) { cfd->Unref(); @@ -206,8 +218,7 @@ Status DBImpl::FakeFlush(std::vector& ret) { VersionEdit* edit = &iter.second; int cf_id = iter.first; for (auto f : edit->GetNewFiles()) { - ret.push_back(MakeTableFileName("", - f.second.fd.GetNumber())); + ret.push_back(MakeTableFileName("", f.second.fd.GetNumber())); } } } diff --git a/db/db_impl_write.cc b/db/db_impl_write.cc index 936678d2a5..2b5e19eac8 100644 --- a/db/db_impl_write.cc +++ b/db/db_impl_write.cc @@ -1407,6 +1407,7 @@ Status DBImpl::ScheduleFlushes(WriteContext* context) { SchedulePendingFlush(flush_req_vec, FlushReason::kWriteBufferFull); MaybeScheduleFlushOrCompaction(); } + TEST_SYNC_POINT("DBImpl::BufferFull"); return status; } diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index 7cdccd9c7f..aa7bb43a18 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -231,10 +231,66 @@ class CheckpointTest : public testing::Test { return result; } }; +TEST_F(CheckpointTest, FakeFlushAfterBufferFull) { + std::atomic buffer_full(0); + std::atomic snapshot_flag(false); + Checkpoint* checkpoint; + TERARKDB_NAMESPACE::port::Thread t1; + Options options; + SyncPoint::GetInstance()->SetCallBack("DBImpl::BufferFull", [&](void* arg) { + buffer_full.fetch_add(1); + std::cout << "buffer_full : " << buffer_full.load() << std::endl; + snapshot_flag.store(true); + t1 = TERARKDB_NAMESPACE::port::Thread([&]() { + std::cout << "snapshot start" << std::endl; + ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name_)); + ASSERT_OK(DestroyDB(snapshot_name_, options)); + std::cout << "snapshot finished" << std::endl; + snapshot_flag.store(false); + TEST_SYNC_POINT("CheckpointTest::finishCheckPoint"); + }); + }); + TERARKDB_NAMESPACE::SyncPoint::GetInstance()->EnableProcessing(); + + DB* snapshotDB; + ReadOptions roptions; + std::string result; + + options = CurrentOptions(); + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + // Create a database + Status s; + options.create_if_missing = true; + options.write_buffer_size = 256 << 10; + ASSERT_OK(DB::Open(options, dbname_, &db_)); + ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); + std::string key = std::string("foo"); + WriteOptions wo = WriteOptions(); + wo.disableWAL = true; + for (int i = 0;; i++) { + while (snapshot_flag.load()) { + t1.join(); + } + if (buffer_full.load() == 10) break; + std::string k = key; + k.push_back('a' + i); + ASSERT_OK(db_->Put(wo, key, "v1")); + } + + reinterpret_cast(db_)->TEST_WaitForFlushMemTable(); + + delete db_; + db_ = nullptr; + ASSERT_OK(DestroyDB(dbname_, options)); + delete checkpoint; +} + TEST_F(CheckpointTest, FakeFlush) { TERARKDB_NAMESPACE::SyncPoint::GetInstance()->LoadDependency( {{"DBImpl::FakeFlush:1", "CheckpointTest::Flush1"}, - {"CheckpointTest::Flush2","DBImpl::FakeFlush:2" }}); + {"CheckpointTest::Flush2", "DBImpl::FakeFlush:2"}}); TERARKDB_NAMESPACE::SyncPoint::GetInstance()->EnableProcessing(); Options options; DB* snapshotDB; @@ -253,7 +309,7 @@ TEST_F(CheckpointTest, FakeFlush) { ASSERT_OK(DB::Open(options, dbname_, &db_)); std::string key = std::string("foo"); - for(int i = 0;i < 256;i++){ + for (int i = 0; i < 256; i++) { std::string k = key; k.push_back('a' + i); ASSERT_OK(Put(key, "v1")); @@ -301,14 +357,14 @@ TEST_F(CheckpointTest, GetSnapshotLinkAndFlush) { ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); for (int i = 0; i < 100; i++) { std::string snap_shot = snapshot_name_; - for(int k = 0;kCreateCheckpoint(snap_shot)); std::cout << "snapshot finished" << std::endl; }); - for(int i = 0;i < 100;i++){ + for (int i = 0; i < 100; i++) { ASSERT_OK(Put(key, "v1")); ASSERT_OK(Flush()); } @@ -329,14 +385,14 @@ TEST_F(CheckpointTest, GetSnapshotLinkAndFlush) { ASSERT_EQ("v1", Get(key)); delete db_; db_ = nullptr; -// ASSERT_OK(DestroyDB(dbname_, options)); + // ASSERT_OK(DestroyDB(dbname_, options)); delete checkpoint; // Restore DB name dbname_ = test::PerThreadDBPath(env_, "db_test"); } } -TEST_F(CheckpointTest, RepeatWriteSnapShot){ +TEST_F(CheckpointTest, RepeatWriteSnapShot) { Options options; DB* snapshotDB; ReadOptions roptions; @@ -352,31 +408,30 @@ TEST_F(CheckpointTest, RepeatWriteSnapShot){ Status s; options.create_if_missing = true; options.compression = CompressionType::kNoCompression; - options.write_buffer_size = 64 * 1024* 1024; + options.write_buffer_size = 64 * 1024 * 1024; ASSERT_OK(DB::Open(options, dbname_, &db_)); ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); std::string key = std::string("foo"); - std::string value(1024,'a'); + std::string value(1024, 'a'); WriteOptions wo; wo.disableWAL = true; - for(int i = 0;;i++){ + for (int i = 0;; i++) { std::string tmp = key; - tmp.insert(tmp.begin(),'a'+( i % 26)); - for(int j = 0;j < 32*1024;j++){ + tmp.insert(tmp.begin(), 'a' + (i % 26)); + for (int j = 0; j < 32 * 1024; j++) { std::string k = tmp; - k.append(std::string(j / 26,j%26)); - db_->Put(wo,k,value); + k.append(std::string(j / 26, j % 26)); + db_->Put(wo, k, value); } ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name_)); -// options.create_if_missing = false; -// ASSERT_OK(DB::Open(options, snapshot_name_, &snapshotDB)); -// delete snapshotDB; -// snapshotDB = nullptr; + // options.create_if_missing = false; + // ASSERT_OK(DB::Open(options, snapshot_name_, &snapshotDB)); + // delete snapshotDB; + // snapshotDB = nullptr; ASSERT_OK(DestroyDB(snapshot_name_, options)); } - } TEST_F(CheckpointTest, RepeatGetSnapshotLink) { for (uint64_t log_size_for_flush : {1000000}) { @@ -401,7 +456,7 @@ TEST_F(CheckpointTest, RepeatGetSnapshotLink) { for (int i = 0; i < 100; i++) { ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); std::string snap_shot = snapshot_name_; - for(int k = 0;k Date: Tue, 26 Jul 2022 17:30:34 +0800 Subject: [PATCH 19/26] fix misuse bg_cv wait --- db/db_filesnapshot.cc | 8 +++---- utilities/checkpoint/checkpoint_test.cc | 32 +++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 9b1c4e42fa..69fbef90ee 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -133,7 +133,7 @@ Status DBImpl::FakeFlush(std::vector& ret) { "[%s] isFlushPending, NumNotFlushed: %d, HasFlushRequested: %d", cfd->GetName().c_str(), cfd->imm()->NumNotFlushed(), cfd->imm()->HasFlushRequested()); - bg_cv_.TimedWait(1000000); + env_->SleepForMicroseconds(1000000); cnt++; ROCKS_LOG_INFO(immutable_db_options_.info_log, "[%s] CheckPoint MaybeScheduleFlushOrCompaction cnt: %d", @@ -193,9 +193,6 @@ Status DBImpl::FakeFlush(std::vector& ret) { if (status.ok()) { status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), edit, &mutex_); - if (!status.ok()) { - break; - } } if (!mems.empty()) { @@ -205,6 +202,9 @@ Status DBImpl::FakeFlush(std::vector& ret) { cfd->GetName().c_str(), mems.size()); // we should apply the immut table to Manifest } + if (!status.ok()) { + break; + } } for (auto cfd : cfds) { cfd->Unref(); diff --git a/utilities/checkpoint/checkpoint_test.cc b/utilities/checkpoint/checkpoint_test.cc index aa7bb43a18..d2828d0bda 100644 --- a/utilities/checkpoint/checkpoint_test.cc +++ b/utilities/checkpoint/checkpoint_test.cc @@ -543,6 +543,38 @@ TEST_F(CheckpointTest, GetSnapshotLink) { dbname_ = test::PerThreadDBPath(env_, "db_test"); } } +TEST_F(CheckpointTest, CheckpointCFFakeFlush) { + Options options = CurrentOptions(); + options.max_background_flushes = 1; + int cf_nums = 10; + CreateAndReopenWithCF({"one", "two", "three", "four", "five", "six", "seven", + "eight", "nine", "ten"}, + options); + std::string key = std::string("foo"); + std::string value(1024, 'a'); + WriteOptions wo; + wo.disableWAL = true; + Checkpoint* checkpoint; + ASSERT_OK(Checkpoint::Create(db_, &checkpoint)); + for (int i = 0;; i++) { + std::string tmp = key; + tmp.insert(tmp.begin(), 'a' + (i % 26)); + for (int j = 0; j < 32 * 1024; j++) { + std::string k = tmp; + k.append(std::string(j / 26, j % 26)); + for (int l = 0; l < cf_nums; l++) { + db_->Put(wo, handles_[l], k, value); + } + } + ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name_)); + // options.create_if_missing = false; + // ASSERT_OK(DB::Open(options, snapshot_name_, &snapshotDB)); + // delete snapshotDB; + // snapshotDB = nullptr; + ASSERT_OK(DestroyDB(snapshot_name_, options)); + std::cout << i << std::endl; + } +} TEST_F(CheckpointTest, CheckpointCF) { Options options = CurrentOptions(); From 59ecc3c4071dc61f1fa3e099f8b1494e0930641d Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Thu, 4 Aug 2022 18:14:13 +0800 Subject: [PATCH 20/26] disable autocompaction while fake flush --- db/column_family.h | 8 ++++++++ db/db_filesnapshot.cc | 2 ++ 2 files changed, 10 insertions(+) diff --git a/db/column_family.h b/db/column_family.h index 5330f578f1..cc88443e27 100644 --- a/db/column_family.h +++ b/db/column_family.h @@ -419,6 +419,14 @@ class ColumnFamilyData { Directory* GetDataDir(size_t path_id) const; + void disableAutoCompaction() { + mutable_cf_options_.disable_auto_compactions = true; + } + + void enableAutoCompaction() { + mutable_cf_options_.disable_auto_compactions = false; + } + private: friend class ColumnFamilySet; ColumnFamilyData(uint32_t id, const std::string& name, diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 69fbef90ee..251cc6b636 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -115,6 +115,7 @@ Status DBImpl::FakeFlush(std::vector& ret) { continue; } cfd->Ref(); + cfd->disableAutoCompaction(); cfds.push_back(cfd); } mutex_.Unlock(); @@ -207,6 +208,7 @@ Status DBImpl::FakeFlush(std::vector& ret) { } } for (auto cfd : cfds) { + cfd->enableAutoCompaction(); cfd->Unref(); } mutex_.Unlock(); From f0fb9b784aac694d42799d37c97d76f7fc9e5b97 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 5 Aug 2022 10:55:16 +0800 Subject: [PATCH 21/26] add queue info log; pre flush --- db/db_filesnapshot.cc | 22 ++++++++++++++++------ db/flush_job.cc | 2 ++ include/rocksdb/listener.h | 1 + 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/db/db_filesnapshot.cc b/db/db_filesnapshot.cc index 251cc6b636..dbee427344 100644 --- a/db/db_filesnapshot.cc +++ b/db/db_filesnapshot.cc @@ -110,6 +110,10 @@ Status DBImpl::FakeFlush(std::vector& ret) { Status status; mutex_.Lock(); autovector cfds; + ROCKS_LOG_INFO( + immutable_db_options_.info_log, + "[fake-flush] start compaction_queue size: %d garbage_queue size: %d", + compaction_queue_.size(), garbage_collection_queue_.size()); for (auto cfd : *versions_->GetColumnFamilySet()) { if (cfd->IsDropped()) { continue; @@ -137,18 +141,20 @@ Status DBImpl::FakeFlush(std::vector& ret) { env_->SleepForMicroseconds(1000000); cnt++; ROCKS_LOG_INFO(immutable_db_options_.info_log, - "[%s] CheckPoint MaybeScheduleFlushOrCompaction cnt: %d", + "[%s] CheckPoint Waitting flush pending cnt: %d", cfd->GetName().c_str(), cnt); - mutex_.Lock(); - // the flush will not schedule when the threadpool is busy - MaybeScheduleFlushOrCompaction(); - mutex_.Unlock(); if (cnt > 10) { ROCKS_LOG_WARN(immutable_db_options_.info_log, "[%s] CheckPoint break MaybeScheduleFlushOrCompaction", cfd->GetName().c_str()); break; } + } // while imm isFlushPending + + if (cfd->mem()->ApproximateMemoryUsage() > + cfd->GetLatestCFOptions().write_buffer_size * 0.2) { + Status status = + FlushMemTable({cfd}, FlushOptions(), FlushReason::kFakeFlush); } } mutex_.Lock(); @@ -173,7 +179,7 @@ Status DBImpl::FakeFlush(std::vector& ret) { } m->Unref(); } - if (status.ok()) { + if (status.ok() && cfd->mem()->num_entries() > 0) { auto m = cfd->mem(); m->Ref(); try { @@ -207,6 +213,10 @@ Status DBImpl::FakeFlush(std::vector& ret) { break; } } + ROCKS_LOG_INFO( + immutable_db_options_.info_log, + "[fake-flush] end compaction_queue size: %d garbage_queue size: %d", + compaction_queue_.size(), garbage_collection_queue_.size()); for (auto cfd : cfds) { cfd->enableAutoCompaction(); cfd->Unref(); diff --git a/db/flush_job.cc b/db/flush_job.cc index 1cdd640a03..5b36b7dbaf 100644 --- a/db/flush_job.cc +++ b/db/flush_job.cc @@ -85,6 +85,8 @@ const char* GetFlushReasonString(FlushReason flush_reason) { return "Error Recovery"; case FlushReason::kInstallTimeout: return "Install Timeout"; + case FlushReason::kFakeFlush: + return "Fake Flush"; default: return "Invalid"; } diff --git a/include/rocksdb/listener.h b/include/rocksdb/listener.h index 3ff0c0b241..0772db1003 100644 --- a/include/rocksdb/listener.h +++ b/include/rocksdb/listener.h @@ -159,6 +159,7 @@ enum class FlushReason : int { kManualFlush = 0x0a, kErrorRecovery = 0xb, kInstallTimeout = 0xc, + kFakeFlush = 0xd, }; enum class BackgroundErrorReason { From 987f9b11a8352887e7f025f8e182d90f3aa4d779 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Mon, 8 Aug 2022 17:03:31 +0800 Subject: [PATCH 22/26] support set blob_gc_ratio, checkpoint_fake_flush; and createCheckpoint can set log_size --- include/rocksdb/options.h | 2 +- java/rocksjni/checkpoint.cc | 20 +++++++ java/rocksjni/options.cc | 56 +++++++++++++++++++ .../src/main/java/org/rocksdb/Checkpoint.java | 7 +++ .../java/org/rocksdb/ColumnFamilyOptions.java | 12 ++++ java/src/main/java/org/rocksdb/DBOptions.java | 15 +++++ .../java/org/rocksdb/DBOptionsInterface.java | 5 ++ .../MutableColumnFamilyOptionsInterface.java | 4 ++ java/src/main/java/org/rocksdb/Options.java | 26 +++++++++ options/db_options.cc | 8 ++- options/db_options.h | 1 + options/options_helper.cc | 1 + 12 files changed, 154 insertions(+), 3 deletions(-) diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index 07ab6d0e74..0b48a058fe 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -993,7 +993,7 @@ struct DBOptions { // transaction is encountered in the WAL bool allow_2pc = false; - bool check_point_fake_flush = true; + bool check_point_fake_flush = false; // A global cache for table-level rows. // Default: nullptr (disabled) diff --git a/java/rocksjni/checkpoint.cc b/java/rocksjni/checkpoint.cc index 66e6134bb4..aa84ddb2c7 100644 --- a/java/rocksjni/checkpoint.cc +++ b/java/rocksjni/checkpoint.cc @@ -65,3 +65,23 @@ void Java_org_rocksdb_Checkpoint_createCheckpoint(JNIEnv* env, jobject /*jobj*/, TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew(env, s); } } + +void Java_org_rocksdb_Checkpoint_createCheckpoint0(JNIEnv* env, jobject /*jobj*/, + jlong jcheckpoint_handle, + jstring jcheckpoint_path, + jlong jcheckpoint_log_size) { + const char* checkpoint_path = env->GetStringUTFChars(jcheckpoint_path, 0); + if (checkpoint_path == nullptr) { + // exception thrown: OutOfMemoryError + return; + } + + auto* checkpoint = reinterpret_cast(jcheckpoint_handle); + TERARKDB_NAMESPACE::Status s = checkpoint->CreateCheckpoint(checkpoint_path,jcheckpoint_log_size); + + env->ReleaseStringUTFChars(jcheckpoint_path, checkpoint_path); + + if (!s.ok()) { + TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew(env, s); + } +} \ No newline at end of file diff --git a/java/rocksjni/options.cc b/java/rocksjni/options.cc index 0b25ddf22b..aa597a18b9 100644 --- a/java/rocksjni/options.cc +++ b/java/rocksjni/options.cc @@ -1807,6 +1807,20 @@ jboolean Java_org_rocksdb_Options_allow2pc(JNIEnv* /*env*/, jobject /*jobj*/, return static_cast(opt->allow_2pc); } +void Java_org_rocksdb_Options_setCheckPointFakeFlush( + JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, + jboolean jcheck_point_fake_flush) { + auto* opt = reinterpret_cast(jhandle); + opt->check_point_fake_flush = static_cast(jcheck_point_fake_flush); +} + +jboolean Java_org_rocksdb_Options_checkPointFakeFlush(JNIEnv* /*env*/, + jobject /*jobj*/, + jlong jhandle) { + auto* opt = reinterpret_cast(jhandle); + return static_cast(opt->check_point_fake_flush); +} + /* * Class: org_rocksdb_Options * Method: setRowCache @@ -2536,6 +2550,27 @@ jlong Java_org_rocksdb_Options_blobSize(JNIEnv* /*env*/, jobject /*jobj*/, ->blob_size; } +/* + * Class: org_rocksdb_Options + * Method: setBlobGcRatio + * Signature: (JJ)V + */ +void Java_org_rocksdb_Options_setBlobGcRatio(JNIEnv* env, jobject /*jobj*/, + jlong jhandle, + jdouble jblob_gc_ratio) { + reinterpret_cast(jhandle)->blob_gc_ratio = + static_cast(jblob_gc_ratio); +} + +/* + * Class: org_rocksdb_Options + * Method: blobGcRatio + * Signature: (J)J + */ +jdouble Java_org_rocksdb_Options_blobGcRatio(JNIEnv* /*env*/, jobject /*jobj*/, + jlong jhandle) { + return reinterpret_cast(jhandle)->blob_gc_ratio; +} /* * Class: org_rocksdb_Options @@ -3409,6 +3444,27 @@ void Java_org_rocksdb_ColumnFamilyOptions_setBlobSize(JNIEnv* env, jobject /*job } } +/* + * Class: org_rocksdb_ColumnFamilyOptions + * Method: blobGcRatio + * Signature: (J)J + */ +jdouble Java_org_rocksdb_ColumnFamilyOptions_blobGcRatio(JNIEnv* /*env*/, + jobject /*jobj*/, + jlong jhandle) { + return reinterpret_cast(jhandle) + ->blob_gc_ratio; +} +/* + * Class: org_rocksdb_ColumnFamilyOptions + * Method: setBlobGcRatio + * Signature: (JJ)V + */ +void Java_org_rocksdb_ColumnFamilyOptions_setBlobGcRatio( + JNIEnv* env, jobject /*jobj*/, jlong jhandle, jdouble jblob_gc_ratio) { + reinterpret_cast(jhandle) + ->blob_gc_ratio = static_cast(jblob_gc_ratio); +} /* * Class: org_rocksdb_ColumnFamilyOptions diff --git a/java/src/main/java/org/rocksdb/Checkpoint.java b/java/src/main/java/org/rocksdb/Checkpoint.java index 0009699325..aee2dea59d 100644 --- a/java/src/main/java/org/rocksdb/Checkpoint.java +++ b/java/src/main/java/org/rocksdb/Checkpoint.java @@ -51,6 +51,11 @@ public void createCheckpoint(final String checkpointPath) createCheckpoint(nativeHandle_, checkpointPath); } + public void createCheckpoint(final String checkpointPath, final long logSize) + throws RocksDBException { + createCheckpoint0(nativeHandle_, checkpointPath, logSize); + } + private Checkpoint(final RocksDB db) { super(newCheckpoint(db.nativeHandle_)); this.db_ = db; @@ -63,4 +68,6 @@ private Checkpoint(final RocksDB db) { private native void createCheckpoint(long handle, String checkpointPath) throws RocksDBException; + private native void createCheckpoint0(long handle, String checkpointPath, long logSize) + throws RocksDBException; } diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java b/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java index 8563c41368..9b3f98b083 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java +++ b/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java @@ -507,6 +507,16 @@ public long blobSize() { return blobSize(nativeHandle_); } + public ColumnFamilyOptions setBlobGcRatio( + final double blobGcRatio) { + setBlobGcRatio(nativeHandle_, blobGcRatio); + return this; + } + + public double blobGcRatio() { + return blobGcRatio(nativeHandle_); + } + @Override public ColumnFamilyOptions setCompactionStyle( final CompactionStyle compactionStyle) { @@ -908,6 +918,8 @@ private native void setDisableAutoCompactions( private native boolean disableAutoCompactions(long handle); private native void setBlobSize(long handle, long blobSize); private native long blobSize(long handle); + private native void setBlobGcRatio(long handle, double blobGcRatio); + private native double blobGcRatio(long handle); private native void setTargetBlobFileSize(long handle, long targetBlobFileSize); private native long targetBlobFileSize(long handle); private native void setCompactionStyle(long handle, byte compactionStyle); diff --git a/java/src/main/java/org/rocksdb/DBOptions.java b/java/src/main/java/org/rocksdb/DBOptions.java index f987381b5a..ea5c17d7e3 100644 --- a/java/src/main/java/org/rocksdb/DBOptions.java +++ b/java/src/main/java/org/rocksdb/DBOptions.java @@ -976,6 +976,17 @@ private DBOptions(final long nativeHandle) { super(nativeHandle); } + @Override + public DBOptions setCheckPointFakeFlush(final boolean checkPointFakeFlush) { + setCheckPointFakeFlush(nativeHandle_, checkPointFakeFlush); + return this; + } + + @Override + public boolean checkPointFakeFlush(){ + return checkPointFakeFlush(nativeHandle_); + } + private static native long getDBOptionsFromProps( String optString); @@ -1155,6 +1166,10 @@ private native void setAvoidFlushDuringShutdown(final long handle, final boolean avoidFlushDuringShutdown); private native boolean avoidFlushDuringShutdown(final long handle); + private native void setCheckPointFakeFlush(final long handle, + final boolean checkPointFakeFlush); + private native boolean checkPointFakeFlush(final long handle); + // instance variables // NOTE: If you add new member variables, please update the copy constructor above! private Env env_; diff --git a/java/src/main/java/org/rocksdb/DBOptionsInterface.java b/java/src/main/java/org/rocksdb/DBOptionsInterface.java index 55541316f8..2210aff56b 100644 --- a/java/src/main/java/org/rocksdb/DBOptionsInterface.java +++ b/java/src/main/java/org/rocksdb/DBOptionsInterface.java @@ -1597,4 +1597,9 @@ T setEnableWriteThreadAdaptiveYield( * @return true if we should avoid flush during shutdown */ boolean avoidFlushDuringShutdown(); + + T setCheckPointFakeFlush(boolean fakeFlush); + + boolean checkPointFakeFlush(); + } diff --git a/java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java b/java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java index 345d2c9fa2..5040e7186a 100644 --- a/java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java @@ -161,6 +161,10 @@ T setCompressionType( long blobSize(); +// T setBlobGcRatio(double blobGcRatio); +// +// double blobGcRatio(); + T setTargetBlobFileSize(long blobSize); long targetBlobFileSize(); diff --git a/java/src/main/java/org/rocksdb/Options.java b/java/src/main/java/org/rocksdb/Options.java index 5415cec84e..e2ea74d480 100644 --- a/java/src/main/java/org/rocksdb/Options.java +++ b/java/src/main/java/org/rocksdb/Options.java @@ -1337,6 +1337,15 @@ public long blobSize(){ return blobSize(nativeHandle_); } + public Options setBlobGcRatio(final double blobGcRatio){ + setBlobGcRatio(nativeHandle_, blobGcRatio); + return this; + } + + public double blobGcRatio(){ + return blobGcRatio(nativeHandle_); + } + @Override public Options setTargetBlobFileSize(final long targetBlobFileSize){ setTargetBlobFileSize(nativeHandle_,targetBlobFileSize); @@ -1598,6 +1607,17 @@ public boolean forceConsistencyChecks() { return forceConsistencyChecks(nativeHandle_); } + @Override + public Options setCheckPointFakeFlush(final boolean checkPointFakeFlush) { + setCheckPointFakeFlush(nativeHandle_, checkPointFakeFlush); + return this; + } + + @Override + public boolean checkPointFakeFlush(){ + return checkPointFakeFlush(nativeHandle_); + } + private native static long newOptions(); private native static long newOptions(long dbOptHandle, long cfOptHandle); @@ -1857,6 +1877,8 @@ private native void setDisableAutoCompactions( private native boolean disableAutoCompactions(long handle); private native void setBlobSize(long handle, long blobSize); private native long blobSize(long handle); + private native void setBlobGcRatio(long handle, double blobGcRatio); + private native double blobGcRatio(long handle); private native void setTargetBlobFileSize(long handle, long blobSize); private native long targetBlobFileSize(long handle); private native void setCompactionStyle(long handle, byte compactionStyle); @@ -1928,6 +1950,10 @@ private native void setCompactionOptionsFIFO(final long handle, private native void setForceConsistencyChecks(final long handle, final boolean forceConsistencyChecks); private native boolean forceConsistencyChecks(final long handle); + private native void setCheckPointFakeFlush(final long handle, + final boolean checkPointFakeFlush); + private native boolean checkPointFakeFlush(final long handle); + // instance variables // NOTE: If you add new member variables, please update the copy constructor above! diff --git a/options/db_options.cc b/options/db_options.cc index 649196ee69..0c250ec47a 100644 --- a/options/db_options.cc +++ b/options/db_options.cc @@ -269,7 +269,8 @@ MutableDBOptions::MutableDBOptions() compaction_readahead_size(0), zenfs_low_gc_ratio(0.25), zenfs_high_gc_ratio(0.6), - zenfs_force_gc_ratio(0.9) {} + zenfs_force_gc_ratio(0.9), + check_point_fake_flush(false) {} MutableDBOptions::MutableDBOptions(const DBOptions& options) : max_background_jobs(options.max_background_jobs), @@ -293,7 +294,8 @@ MutableDBOptions::MutableDBOptions(const DBOptions& options) compaction_readahead_size(options.compaction_readahead_size), zenfs_low_gc_ratio(options.zenfs_low_gc_ratio), zenfs_high_gc_ratio(options.zenfs_high_gc_ratio), - zenfs_force_gc_ratio(options.zenfs_force_gc_ratio) {} + zenfs_force_gc_ratio(options.zenfs_force_gc_ratio), + check_point_fake_flush(options.check_point_fake_flush) {} void MutableDBOptions::Dump(Logger* log) const { ROCKS_LOG_HEADER(log, " Options.max_background_jobs: %d", @@ -342,6 +344,8 @@ void MutableDBOptions::Dump(Logger* log) const { zenfs_high_gc_ratio); ROCKS_LOG_HEADER(log, " Options.zenfs_force_ratio: %lf", zenfs_force_gc_ratio); + ROCKS_LOG_HEADER(log, " Options.checkpoint_fake_flush: %lf", + check_point_fake_flush); } } // namespace TERARKDB_NAMESPACE diff --git a/options/db_options.h b/options/db_options.h index caa67ab463..36456664c6 100644 --- a/options/db_options.h +++ b/options/db_options.h @@ -116,6 +116,7 @@ struct MutableDBOptions { double zenfs_low_gc_ratio; double zenfs_high_gc_ratio; double zenfs_force_gc_ratio; + bool check_point_fake_flush; }; } // namespace TERARKDB_NAMESPACE diff --git a/options/options_helper.cc b/options/options_helper.cc index 93f18d9273..7fe54676cc 100644 --- a/options/options_helper.cc +++ b/options/options_helper.cc @@ -107,6 +107,7 @@ DBOptions BuildDBOptions(const ImmutableDBOptions& immutable_db_options, options.zenfs_low_gc_ratio = mutable_db_options.zenfs_low_gc_ratio; options.zenfs_high_gc_ratio = mutable_db_options.zenfs_high_gc_ratio; options.zenfs_force_gc_ratio = mutable_db_options.zenfs_force_gc_ratio; + options.check_point_fake_flush = mutable_db_options.check_point_fake_flush; options.random_access_max_buffer_size = immutable_db_options.random_access_max_buffer_size; options.writable_file_max_buffer_size = From 9ddb8a11de72ef402650c7191dd4c5dfba29c097 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Wed, 10 Aug 2022 20:20:31 +0800 Subject: [PATCH 23/26] add checkpoint signature --- java/rocksjni/options.cc | 33 +++++++++++++++++++ .../org/rocksdb/ColumnFamilyOptionsTest.java | 8 +++++ .../test/java/org/rocksdb/DBOptionsTest.java | 7 ++++ options/db_options.cc | 2 +- 4 files changed, 49 insertions(+), 1 deletion(-) diff --git a/java/rocksjni/options.cc b/java/rocksjni/options.cc index aa597a18b9..d8c853694c 100644 --- a/java/rocksjni/options.cc +++ b/java/rocksjni/options.cc @@ -1807,6 +1807,11 @@ jboolean Java_org_rocksdb_Options_allow2pc(JNIEnv* /*env*/, jobject /*jobj*/, return static_cast(opt->allow_2pc); } +/* + * Class: org_rocksdb_Options + * Method: setCheckPointFakeFlush + * Signature: (JZ)V + */ void Java_org_rocksdb_Options_setCheckPointFakeFlush( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jcheck_point_fake_flush) { @@ -1814,6 +1819,11 @@ void Java_org_rocksdb_Options_setCheckPointFakeFlush( opt->check_point_fake_flush = static_cast(jcheck_point_fake_flush); } +/* + * Class: org_rocksdb_Options + * Method: checkPointFakeFlush + * Signature: (J)Z + */ jboolean Java_org_rocksdb_Options_checkPointFakeFlush(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { @@ -4714,6 +4724,29 @@ jboolean Java_org_rocksdb_ColumnFamilyOptions_forceConsistencyChecks( ///////////////////////////////////////////////////////////////////// // TERARKDB_NAMESPACE::DBOptions +/* + * Class: org_rocksdb_DBOptions + * Method: setCheckPointFakeFlush + * Signature: (JZ)V + */ +void Java_org_rocksdb_DBOptions_setCheckPointFakeFlush( + JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, + jboolean jcheck_point_fake_flush) { + auto* opt = reinterpret_cast(jhandle); + opt->check_point_fake_flush = static_cast(jcheck_point_fake_flush); +} + +/* + * Class: org_rocksdb_DBOptions + * Method: checkPointFakeFlush + * Signature: (J)Z + */ +jboolean Java_org_rocksdb_DBOptions_checkPointFakeFlush(JNIEnv* /*env*/, + jobject /*jobj*/, + jlong jhandle) { + auto* opt = reinterpret_cast(jhandle); + return static_cast(opt->check_point_fake_flush); +} /* * Class: org_rocksdb_DBOptions diff --git a/java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java b/java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java index 7a295bd2ba..5dff13be33 100644 --- a/java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java +++ b/java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java @@ -24,6 +24,14 @@ public class ColumnFamilyOptionsTest { public static final Random rand = PlatformRandomHelper. getPlatformSpecificRandomFactory(); + @Test + public void gcratio() { + try (final ColumnFamilyOptions opt = new ColumnFamilyOptions()) { + final double gc_ratio = 0.1; + opt.setBlobGcRatio(gc_ratio); + } + } + @Test public void copyConstructor() { ColumnFamilyOptions origOpts = new ColumnFamilyOptions(); diff --git a/java/src/test/java/org/rocksdb/DBOptionsTest.java b/java/src/test/java/org/rocksdb/DBOptionsTest.java index dd18272810..65559665d0 100644 --- a/java/src/test/java/org/rocksdb/DBOptionsTest.java +++ b/java/src/test/java/org/rocksdb/DBOptionsTest.java @@ -675,4 +675,11 @@ public void statistics() { assertThat(stats).isNotNull(); } } + @Test + public void fakeflush() { + try(final DBOptions options = new DBOptions()) { + final boolean booleanValue = true; + options.setCheckPointFakeFlush(booleanValue); + } + } } diff --git a/options/db_options.cc b/options/db_options.cc index 0c250ec47a..f7579a429f 100644 --- a/options/db_options.cc +++ b/options/db_options.cc @@ -344,7 +344,7 @@ void MutableDBOptions::Dump(Logger* log) const { zenfs_high_gc_ratio); ROCKS_LOG_HEADER(log, " Options.zenfs_force_ratio: %lf", zenfs_force_gc_ratio); - ROCKS_LOG_HEADER(log, " Options.checkpoint_fake_flush: %lf", + ROCKS_LOG_HEADER(log, " Options.checkpoint_fake_flush: %d", check_point_fake_flush); } From 6d81caac266efe0b73b3f56d3a11970df4105d2e Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Thu, 18 Aug 2022 14:22:38 +0800 Subject: [PATCH 24/26] check_point_fake_flush default true --- include/rocksdb/options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rocksdb/options.h b/include/rocksdb/options.h index 0b48a058fe..07ab6d0e74 100644 --- a/include/rocksdb/options.h +++ b/include/rocksdb/options.h @@ -993,7 +993,7 @@ struct DBOptions { // transaction is encountered in the WAL bool allow_2pc = false; - bool check_point_fake_flush = false; + bool check_point_fake_flush = true; // A global cache for table-level rows. // Default: nullptr (disabled) From 25b2fcf5670a3bae951a24232d014dd1c0df6ae0 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Fri, 26 Aug 2022 14:10:37 +0800 Subject: [PATCH 25/26] fix SEGFPE --- db/compaction_job.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/compaction_job.cc b/db/compaction_job.cc index 123a2cae3a..3aad37a358 100644 --- a/db/compaction_job.cc +++ b/db/compaction_job.cc @@ -582,6 +582,7 @@ struct CompactionJob::SubcompactionState { output->blobs.reserve(blob_map.size()); for (auto& pair : blob_map) { auto meta = pair.second.first; + if (meta->prop.num_entries == 0) continue; uint64_t total_bytes = meta->fd.GetFileSize(); uint64_t ref_bytes = total_bytes * pair.second.second / meta->prop.num_entries; From 3b560d26ff8aeacda73f3c9c1affbeff17e2ef29 Mon Sep 17 00:00:00 2001 From: "wangyi.ywq" Date: Wed, 7 Sep 2022 18:29:32 +0800 Subject: [PATCH 26/26] [deploy] fix deploy with rocksdb in k8s and yarn --- .gitignore | 2 +- Makefile | 12 +- deprecated/Makefile | 8 +- java/CMakeLists.txt | 442 ++-- java/HISTORY-JAVA.md | 4 +- java/Makefile | 308 +-- java/RocksDBJava.java | 6 +- .../org/rocksdb/benchmark/DbBenchmark.java | 8 +- java/jdb_bench.sh | 2 +- java/pom.xml | 173 ++ java/rocksjni.pom | 2 +- java/rocksjni/backupablejni.cc | 102 +- java/rocksjni/backupenginejni.cc | 46 +- .../rocksjni/cassandra_compactionfilterjni.cc | 6 +- java/rocksjni/cassandra_value_operator.cc | 10 +- java/rocksjni/checkpoint.cc | 16 +- java/rocksjni/clock_cache.cc | 10 +- java/rocksjni/columnfamilyhandle.cc | 20 +- java/rocksjni/compact_range_options.cc | 66 +- java/rocksjni/compaction_filter.cc | 8 +- java/rocksjni/compaction_filter_factory.cc | 10 +- java/rocksjni/compaction_options_universal.cc | 66 +- java/rocksjni/comparator.cc | 22 +- java/rocksjni/compression_options.cc | 50 +- java/rocksjni/env.cc | 34 +- java/rocksjni/env_options.cc | 102 +- java/rocksjni/filter.cc | 12 +- java/rocksjni/flink_compactionfilterjni.cc | 28 +- java/rocksjni/ingest_external_file_options.cc | 46 +- java/rocksjni/iterator.cc | 46 +- java/rocksjni/jnicallback.cc | 2 +- java/rocksjni/jnicallback.h | 2 +- java/rocksjni/loggerjnicallback.cc | 22 +- java/rocksjni/lru_cache.cc | 10 +- java/rocksjni/memory_util.cc | 6 +- java/rocksjni/memtablejni.cc | 24 +- java/rocksjni/merge_operator.cc | 30 +- .../native_comparator_wrapper_test.cc | 6 +- java/rocksjni/optimistic_transaction_db.cc | 34 +- .../optimistic_transaction_options.cc | 22 +- java/rocksjni/options.cc | 2072 ++++++++--------- java/rocksjni/options_util.cc | 14 +- java/rocksjni/portal.h | 406 ++-- java/rocksjni/ratelimiterjni.cc | 34 +- .../remove_emptyvalue_compactionfilterjni.cc | 6 +- java/rocksjni/restorejni.cc | 10 +- java/rocksjni/rocks_callback_object.cc | 8 +- java/rocksjni/rocksdb_exception_test.cc | 26 +- java/rocksjni/rocksjni.cc | 296 +-- java/rocksjni/slice.cc | 100 +- java/rocksjni/snapshot.cc | 6 +- java/rocksjni/sst_file_manager.cc | 50 +- java/rocksjni/sst_file_writerjni.cc | 46 +- java/rocksjni/statistics.cc | 62 +- java/rocksjni/table.cc | 12 +- java/rocksjni/transaction.cc | 284 +-- java/rocksjni/transaction_db.cc | 52 +- java/rocksjni/transaction_db_options.cc | 50 +- java/rocksjni/transaction_log.cc | 24 +- java/rocksjni/transaction_notifier.cc | 10 +- java/rocksjni/transaction_options.cc | 58 +- java/rocksjni/ttl.cc | 16 +- java/rocksjni/write_batch.cc | 146 +- java/rocksjni/write_batch_test.cc | 24 +- java/rocksjni/write_batch_with_index.cc | 164 +- java/rocksjni/write_buffer_manager.cc | 10 +- .../java/OptimisticTransactionSample.java | 2 +- .../main/java/RocksDBColumnFamilySample.java | 2 +- java/samples/src/main/java/RocksDBSample.java | 4 +- .../src/main/java/TransactionSample.java | 2 +- .../AbstractCompactionFilter.java | 2 +- .../AbstractCompactionFilterFactory.java | 2 +- .../AbstractComparator.java | 6 +- .../AbstractImmutableNativeReference.java | 2 +- .../AbstractNativeReference.java | 2 +- .../AbstractRocksIterator.java | 4 +- .../{rocksdb => terarkdb}/AbstractSlice.java | 14 +- .../AbstractTransactionNotifier.java | 2 +- .../AbstractWriteBatch.java | 2 +- .../org/{rocksdb => terarkdb}/AccessHint.java | 2 +- .../AdvancedColumnFamilyOptionsInterface.java | 8 +- ...edMutableColumnFamilyOptionsInterface.java | 2 +- .../{rocksdb => terarkdb}/BackupEngine.java | 2 +- .../org/{rocksdb => terarkdb}/BackupInfo.java | 6 +- .../BackupableDBOptions.java | 6 +- .../BlockBasedTableConfig.java | 18 +- .../{rocksdb => terarkdb}/BloomFilter.java | 2 +- .../BuiltinComparator.java | 2 +- .../java/org/{rocksdb => terarkdb}/Cache.java | 2 +- .../CassandraCompactionFilter.java | 2 +- .../CassandraValueMergeOperator.java | 2 +- .../org/{rocksdb => terarkdb}/Checkpoint.java | 2 +- .../{rocksdb => terarkdb}/ChecksumType.java | 2 +- .../org/{rocksdb => terarkdb}/ClockCache.java | 2 +- .../ColumnFamilyDescriptor.java | 2 +- .../ColumnFamilyHandle.java | 2 +- .../ColumnFamilyOptions.java | 6 +- .../ColumnFamilyOptionsInterface.java | 4 +- .../CompactRangeOptions.java | 2 +- .../CompactionOptionsUniversal.java | 2 +- .../CompactionPriority.java | 4 +- .../CompactionStopStyle.java | 4 +- .../CompactionStyle.java | 2 +- .../org/{rocksdb => terarkdb}/Comparator.java | 6 +- .../ComparatorOptions.java | 2 +- .../{rocksdb => terarkdb}/ComparatorType.java | 2 +- .../CompressionOptions.java | 2 +- .../CompressionType.java | 2 +- .../org/{rocksdb => terarkdb}/DBOptions.java | 6 +- .../DBOptionsInterface.java | 14 +- .../org/{rocksdb => terarkdb}/DbPath.java | 2 +- .../DirectComparator.java | 6 +- .../{rocksdb => terarkdb}/DirectSlice.java | 4 +- .../{rocksdb => terarkdb}/EncodingType.java | 2 +- .../java/org/{rocksdb => terarkdb}/Env.java | 4 +- .../org/{rocksdb => terarkdb}/EnvOptions.java | 2 +- .../{rocksdb => terarkdb}/Experimental.java | 2 +- .../org/{rocksdb => terarkdb}/Filter.java | 2 +- .../FlinkCompactionFilter.java | 2 +- .../{rocksdb => terarkdb}/FlushOptions.java | 4 +- .../HashLinkedListMemTableConfig.java | 2 +- .../HashSkipListMemTableConfig.java | 2 +- .../{rocksdb => terarkdb}/HistogramData.java | 2 +- .../{rocksdb => terarkdb}/HistogramType.java | 2 +- .../org/{rocksdb => terarkdb}/IndexType.java | 2 +- .../{rocksdb => terarkdb}/InfoLogLevel.java | 4 +- .../IngestExternalFileOptions.java | 2 +- .../org/{rocksdb => terarkdb}/LRUCache.java | 2 +- .../org/{rocksdb => terarkdb}/Logger.java | 22 +- .../{rocksdb => terarkdb}/MemTableConfig.java | 2 +- .../MemoryUsageType.java | 2 +- .../org/{rocksdb => terarkdb}/MemoryUtil.java | 2 +- .../{rocksdb => terarkdb}/MergeOperator.java | 2 +- .../MutableColumnFamilyOptions.java | 2 +- .../MutableColumnFamilyOptionsInterface.java | 2 +- .../NativeComparatorWrapper.java | 2 +- .../NativeLibraryLoader.java | 6 +- .../OptimisticTransactionDB.java | 6 +- .../OptimisticTransactionOptions.java | 2 +- .../org/{rocksdb => terarkdb}/Options.java | 8 +- .../{rocksdb => terarkdb}/OptionsUtil.java | 28 +- .../PlainTableConfig.java | 4 +- .../{rocksdb => terarkdb}/RateLimiter.java | 2 +- .../RateLimiterMode.java | 2 +- .../{rocksdb => terarkdb}/ReadOptions.java | 2 +- .../org/{rocksdb => terarkdb}/ReadTier.java | 4 +- .../RemoveEmptyValueCompactionFilter.java | 2 +- .../{rocksdb => terarkdb}/RestoreOptions.java | 2 +- .../RocksCallbackObject.java | 2 +- .../org/{rocksdb => terarkdb}/RocksDB.java | 110 +- .../RocksDBException.java | 2 +- .../org/{rocksdb => terarkdb}/RocksEnv.java | 2 +- .../{rocksdb => terarkdb}/RocksIterator.java | 4 +- .../RocksIteratorInterface.java | 4 +- .../{rocksdb => terarkdb}/RocksMemEnv.java | 2 +- .../RocksMutableObject.java | 2 +- .../{rocksdb => terarkdb}/RocksObject.java | 2 +- .../SkipListMemTableConfig.java | 2 +- .../java/org/{rocksdb => terarkdb}/Slice.java | 6 +- .../org/{rocksdb => terarkdb}/Snapshot.java | 2 +- .../{rocksdb => terarkdb}/SstFileManager.java | 2 +- .../{rocksdb => terarkdb}/SstFileWriter.java | 10 +- .../org/{rocksdb => terarkdb}/Statistics.java | 2 +- .../StatisticsCollector.java | 2 +- .../StatisticsCollectorCallback.java | 2 +- .../StatsCollectorInput.java | 2 +- .../org/{rocksdb => terarkdb}/StatsLevel.java | 4 +- .../org/{rocksdb => terarkdb}/Status.java | 2 +- .../StringAppendOperator.java | 2 +- ...ngAppendOperatorWithVariableDelimitor.java | 2 +- .../TableFormatConfig.java | 2 +- .../org/{rocksdb => terarkdb}/TickerType.java | 2 +- .../{rocksdb => terarkdb}/Transaction.java | 46 +- .../{rocksdb => terarkdb}/TransactionDB.java | 10 +- .../TransactionDBOptions.java | 2 +- .../TransactionLogIterator.java | 12 +- .../TransactionOptions.java | 2 +- .../TransactionalDB.java | 2 +- .../TransactionalOptions.java | 2 +- .../java/org/{rocksdb => terarkdb}/TtlDB.java | 12 +- .../TxnDBWritePolicy.java | 2 +- .../UInt64AddOperator.java | 2 +- .../VectorMemTableConfig.java | 2 +- .../WALRecoveryMode.java | 2 +- .../WBWIRocksIterator.java | 10 +- .../org/{rocksdb => terarkdb}/WriteBatch.java | 2 +- .../WriteBatchInterface.java | 4 +- .../WriteBatchWithIndex.java | 22 +- .../WriteBufferManager.java | 4 +- .../{rocksdb => terarkdb}/WriteOptions.java | 2 +- .../util/BytewiseComparator.java | 6 +- .../util/DirectBytewiseComparator.java | 10 +- .../util/Environment.java | 2 +- .../util/ReverseBytewiseComparator.java | 8 +- .../{rocksdb => terarkdb}/util/SizeUnit.java | 2 +- .../AbstractComparatorTest.java | 6 +- .../AbstractTransactionTest.java | 2 +- .../BackupEngineTest.java | 2 +- .../BackupableDBOptionsTest.java | 2 +- .../BlockBasedTableConfigTest.java | 2 +- .../{rocksdb => terarkdb}/CheckPointTest.java | 2 +- .../{rocksdb => terarkdb}/ClockCacheTest.java | 2 +- .../ColumnFamilyOptionsTest.java | 2 +- .../ColumnFamilyTest.java | 2 +- .../CompactRangeOptionsTest.java | 4 +- .../CompactionFilterFactoryTest.java | 2 +- .../CompactionOptionsUniversalTest.java | 2 +- .../CompactionPriorityTest.java | 2 +- .../CompactionStopStyleTest.java | 2 +- .../ComparatorOptionsTest.java | 2 +- .../{rocksdb => terarkdb}/ComparatorTest.java | 2 +- .../CompressionOptionsTest.java | 2 +- .../CompressionTypesTest.java | 2 +- .../{rocksdb => terarkdb}/DBOptionsTest.java | 2 +- .../DirectComparatorTest.java | 2 +- .../DirectSliceTest.java | 2 +- .../{rocksdb => terarkdb}/EnvOptionsTest.java | 2 +- .../org/{rocksdb => terarkdb}/FilterTest.java | 2 +- .../FlinkCompactionFilterTest.java | 6 +- .../org/{rocksdb => terarkdb}/FlushTest.java | 2 +- .../InfoLogLevelTest.java | 4 +- .../IngestExternalFileOptionsTest.java | 2 +- .../KeyMayExistTest.java | 2 +- .../{rocksdb => terarkdb}/LRUCacheTest.java | 2 +- .../org/{rocksdb => terarkdb}/LoggerTest.java | 2 +- .../{rocksdb => terarkdb}/MemTableTest.java | 2 +- .../{rocksdb => terarkdb}/MemoryUtilTest.java | 2 +- .../org/{rocksdb => terarkdb}/MergeTest.java | 2 +- .../MixedOptionsTest.java | 2 +- .../MutableColumnFamilyOptionsTest.java | 4 +- .../NativeComparatorWrapperTest.java | 2 +- .../NativeLibraryLoaderTest.java | 4 +- .../OptimisticTransactionDBTest.java | 2 +- .../OptimisticTransactionOptionsTest.java | 4 +- .../OptimisticTransactionTest.java | 2 +- .../{rocksdb => terarkdb}/OptionsTest.java | 2 +- .../OptionsUtilTest.java | 2 +- .../PlainTableConfigTest.java | 2 +- .../PlatformRandomHelper.java | 2 +- .../RateLimiterTest.java | 4 +- .../{rocksdb => terarkdb}/ReadOnlyTest.java | 2 +- .../ReadOptionsTest.java | 2 +- .../RocksDBExceptionTest.java | 6 +- .../{rocksdb => terarkdb}/RocksDBTest.java | 2 +- .../{rocksdb => terarkdb}/RocksEnvTest.java | 2 +- .../RocksIteratorTest.java | 2 +- .../RocksMemEnvTest.java | 2 +- .../RocksMemoryResource.java | 2 +- .../org/{rocksdb => terarkdb}/SliceTest.java | 2 +- .../{rocksdb => terarkdb}/SnapshotTest.java | 2 +- .../SstFileManagerTest.java | 2 +- .../SstFileWriterTest.java | 4 +- .../StatisticsCollectorTest.java | 2 +- .../{rocksdb => terarkdb}/StatisticsTest.java | 2 +- .../StatsCallbackMock.java | 2 +- .../TransactionDBOptionsTest.java | 2 +- .../TransactionDBTest.java | 2 +- .../TransactionLogIteratorTest.java | 2 +- .../TransactionOptionsTest.java | 2 +- .../TransactionTest.java | 2 +- .../org/{rocksdb => terarkdb}/TtlDBTest.java | 2 +- .../java/org/{rocksdb => terarkdb}/Types.java | 2 +- .../WALRecoveryModeTest.java | 2 +- .../WriteBatchHandlerTest.java | 8 +- .../{rocksdb => terarkdb}/WriteBatchTest.java | 10 +- .../WriteBatchThreadedTest.java | 2 +- .../WriteBatchWithIndexTest.java | 2 +- .../WriteOptionsTest.java | 2 +- .../test/RocksJunitRunner.java | 6 +- .../util/BytewiseComparatorTest.java | 6 +- .../util/CapturingWriteBatchHandler.java | 6 +- .../util/EnvironmentTest.java | 2 +- .../util/SizeUnitTest.java | 2 +- .../util/WriteBatchGetter.java | 6 +- .../flink/flink_compaction_filter_test.cc | 4 +- 275 files changed, 3432 insertions(+), 3259 deletions(-) create mode 100644 java/pom.xml rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractCompactionFilter.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractCompactionFilterFactory.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractComparator.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractImmutableNativeReference.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractNativeReference.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractRocksIterator.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractSlice.java (93%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractTransactionNotifier.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/AbstractWriteBatch.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/AccessHint.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/AdvancedColumnFamilyOptionsInterface.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/AdvancedMutableColumnFamilyOptionsInterface.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/BackupEngine.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/BackupInfo.java (93%) rename java/src/main/java/org/{rocksdb => terarkdb}/BackupableDBOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/BlockBasedTableConfig.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/BloomFilter.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/BuiltinComparator.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/Cache.java (94%) rename java/src/main/java/org/{rocksdb => terarkdb}/CassandraCompactionFilter.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/CassandraValueMergeOperator.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/Checkpoint.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/ChecksumType.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/ClockCache.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/ColumnFamilyDescriptor.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/ColumnFamilyHandle.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/ColumnFamilyOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/ColumnFamilyOptionsInterface.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/CompactRangeOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/CompactionOptionsUniversal.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/CompactionPriority.java (95%) rename java/src/main/java/org/{rocksdb => terarkdb}/CompactionStopStyle.java (92%) rename java/src/main/java/org/{rocksdb => terarkdb}/CompactionStyle.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/Comparator.java (88%) rename java/src/main/java/org/{rocksdb => terarkdb}/ComparatorOptions.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/ComparatorType.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/CompressionOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/CompressionType.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/DBOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/DBOptionsInterface.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/DbPath.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/DirectComparator.java (89%) rename java/src/main/java/org/{rocksdb => terarkdb}/DirectSlice.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/EncodingType.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/Env.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/EnvOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/Experimental.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/Filter.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/FlinkCompactionFilter.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/FlushOptions.java (95%) rename java/src/main/java/org/{rocksdb => terarkdb}/HashLinkedListMemTableConfig.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/HashSkipListMemTableConfig.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/HistogramData.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/HistogramType.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/IndexType.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/InfoLogLevel.java (92%) rename java/src/main/java/org/{rocksdb => terarkdb}/IngestExternalFileOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/LRUCache.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/Logger.java (84%) rename java/src/main/java/org/{rocksdb => terarkdb}/MemTableConfig.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/MemoryUsageType.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/MemoryUtil.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/MergeOperator.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/MutableColumnFamilyOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/MutableColumnFamilyOptionsInterface.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/NativeComparatorWrapper.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/NativeLibraryLoader.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/OptimisticTransactionDB.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/OptimisticTransactionOptions.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/Options.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/OptionsUtil.java (85%) rename java/src/main/java/org/{rocksdb => terarkdb}/PlainTableConfig.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/RateLimiter.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/RateLimiterMode.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/ReadOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/ReadTier.java (93%) rename java/src/main/java/org/{rocksdb => terarkdb}/RemoveEmptyValueCompactionFilter.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/RestoreOptions.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksCallbackObject.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksDB.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksDBException.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksEnv.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksIterator.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksIteratorInterface.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksMemEnv.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksMutableObject.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/RocksObject.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/SkipListMemTableConfig.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/Slice.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/Snapshot.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/SstFileManager.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/SstFileWriter.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/Statistics.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/StatisticsCollector.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/StatisticsCollectorCallback.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/StatsCollectorInput.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/StatsLevel.java (95%) rename java/src/main/java/org/{rocksdb => terarkdb}/Status.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/StringAppendOperator.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/StringAppendOperatorWithVariableDelimitor.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/TableFormatConfig.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/TickerType.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/Transaction.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/TransactionDB.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/TransactionDBOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/TransactionLogIterator.java (89%) rename java/src/main/java/org/{rocksdb => terarkdb}/TransactionOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/TransactionalDB.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/TransactionalOptions.java (97%) rename java/src/main/java/org/{rocksdb => terarkdb}/TtlDB.java (95%) rename java/src/main/java/org/{rocksdb => terarkdb}/TxnDBWritePolicy.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/UInt64AddOperator.java (96%) rename java/src/main/java/org/{rocksdb => terarkdb}/VectorMemTableConfig.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/WALRecoveryMode.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/WBWIRocksIterator.java (94%) rename java/src/main/java/org/{rocksdb => terarkdb}/WriteBatch.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/WriteBatchInterface.java (98%) rename java/src/main/java/org/{rocksdb => terarkdb}/WriteBatchWithIndex.java (94%) rename java/src/main/java/org/{rocksdb => terarkdb}/WriteBufferManager.java (95%) rename java/src/main/java/org/{rocksdb => terarkdb}/WriteOptions.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/util/BytewiseComparator.java (95%) rename java/src/main/java/org/{rocksdb => terarkdb}/util/DirectBytewiseComparator.java (92%) rename java/src/main/java/org/{rocksdb => terarkdb}/util/Environment.java (99%) rename java/src/main/java/org/{rocksdb => terarkdb}/util/ReverseBytewiseComparator.java (88%) rename java/src/main/java/org/{rocksdb => terarkdb}/util/SizeUnit.java (95%) rename java/src/test/java/org/{rocksdb => terarkdb}/AbstractComparatorTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/AbstractTransactionTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/BackupEngineTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/BackupableDBOptionsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/BlockBasedTableConfigTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/CheckPointTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/ClockCacheTest.java (96%) rename java/src/test/java/org/{rocksdb => terarkdb}/ColumnFamilyOptionsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/ColumnFamilyTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/CompactRangeOptionsTest.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/CompactionFilterFactoryTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/CompactionOptionsUniversalTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/CompactionPriorityTest.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/CompactionStopStyleTest.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/ComparatorOptionsTest.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/ComparatorTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/CompressionOptionsTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/CompressionTypesTest.java (96%) rename java/src/test/java/org/{rocksdb => terarkdb}/DBOptionsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/DirectComparatorTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/DirectSliceTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/EnvOptionsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/FilterTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/FlinkCompactionFilterTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/FlushTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/InfoLogLevelTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/IngestExternalFileOptionsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/KeyMayExistTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/LRUCacheTest.java (96%) rename java/src/test/java/org/{rocksdb => terarkdb}/LoggerTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/MemTableTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/MemoryUtilTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/MergeTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/MixedOptionsTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/MutableColumnFamilyOptionsTest.java (96%) rename java/src/test/java/org/{rocksdb => terarkdb}/NativeComparatorWrapperTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/NativeLibraryLoaderTest.java (95%) rename java/src/test/java/org/{rocksdb => terarkdb}/OptimisticTransactionDBTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/OptimisticTransactionOptionsTest.java (93%) rename java/src/test/java/org/{rocksdb => terarkdb}/OptimisticTransactionTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/OptionsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/OptionsUtilTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/PlainTableConfigTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/PlatformRandomHelper.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/RateLimiterTest.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/ReadOnlyTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/ReadOptionsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/RocksDBExceptionTest.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/RocksDBTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/RocksEnvTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/RocksIteratorTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/RocksMemEnvTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/RocksMemoryResource.java (95%) rename java/src/test/java/org/{rocksdb => terarkdb}/SliceTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/SnapshotTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/SstFileManagerTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/SstFileWriterTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/StatisticsCollectorTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/StatisticsTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/StatsCallbackMock.java (96%) rename java/src/test/java/org/{rocksdb => terarkdb}/TransactionDBOptionsTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/TransactionDBTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/TransactionLogIteratorTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/TransactionOptionsTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/TransactionTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/TtlDBTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/Types.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/WALRecoveryModeTest.java (96%) rename java/src/test/java/org/{rocksdb => terarkdb}/WriteBatchHandlerTest.java (91%) rename java/src/test/java/org/{rocksdb => terarkdb}/WriteBatchTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/WriteBatchThreadedTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/WriteBatchWithIndexTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/WriteOptionsTest.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/test/RocksJunitRunner.java (97%) rename java/src/test/java/org/{rocksdb => terarkdb}/util/BytewiseComparatorTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/util/CapturingWriteBatchHandler.java (98%) rename java/src/test/java/org/{rocksdb => terarkdb}/util/EnvironmentTest.java (99%) rename java/src/test/java/org/{rocksdb => terarkdb}/util/SizeUnitTest.java (96%) rename java/src/test/java/org/{rocksdb => terarkdb}/util/WriteBatchGetter.java (96%) diff --git a/.gitignore b/.gitignore index 1201b1f865..042185d10f 100644 --- a/.gitignore +++ b/.gitignore @@ -51,7 +51,7 @@ trace_analyzer_test java/out java/target java/*.log -java/include/org_rocksdb_*.h +java/include/org_terarkdb_*.h .idea/ *.iml diff --git a/Makefile b/Makefile index 1a62eb44fe..51f28a5b42 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ endif endif ifeq (,$(shell $(CXX) -fsyntax-only -faligned-new -xc++ /dev/null 2>&1)) -CXXFLAGS += -ljemalloc -faligned-new -DHAVE_ALIGNED_NEW +CXXFLAGS += -faligned-new -DHAVE_ALIGNED_NEW endif ifeq (,$(shell $(CXX) -fsyntax-only -maltivec -xc /dev/null 2>&1)) @@ -1809,7 +1809,7 @@ rocksdbjavastatic: $(java_static_all_libobjects) cd java;jar -cf target/$(ROCKSDB_JAR) HISTORY*.md jar -uf java/target/$(ROCKSDB_JAR) HISTORY*.md cd java/target;jar -uf $(ROCKSDB_JAR) $(ROCKSDBJNILIB) - cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/rocksdb/*.class org/rocksdb/util/*.class + cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/terarkdb/*.class org/terarkdb/util/*.class cd java/target/apidocs;jar -cf ../$(ROCKSDB_JAVADOCS_JAR) * cd java/src/main/java;jar -cf ../../../target/$(ROCKSDB_SOURCES_JAR) org openssl sha1 java/target/$(ROCKSDB_JAR) | sed 's/.*= \([0-9a-f]*\)/\1/' > java/target/$(ROCKSDB_JAR).sha1 @@ -1825,7 +1825,7 @@ rocksdbjavastaticrelease: rocksdbjavastatic cd java;jar -cf target/$(ROCKSDB_JAR_ALL) HISTORY*.md jar -uf java/target/$(ROCKSDB_JAR_ALL) HISTORY*.md cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-*.so libterarkdbjni-*.jnilib libterarkdbjni-win64.dll - cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/rocksdb/*.class org/rocksdb/util/*.class + cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/terarkdb/*.class org/terarkdb/util/*.class frocksdbjavastaticrelease: rocksdbjavastaticrelease # update license @@ -1879,13 +1879,13 @@ frocksdbjavastaticrelease: rocksdbjavastaticrelease rocksdbjavastaticreleasedocker: rocksdbjavastatic rocksdbjavastaticdockerx86_64 cd java;jar -cf target/$(ROCKSDB_JAR_ALL) HISTORY*.md cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-*.so libterarkdbjni-*.jnilib - cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/rocksdb/*.class org/rocksdb/util/*.class + cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/terarkdb/*.class org/terarkdb/util/*.class fterark:rocksdbjavastatic cd java;jar -cf target/$(ROCKSDB_JAR_ALL) HISTORY*.md cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-* #cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-*.so libterarkdbjni-* - cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/rocksdb/*.class org/rocksdb/util/*.class + cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/terarkdb/*.class org/terarkdb/util/*.class # update apache license mkdir -p java/target/META-INF @@ -2014,7 +2014,7 @@ rocksdbjava: $(java_all_libobjects) $(AM_V_at)$(CXX) $(CXXFLAGS) -I./java/. $(JAVA_INCLUDE) -shared -fPIC -o ./java/target/$(ROCKSDBJNILIB) $(JNI_NATIVE_SOURCES) $(java_all_libobjects) $(JAVA_LDFLAGS) $(COVERAGEFLAGS) $(AM_V_at)cd java;jar -cf target/$(ROCKSDB_JAR) HISTORY*.md $(AM_V_at)cd java/target;jar -uf $(ROCKSDB_JAR) $(ROCKSDBJNILIB) - $(AM_V_at)cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/rocksdb/*.class org/rocksdb/util/*.class + $(AM_V_at)cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/terarkdb/*.class org/terarkdb/util/*.class frocksdbjava: rocksdbjava # update license diff --git a/deprecated/Makefile b/deprecated/Makefile index e3d1d5f160..3b16080c51 100644 --- a/deprecated/Makefile +++ b/deprecated/Makefile @@ -2091,7 +2091,7 @@ rocksdbjavastatic: $(java_static_all_libobjects) cd java;jar -cf target/$(ROCKSDB_JAR) HISTORY*.md jar -uf java/target/$(ROCKSDB_JAR) HISTORY*.md cd java/target;jar -uf $(ROCKSDB_JAR) $(ROCKSDBJNILIB) - cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/rocksdb/*.class org/rocksdb/util/*.class + cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/terarkdb/*.class org/terarkdb/util/*.class cd java/target/apidocs;jar -cf ../$(ROCKSDB_JAVADOCS_JAR) * cd java/src/main/java;jar -cf ../../../target/$(ROCKSDB_SOURCES_JAR) org @@ -2109,7 +2109,7 @@ rocksdbjavastaticrelease: rocksdbjavastatic # Enable crossbuild again(guokuankuan) # cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-*.so libterarkdbjni-*.jnilib libterarkdbjni-win64.dll cd java/target;jar -uf $(ROCKSDB_JAR_ALL) *.so - cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/rocksdb/*.class org/rocksdb/util/*.class + cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/terarkdb/*.class org/terarkdb/util/*.class frocksdbjavastaticrelease: rocksdbjavastaticrelease # update license @@ -2163,7 +2163,7 @@ frocksdbjavastaticrelease: rocksdbjavastaticrelease rocksdbjavastaticreleasedocker: rocksdbjavastatic rocksdbjavastaticdockerx86 rocksdbjavastaticdockerx86_64 cd java;jar -cf target/$(ROCKSDB_JAR_ALL) HISTORY*.md cd java/target;jar -uf $(ROCKSDB_JAR_ALL) libterarkdbjni-*.so libterarkdbjni-*.jnilib - cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/rocksdb/*.class org/rocksdb/util/*.class + cd java/target/classes;jar -uf ../$(ROCKSDB_JAR_ALL) org/terarkdb/*.class org/terarkdb/util/*.class rocksdbjavastaticdockerx86: mkdir -p java/target @@ -2236,7 +2236,7 @@ rocksdbjava: $(java_all_libobjects) $(AM_V_at)$(CXX) $(CXXFLAGS) -I./java/. $(JAVA_INCLUDE) -shared -fPIC -o ./java/target/$(ROCKSDBJNILIB) $(JNI_NATIVE_SOURCES) $(java_all_libobjects) $(JAVA_LDFLAGS) $(COVERAGEFLAGS) $(AM_V_at)cd java;jar -cf target/$(ROCKSDB_JAR) HISTORY*.md $(AM_V_at)cd java/target;jar -uf $(ROCKSDB_JAR) $(ROCKSDBJNILIB) - $(AM_V_at)cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/rocksdb/*.class org/rocksdb/util/*.class + $(AM_V_at)cd java/target/classes;jar -uf ../$(ROCKSDB_JAR) org/terarkdb/*.class org/terarkdb/util/*.class jclean: cd java;$(MAKE) clean; diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt index 5c7df818be..98fc28bd2c 100644 --- a/java/CMakeLists.txt +++ b/java/CMakeLists.txt @@ -62,92 +62,92 @@ set(JNI_NATIVE_SOURCES ) set(NATIVE_JAVA_CLASSES - org.rocksdb.AbstractCompactionFilter - org.rocksdb.AbstractCompactionFilterFactory - org.rocksdb.AbstractComparator - org.rocksdb.AbstractImmutableNativeReference - org.rocksdb.AbstractNativeReference - org.rocksdb.AbstractRocksIterator - org.rocksdb.AbstractSlice - org.rocksdb.AbstractTransactionNotifier - org.rocksdb.BackupableDBOptions - org.rocksdb.BackupEngine - org.rocksdb.BlockBasedTableConfig - org.rocksdb.BloomFilter - org.rocksdb.CassandraCompactionFilter - org.rocksdb.CassandraValueMergeOperator - org.rocksdb.Checkpoint - org.rocksdb.ClockCache - org.rocksdb.ColumnFamilyHandle - org.rocksdb.ColumnFamilyOptions - org.rocksdb.CompactionOptionsUniversal - org.rocksdb.CompactRangeOptions - org.rocksdb.Comparator - org.rocksdb.ComparatorOptions - org.rocksdb.CompressionOptions - org.rocksdb.DBOptions - org.rocksdb.DirectComparator - org.rocksdb.DirectSlice - org.rocksdb.Env - org.rocksdb.EnvOptions - org.rocksdb.Filter - org.rocksdb.FlinkCompactionFilter - org.rocksdb.FlushOptions - org.rocksdb.HashLinkedListMemTableConfig - org.rocksdb.HashSkipListMemTableConfig - org.rocksdb.IngestExternalFileOptions - org.rocksdb.Logger - org.rocksdb.LRUCache - org.rocksdb.MemoryUtil - org.rocksdb.MemTableConfig - org.rocksdb.NativeComparatorWrapper - org.rocksdb.NativeLibraryLoader - org.rocksdb.OptimisticTransactionDB - org.rocksdb.OptimisticTransactionOptions - org.rocksdb.Options - org.rocksdb.OptionsUtil - org.rocksdb.PlainTableConfig - org.rocksdb.RateLimiter - org.rocksdb.ReadOptions - org.rocksdb.RemoveEmptyValueCompactionFilter - org.rocksdb.RestoreOptions - org.rocksdb.RocksCallbackObject - org.rocksdb.RocksDB - org.rocksdb.RocksEnv - org.rocksdb.RocksIterator - org.rocksdb.RocksIteratorInterface - org.rocksdb.RocksMemEnv - org.rocksdb.RocksMutableObject - org.rocksdb.RocksObject - org.rocksdb.SkipListMemTableConfig - org.rocksdb.Slice - org.rocksdb.Snapshot - org.rocksdb.SstFileManager - org.rocksdb.SstFileWriter - org.rocksdb.Statistics - org.rocksdb.StringAppendOperator - org.rocksdb.StringAppendOperatorWithVariableDelimitor - org.rocksdb.TableFormatConfig - org.rocksdb.Transaction - org.rocksdb.TransactionDB - org.rocksdb.TransactionDBOptions - org.rocksdb.TransactionLogIterator - org.rocksdb.TransactionOptions - org.rocksdb.TtlDB - org.rocksdb.UInt64AddOperator - org.rocksdb.VectorMemTableConfig - org.rocksdb.WBWIRocksIterator - org.rocksdb.WriteBatch - org.rocksdb.WriteBatch.Handler - org.rocksdb.WriteBatchInterface - org.rocksdb.WriteBatchWithIndex - org.rocksdb.WriteOptions - org.rocksdb.NativeComparatorWrapperTest - org.rocksdb.RocksDBExceptionTest - org.rocksdb.SnapshotTest - org.rocksdb.WriteBatchTest - org.rocksdb.WriteBatchTestInternalHelper - org.rocksdb.WriteBufferManager + org.terarkdb.AbstractCompactionFilter + org.terarkdb.AbstractCompactionFilterFactory + org.terarkdb.AbstractComparator + org.terarkdb.AbstractImmutableNativeReference + org.terarkdb.AbstractNativeReference + org.terarkdb.AbstractRocksIterator + org.terarkdb.AbstractSlice + org.terarkdb.AbstractTransactionNotifier + org.terarkdb.BackupableDBOptions + org.terarkdb.BackupEngine + org.terarkdb.BlockBasedTableConfig + org.terarkdb.BloomFilter + org.terarkdb.CassandraCompactionFilter + org.terarkdb.CassandraValueMergeOperator + org.terarkdb.Checkpoint + org.terarkdb.ClockCache + org.terarkdb.ColumnFamilyHandle + org.terarkdb.ColumnFamilyOptions + org.terarkdb.CompactionOptionsUniversal + org.terarkdb.CompactRangeOptions + org.terarkdb.Comparator + org.terarkdb.ComparatorOptions + org.terarkdb.CompressionOptions + org.terarkdb.DBOptions + org.terarkdb.DirectComparator + org.terarkdb.DirectSlice + org.terarkdb.Env + org.terarkdb.EnvOptions + org.terarkdb.Filter + org.terarkdb.FlinkCompactionFilter + org.terarkdb.FlushOptions + org.terarkdb.HashLinkedListMemTableConfig + org.terarkdb.HashSkipListMemTableConfig + org.terarkdb.IngestExternalFileOptions + org.terarkdb.Logger + org.terarkdb.LRUCache + org.terarkdb.MemoryUtil + org.terarkdb.MemTableConfig + org.terarkdb.NativeComparatorWrapper + org.terarkdb.NativeLibraryLoader + org.terarkdb.OptimisticTransactionDB + org.terarkdb.OptimisticTransactionOptions + org.terarkdb.Options + org.terarkdb.OptionsUtil + org.terarkdb.PlainTableConfig + org.terarkdb.RateLimiter + org.terarkdb.ReadOptions + org.terarkdb.RemoveEmptyValueCompactionFilter + org.terarkdb.RestoreOptions + org.terarkdb.RocksCallbackObject + org.terarkdb.RocksDB + org.terarkdb.RocksEnv + org.terarkdb.RocksIterator + org.terarkdb.RocksIteratorInterface + org.terarkdb.RocksMemEnv + org.terarkdb.RocksMutableObject + org.terarkdb.RocksObject + org.terarkdb.SkipListMemTableConfig + org.terarkdb.Slice + org.terarkdb.Snapshot + org.terarkdb.SstFileManager + org.terarkdb.SstFileWriter + org.terarkdb.Statistics + org.terarkdb.StringAppendOperator + org.terarkdb.StringAppendOperatorWithVariableDelimitor + org.terarkdb.TableFormatConfig + org.terarkdb.Transaction + org.terarkdb.TransactionDB + org.terarkdb.TransactionDBOptions + org.terarkdb.TransactionLogIterator + org.terarkdb.TransactionOptions + org.terarkdb.TtlDB + org.terarkdb.UInt64AddOperator + org.terarkdb.VectorMemTableConfig + org.terarkdb.WBWIRocksIterator + org.terarkdb.WriteBatch + org.terarkdb.WriteBatch.Handler + org.terarkdb.WriteBatchInterface + org.terarkdb.WriteBatchWithIndex + org.terarkdb.WriteOptions + org.terarkdb.NativeComparatorWrapperTest + org.terarkdb.RocksDBExceptionTest + org.terarkdb.SnapshotTest + org.terarkdb.WriteBatchTest + org.terarkdb.WriteBatchTestInternalHelper + org.terarkdb.WriteBufferManager ) include(FindJava) @@ -169,141 +169,141 @@ set(JAVA_TESTCLASSPATH ${JAVA_JUNIT_JAR} ${JAVA_HAMCR_JAR} ${JAVA_MOCKITO_JAR} $ add_jar( rocksdbjni_classes SOURCES - src/main/java/org/rocksdb/AbstractCompactionFilterFactory.java - src/main/java/org/rocksdb/AbstractCompactionFilter.java - src/main/java/org/rocksdb/AbstractComparator.java - src/main/java/org/rocksdb/AbstractImmutableNativeReference.java - src/main/java/org/rocksdb/AbstractNativeReference.java - src/main/java/org/rocksdb/AbstractRocksIterator.java - src/main/java/org/rocksdb/AbstractSlice.java - src/main/java/org/rocksdb/AbstractTransactionNotifier.java - src/main/java/org/rocksdb/AbstractWriteBatch.java - src/main/java/org/rocksdb/AccessHint.java - src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java - src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java - src/main/java/org/rocksdb/BackupableDBOptions.java - src/main/java/org/rocksdb/BackupEngine.java - src/main/java/org/rocksdb/BackupInfo.java - src/main/java/org/rocksdb/BlockBasedTableConfig.java - src/main/java/org/rocksdb/BloomFilter.java - src/main/java/org/rocksdb/BuiltinComparator.java - src/main/java/org/rocksdb/Cache.java - src/main/java/org/rocksdb/CassandraCompactionFilter.java - src/main/java/org/rocksdb/CassandraValueMergeOperator.java - src/main/java/org/rocksdb/Checkpoint.java - src/main/java/org/rocksdb/ChecksumType.java - src/main/java/org/rocksdb/ClockCache.java - src/main/java/org/rocksdb/ColumnFamilyDescriptor.java - src/main/java/org/rocksdb/ColumnFamilyHandle.java - src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java - src/main/java/org/rocksdb/ColumnFamilyOptions.java - src/main/java/org/rocksdb/CompactionOptionsUniversal.java - src/main/java/org/rocksdb/CompactionPriority.java - src/main/java/org/rocksdb/CompactRangeOptions.java - src/main/java/org/rocksdb/CompactionStopStyle.java - src/main/java/org/rocksdb/CompactionStyle.java - src/main/java/org/rocksdb/Comparator.java - src/main/java/org/rocksdb/ComparatorOptions.java - src/main/java/org/rocksdb/ComparatorType.java - src/main/java/org/rocksdb/CompressionOptions.java - src/main/java/org/rocksdb/CompressionType.java - src/main/java/org/rocksdb/DBOptionsInterface.java - src/main/java/org/rocksdb/DBOptions.java - src/main/java/org/rocksdb/DbPath.java - src/main/java/org/rocksdb/DirectComparator.java - src/main/java/org/rocksdb/DirectSlice.java - src/main/java/org/rocksdb/EncodingType.java - src/main/java/org/rocksdb/Env.java - src/main/java/org/rocksdb/EnvOptions.java - src/main/java/org/rocksdb/Experimental.java - src/main/java/org/rocksdb/Filter.java - src/main/java/org/rocksdb/FlinkCompactionFilter.java - src/main/java/org/rocksdb/FlushOptions.java - src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java - src/main/java/org/rocksdb/HashSkipListMemTableConfig.java - src/main/java/org/rocksdb/HistogramData.java - src/main/java/org/rocksdb/HistogramType.java - src/main/java/org/rocksdb/IndexType.java - src/main/java/org/rocksdb/InfoLogLevel.java - src/main/java/org/rocksdb/IngestExternalFileOptions.java - src/main/java/org/rocksdb/Logger.java - src/main/java/org/rocksdb/LRUCache.java - src/main/java/org/rocksdb/MemoryUsageType.java - src/main/java/org/rocksdb/MemoryUtil.java - src/main/java/org/rocksdb/MemTableConfig.java - src/main/java/org/rocksdb/MergeOperator.java - src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java - src/main/java/org/rocksdb/MutableColumnFamilyOptions.java - src/main/java/org/rocksdb/NativeComparatorWrapper.java - src/main/java/org/rocksdb/NativeLibraryLoader.java - src/main/java/org/rocksdb/OptimisticTransactionDB.java - src/main/java/org/rocksdb/OptimisticTransactionOptions.java - src/main/java/org/rocksdb/Options.java - src/main/java/org/rocksdb/OptionsUtil.java - src/main/java/org/rocksdb/PlainTableConfig.java - src/main/java/org/rocksdb/RateLimiter.java - src/main/java/org/rocksdb/RateLimiterMode.java - src/main/java/org/rocksdb/ReadOptions.java - src/main/java/org/rocksdb/ReadTier.java - src/main/java/org/rocksdb/RemoveEmptyValueCompactionFilter.java - src/main/java/org/rocksdb/RestoreOptions.java - src/main/java/org/rocksdb/RocksCallbackObject.java - src/main/java/org/rocksdb/RocksDBException.java - src/main/java/org/rocksdb/RocksDB.java - src/main/java/org/rocksdb/RocksEnv.java - src/main/java/org/rocksdb/RocksIteratorInterface.java - src/main/java/org/rocksdb/RocksIterator.java - src/main/java/org/rocksdb/RocksMemEnv.java - src/main/java/org/rocksdb/RocksMutableObject.java - src/main/java/org/rocksdb/RocksObject.java - src/main/java/org/rocksdb/SkipListMemTableConfig.java - src/main/java/org/rocksdb/Slice.java - src/main/java/org/rocksdb/Snapshot.java - src/main/java/org/rocksdb/SstFileManager.java - src/main/java/org/rocksdb/SstFileWriter.java - src/main/java/org/rocksdb/StatisticsCollectorCallback.java - src/main/java/org/rocksdb/StatisticsCollector.java - src/main/java/org/rocksdb/Statistics.java - src/main/java/org/rocksdb/StatsCollectorInput.java - src/main/java/org/rocksdb/StatsLevel.java - src/main/java/org/rocksdb/Status.java - src/main/java/org/rocksdb/StringAppendOperator.java - src/main/java/org/rocksdb/StringAppendOperatorWithVariableDelimitor.java - src/main/java/org/rocksdb/TableFormatConfig.java - src/main/java/org/rocksdb/TickerType.java - src/main/java/org/rocksdb/TransactionalDB.java - src/main/java/org/rocksdb/TransactionalOptions.java - src/main/java/org/rocksdb/TransactionDB.java - src/main/java/org/rocksdb/TransactionDBOptions.java - src/main/java/org/rocksdb/Transaction.java - src/main/java/org/rocksdb/TransactionLogIterator.java - src/main/java/org/rocksdb/TransactionOptions.java - src/main/java/org/rocksdb/TtlDB.java - src/main/java/org/rocksdb/TxnDBWritePolicy.java - src/main/java/org/rocksdb/VectorMemTableConfig.java - src/main/java/org/rocksdb/WALRecoveryMode.java - src/main/java/org/rocksdb/WBWIRocksIterator.java - src/main/java/org/rocksdb/WriteBatchInterface.java - src/main/java/org/rocksdb/WriteBatch.java - src/main/java/org/rocksdb/WriteBatchWithIndex.java - src/main/java/org/rocksdb/WriteOptions.java - src/main/java/org/rocksdb/WriteBufferManager.java - src/main/java/org/rocksdb/util/BytewiseComparator.java - src/main/java/org/rocksdb/util/DirectBytewiseComparator.java - src/main/java/org/rocksdb/util/Environment.java - src/main/java/org/rocksdb/util/ReverseBytewiseComparator.java - src/main/java/org/rocksdb/util/SizeUnit.java - src/test/java/org/rocksdb/BackupEngineTest.java - src/test/java/org/rocksdb/IngestExternalFileOptionsTest.java - src/test/java/org/rocksdb/NativeComparatorWrapperTest.java - src/test/java/org/rocksdb/PlatformRandomHelper.java - src/test/java/org/rocksdb/RocksDBExceptionTest.java - src/test/java/org/rocksdb/RocksMemoryResource.java - src/test/java/org/rocksdb/SnapshotTest.java - src/main/java/org/rocksdb/UInt64AddOperator.java - src/test/java/org/rocksdb/WriteBatchTest.java - src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java - src/test/java/org/rocksdb/util/WriteBatchGetter.java + src/main/java/org/terarkdb/AbstractCompactionFilterFactory.java + src/main/java/org/terarkdb/AbstractCompactionFilter.java + src/main/java/org/terarkdb/AbstractComparator.java + src/main/java/org/terarkdb/AbstractImmutableNativeReference.java + src/main/java/org/terarkdb/AbstractNativeReference.java + src/main/java/org/terarkdb/AbstractRocksIterator.java + src/main/java/org/terarkdb/AbstractSlice.java + src/main/java/org/terarkdb/AbstractTransactionNotifier.java + src/main/java/org/terarkdb/AbstractWriteBatch.java + src/main/java/org/terarkdb/AccessHint.java + src/main/java/org/terarkdb/AdvancedColumnFamilyOptionsInterface.java + src/main/java/org/terarkdb/AdvancedMutableColumnFamilyOptionsInterface.java + src/main/java/org/terarkdb/BackupableDBOptions.java + src/main/java/org/terarkdb/BackupEngine.java + src/main/java/org/terarkdb/BackupInfo.java + src/main/java/org/terarkdb/BlockBasedTableConfig.java + src/main/java/org/terarkdb/BloomFilter.java + src/main/java/org/terarkdb/BuiltinComparator.java + src/main/java/org/terarkdb/Cache.java + src/main/java/org/terarkdb/CassandraCompactionFilter.java + src/main/java/org/terarkdb/CassandraValueMergeOperator.java + src/main/java/org/terarkdb/Checkpoint.java + src/main/java/org/terarkdb/ChecksumType.java + src/main/java/org/terarkdb/ClockCache.java + src/main/java/org/terarkdb/ColumnFamilyDescriptor.java + src/main/java/org/terarkdb/ColumnFamilyHandle.java + src/main/java/org/terarkdb/ColumnFamilyOptionsInterface.java + src/main/java/org/terarkdb/ColumnFamilyOptions.java + src/main/java/org/terarkdb/CompactionOptionsUniversal.java + src/main/java/org/terarkdb/CompactionPriority.java + src/main/java/org/terarkdb/CompactRangeOptions.java + src/main/java/org/terarkdb/CompactionStopStyle.java + src/main/java/org/terarkdb/CompactionStyle.java + src/main/java/org/terarkdb/Comparator.java + src/main/java/org/terarkdb/ComparatorOptions.java + src/main/java/org/terarkdb/ComparatorType.java + src/main/java/org/terarkdb/CompressionOptions.java + src/main/java/org/terarkdb/CompressionType.java + src/main/java/org/terarkdb/DBOptionsInterface.java + src/main/java/org/terarkdb/DBOptions.java + src/main/java/org/terarkdb/DbPath.java + src/main/java/org/terarkdb/DirectComparator.java + src/main/java/org/terarkdb/DirectSlice.java + src/main/java/org/terarkdb/EncodingType.java + src/main/java/org/terarkdb/Env.java + src/main/java/org/terarkdb/EnvOptions.java + src/main/java/org/terarkdb/Experimental.java + src/main/java/org/terarkdb/Filter.java + src/main/java/org/terarkdb/FlinkCompactionFilter.java + src/main/java/org/terarkdb/FlushOptions.java + src/main/java/org/terarkdb/HashLinkedListMemTableConfig.java + src/main/java/org/terarkdb/HashSkipListMemTableConfig.java + src/main/java/org/terarkdb/HistogramData.java + src/main/java/org/terarkdb/HistogramType.java + src/main/java/org/terarkdb/IndexType.java + src/main/java/org/terarkdb/InfoLogLevel.java + src/main/java/org/terarkdb/IngestExternalFileOptions.java + src/main/java/org/terarkdb/Logger.java + src/main/java/org/terarkdb/LRUCache.java + src/main/java/org/terarkdb/MemoryUsageType.java + src/main/java/org/terarkdb/MemoryUtil.java + src/main/java/org/terarkdb/MemTableConfig.java + src/main/java/org/terarkdb/MergeOperator.java + src/main/java/org/terarkdb/MutableColumnFamilyOptionsInterface.java + src/main/java/org/terarkdb/MutableColumnFamilyOptions.java + src/main/java/org/terarkdb/NativeComparatorWrapper.java + src/main/java/org/terarkdb/NativeLibraryLoader.java + src/main/java/org/terarkdb/OptimisticTransactionDB.java + src/main/java/org/terarkdb/OptimisticTransactionOptions.java + src/main/java/org/terarkdb/Options.java + src/main/java/org/terarkdb/OptionsUtil.java + src/main/java/org/terarkdb/PlainTableConfig.java + src/main/java/org/terarkdb/RateLimiter.java + src/main/java/org/terarkdb/RateLimiterMode.java + src/main/java/org/terarkdb/ReadOptions.java + src/main/java/org/terarkdb/ReadTier.java + src/main/java/org/terarkdb/RemoveEmptyValueCompactionFilter.java + src/main/java/org/terarkdb/RestoreOptions.java + src/main/java/org/terarkdb/RocksCallbackObject.java + src/main/java/org/terarkdb/RocksDBException.java + src/main/java/org/terarkdb/RocksDB.java + src/main/java/org/terarkdb/RocksEnv.java + src/main/java/org/terarkdb/RocksIteratorInterface.java + src/main/java/org/terarkdb/RocksIterator.java + src/main/java/org/terarkdb/RocksMemEnv.java + src/main/java/org/terarkdb/RocksMutableObject.java + src/main/java/org/terarkdb/RocksObject.java + src/main/java/org/terarkdb/SkipListMemTableConfig.java + src/main/java/org/terarkdb/Slice.java + src/main/java/org/terarkdb/Snapshot.java + src/main/java/org/terarkdb/SstFileManager.java + src/main/java/org/terarkdb/SstFileWriter.java + src/main/java/org/terarkdb/StatisticsCollectorCallback.java + src/main/java/org/terarkdb/StatisticsCollector.java + src/main/java/org/terarkdb/Statistics.java + src/main/java/org/terarkdb/StatsCollectorInput.java + src/main/java/org/terarkdb/StatsLevel.java + src/main/java/org/terarkdb/Status.java + src/main/java/org/terarkdb/StringAppendOperator.java + src/main/java/org/terarkdb/StringAppendOperatorWithVariableDelimitor.java + src/main/java/org/terarkdb/TableFormatConfig.java + src/main/java/org/terarkdb/TickerType.java + src/main/java/org/terarkdb/TransactionalDB.java + src/main/java/org/terarkdb/TransactionalOptions.java + src/main/java/org/terarkdb/TransactionDB.java + src/main/java/org/terarkdb/TransactionDBOptions.java + src/main/java/org/terarkdb/Transaction.java + src/main/java/org/terarkdb/TransactionLogIterator.java + src/main/java/org/terarkdb/TransactionOptions.java + src/main/java/org/terarkdb/TtlDB.java + src/main/java/org/terarkdb/TxnDBWritePolicy.java + src/main/java/org/terarkdb/VectorMemTableConfig.java + src/main/java/org/terarkdb/WALRecoveryMode.java + src/main/java/org/terarkdb/WBWIRocksIterator.java + src/main/java/org/terarkdb/WriteBatchInterface.java + src/main/java/org/terarkdb/WriteBatch.java + src/main/java/org/terarkdb/WriteBatchWithIndex.java + src/main/java/org/terarkdb/WriteOptions.java + src/main/java/org/terarkdb/WriteBufferManager.java + src/main/java/org/terarkdb/util/BytewiseComparator.java + src/main/java/org/terarkdb/util/DirectBytewiseComparator.java + src/main/java/org/terarkdb/util/Environment.java + src/main/java/org/terarkdb/util/ReverseBytewiseComparator.java + src/main/java/org/terarkdb/util/SizeUnit.java + src/test/java/org/terarkdb/BackupEngineTest.java + src/test/java/org/terarkdb/IngestExternalFileOptionsTest.java + src/test/java/org/terarkdb/NativeComparatorWrapperTest.java + src/test/java/org/terarkdb/PlatformRandomHelper.java + src/test/java/org/terarkdb/RocksDBExceptionTest.java + src/test/java/org/terarkdb/RocksMemoryResource.java + src/test/java/org/terarkdb/SnapshotTest.java + src/main/java/org/terarkdb/UInt64AddOperator.java + src/test/java/org/terarkdb/WriteBatchTest.java + src/test/java/org/terarkdb/util/CapturingWriteBatchHandler.java + src/test/java/org/terarkdb/util/WriteBatchGetter.java INCLUDE_JARS ${JAVA_TESTCLASSPATH} ) diff --git a/java/HISTORY-JAVA.md b/java/HISTORY-JAVA.md index f2c554e34d..2806083541 100644 --- a/java/HISTORY-JAVA.md +++ b/java/HISTORY-JAVA.md @@ -46,7 +46,7 @@ * Added RocksObject --- the base class of all RocksDB classes which holds some RocksDB resources in the C++ side. * Use environmental variable JAVA_HOME in Makefile for RocksJava ### Public API changes -* Renamed org.rocksdb.Iterator to org.rocksdb.RocksIterator to avoid potential confliction with Java built-in Iterator. +* Renamed org.terarkdb.Iterator to org.terarkdb.RocksIterator to avoid potential confliction with Java built-in Iterator. ## By 04/30/2014 ### New Features @@ -79,7 +79,7 @@ ### Internal Framework Improvement * Avoid a potential byte-array-copy between c++ and Java in RocksDB.get. -* Added SizeUnit in org.rocksdb.util to store consts like KB and GB. +* Added SizeUnit in org.terarkdb.util to store consts like KB and GB. ### 03/28/2014 * RocksJava project started. diff --git a/java/Makefile b/java/Makefile index 2ae95fcac8..ebb67ed12f 100644 --- a/java/Makefile +++ b/java/Makefile @@ -1,80 +1,80 @@ -NATIVE_JAVA_CLASSES = org.rocksdb.AbstractCompactionFilter\ - org.rocksdb.AbstractCompactionFilterFactory\ - org.rocksdb.AbstractSlice\ - org.rocksdb.AbstractTransactionNotifier\ - org.rocksdb.BackupEngine\ - org.rocksdb.BackupableDBOptions\ - org.rocksdb.BlockBasedTableConfig\ - org.rocksdb.BloomFilter\ - org.rocksdb.Checkpoint\ - org.rocksdb.ClockCache\ - org.rocksdb.CassandraCompactionFilter\ - org.rocksdb.CassandraValueMergeOperator\ - org.rocksdb.ColumnFamilyHandle\ - org.rocksdb.ColumnFamilyOptions\ - org.rocksdb.CompactionOptionsUniversal\ - org.rocksdb.CompactRangeOptions\ - org.rocksdb.Comparator\ - org.rocksdb.ComparatorOptions\ - org.rocksdb.CompressionOptions\ - org.rocksdb.DBOptions\ - org.rocksdb.DirectComparator\ - org.rocksdb.DirectSlice\ - org.rocksdb.Env\ - org.rocksdb.EnvOptions\ - org.rocksdb.FlinkCompactionFilter\ - org.rocksdb.FlushOptions\ - org.rocksdb.Filter\ - org.rocksdb.IngestExternalFileOptions\ - org.rocksdb.HashLinkedListMemTableConfig\ - org.rocksdb.HashSkipListMemTableConfig\ - org.rocksdb.Logger\ - org.rocksdb.LRUCache\ - org.rocksdb.MemoryUsageType\ - org.rocksdb.MemoryUtil\ - org.rocksdb.MergeOperator\ - org.rocksdb.NativeComparatorWrapper\ - org.rocksdb.OptimisticTransactionDB\ - org.rocksdb.OptimisticTransactionOptions\ - org.rocksdb.Options\ - org.rocksdb.OptionsUtil\ - org.rocksdb.PlainTableConfig\ - org.rocksdb.RateLimiter\ - org.rocksdb.ReadOptions\ - org.rocksdb.RemoveEmptyValueCompactionFilter\ - org.rocksdb.RestoreOptions\ - org.rocksdb.RocksCallbackObject\ - org.rocksdb.RocksDB\ - org.rocksdb.RocksEnv\ - org.rocksdb.RocksIterator\ - org.rocksdb.RocksMemEnv\ - org.rocksdb.SkipListMemTableConfig\ - org.rocksdb.Slice\ - org.rocksdb.SstFileManager\ - org.rocksdb.SstFileWriter\ - org.rocksdb.Statistics\ - org.rocksdb.Transaction\ - org.rocksdb.TransactionDB\ - org.rocksdb.TransactionDBOptions\ - org.rocksdb.TransactionOptions\ - org.rocksdb.TransactionLogIterator\ - org.rocksdb.TtlDB\ - org.rocksdb.VectorMemTableConfig\ - org.rocksdb.Snapshot\ - org.rocksdb.StringAppendOperator\ - org.rocksdb.StringAppendOperatorWithVariableDelimitor\ - org.rocksdb.UInt64AddOperator\ - org.rocksdb.WriteBatch\ - org.rocksdb.WriteBatch.Handler\ - org.rocksdb.WriteOptions\ - org.rocksdb.WriteBatchWithIndex\ - org.rocksdb.WriteBufferManager\ - org.rocksdb.WBWIRocksIterator +NATIVE_JAVA_CLASSES = org.terarkdb.AbstractCompactionFilter\ + org.terarkdb.AbstractCompactionFilterFactory\ + org.terarkdb.AbstractSlice\ + org.terarkdb.AbstractTransactionNotifier\ + org.terarkdb.BackupEngine\ + org.terarkdb.BackupableDBOptions\ + org.terarkdb.BlockBasedTableConfig\ + org.terarkdb.BloomFilter\ + org.terarkdb.Checkpoint\ + org.terarkdb.ClockCache\ + org.terarkdb.CassandraCompactionFilter\ + org.terarkdb.CassandraValueMergeOperator\ + org.terarkdb.ColumnFamilyHandle\ + org.terarkdb.ColumnFamilyOptions\ + org.terarkdb.CompactionOptionsUniversal\ + org.terarkdb.CompactRangeOptions\ + org.terarkdb.Comparator\ + org.terarkdb.ComparatorOptions\ + org.terarkdb.CompressionOptions\ + org.terarkdb.DBOptions\ + org.terarkdb.DirectComparator\ + org.terarkdb.DirectSlice\ + org.terarkdb.Env\ + org.terarkdb.EnvOptions\ + org.terarkdb.FlinkCompactionFilter\ + org.terarkdb.FlushOptions\ + org.terarkdb.Filter\ + org.terarkdb.IngestExternalFileOptions\ + org.terarkdb.HashLinkedListMemTableConfig\ + org.terarkdb.HashSkipListMemTableConfig\ + org.terarkdb.Logger\ + org.terarkdb.LRUCache\ + org.terarkdb.MemoryUsageType\ + org.terarkdb.MemoryUtil\ + org.terarkdb.MergeOperator\ + org.terarkdb.NativeComparatorWrapper\ + org.terarkdb.OptimisticTransactionDB\ + org.terarkdb.OptimisticTransactionOptions\ + org.terarkdb.Options\ + org.terarkdb.OptionsUtil\ + org.terarkdb.PlainTableConfig\ + org.terarkdb.RateLimiter\ + org.terarkdb.ReadOptions\ + org.terarkdb.RemoveEmptyValueCompactionFilter\ + org.terarkdb.RestoreOptions\ + org.terarkdb.RocksCallbackObject\ + org.terarkdb.RocksDB\ + org.terarkdb.RocksEnv\ + org.terarkdb.RocksIterator\ + org.terarkdb.RocksMemEnv\ + org.terarkdb.SkipListMemTableConfig\ + org.terarkdb.Slice\ + org.terarkdb.SstFileManager\ + org.terarkdb.SstFileWriter\ + org.terarkdb.Statistics\ + org.terarkdb.Transaction\ + org.terarkdb.TransactionDB\ + org.terarkdb.TransactionDBOptions\ + org.terarkdb.TransactionOptions\ + org.terarkdb.TransactionLogIterator\ + org.terarkdb.TtlDB\ + org.terarkdb.VectorMemTableConfig\ + org.terarkdb.Snapshot\ + org.terarkdb.StringAppendOperator\ + org.terarkdb.StringAppendOperatorWithVariableDelimitor\ + org.terarkdb.UInt64AddOperator\ + org.terarkdb.WriteBatch\ + org.terarkdb.WriteBatch.Handler\ + org.terarkdb.WriteOptions\ + org.terarkdb.WriteBatchWithIndex\ + org.terarkdb.WriteBufferManager\ + org.terarkdb.WBWIRocksIterator -NATIVE_JAVA_TEST_CLASSES = org.rocksdb.RocksDBExceptionTest\ - org.rocksdb.NativeComparatorWrapperTest.NativeStringComparatorWrapper\ - org.rocksdb.WriteBatchTest\ - org.rocksdb.WriteBatchTestInternalHelper +NATIVE_JAVA_TEST_CLASSES = org.terarkdb.RocksDBExceptionTest\ + org.terarkdb.NativeComparatorWrapperTest.NativeStringComparatorWrapper\ + org.terarkdb.WriteBatchTest\ + org.terarkdb.WriteBatchTestInternalHelper ROCKSDB_MAJOR = $(shell egrep "ROCKSDB_MAJOR.[0-9]" ../include/rocksdb/version.h | cut -d ' ' -f 3) ROCKSDB_MINOR = $(shell egrep "ROCKSDB_MINOR.[0-9]" ../include/rocksdb/version.h | cut -d ' ' -f 3) @@ -87,74 +87,74 @@ ifeq ($(PLATFORM), OS_MACOSX) ROCKSDB_JAR = rocksdbjni-$(ROCKSDB_MAJOR).$(ROCKSDB_MINOR).$(ROCKSDB_PATCH)-osx.jar endif -JAVA_TESTS = org.rocksdb.BackupableDBOptionsTest\ - org.rocksdb.BackupEngineTest\ - org.rocksdb.BlockBasedTableConfigTest\ - org.rocksdb.util.BytewiseComparatorTest\ - org.rocksdb.CheckPointTest\ - org.rocksdb.ClockCacheTest\ - org.rocksdb.ColumnFamilyOptionsTest\ - org.rocksdb.ColumnFamilyTest\ - org.rocksdb.CompactionFilterFactoryTest\ - org.rocksdb.CompactionOptionsUniversalTest\ - org.rocksdb.CompactionPriorityTest\ - org.rocksdb.CompactionStopStyleTest\ - org.rocksdb.ComparatorOptionsTest\ - org.rocksdb.ComparatorTest\ - org.rocksdb.CompressionOptionsTest\ - org.rocksdb.CompressionTypesTest\ - org.rocksdb.DBOptionsTest\ - org.rocksdb.DirectComparatorTest\ - org.rocksdb.DirectSliceTest\ - org.rocksdb.EnvOptionsTest\ - org.rocksdb.IngestExternalFileOptionsTest\ - org.rocksdb.util.EnvironmentTest\ - org.rocksdb.FilterTest\ - org.rocksdb.FlushTest\ - org.rocksdb.InfoLogLevelTest\ - org.rocksdb.KeyMayExistTest\ - org.rocksdb.LoggerTest\ - org.rocksdb.LRUCacheTest\ - org.rocksdb.MemoryUtilTest\ - org.rocksdb.MemTableTest\ - org.rocksdb.MergeTest\ - org.rocksdb.MixedOptionsTest\ - org.rocksdb.MutableColumnFamilyOptionsTest\ - org.rocksdb.NativeComparatorWrapperTest\ - org.rocksdb.NativeLibraryLoaderTest\ - org.rocksdb.OptimisticTransactionTest\ - org.rocksdb.OptimisticTransactionDBTest\ - org.rocksdb.OptimisticTransactionOptionsTest\ - org.rocksdb.OptionsUtilTest\ - org.rocksdb.OptionsTest\ - org.rocksdb.PlainTableConfigTest\ - org.rocksdb.RateLimiterTest\ - org.rocksdb.ReadOnlyTest\ - org.rocksdb.ReadOptionsTest\ - org.rocksdb.RocksDBTest\ - org.rocksdb.RocksDBExceptionTest\ - org.rocksdb.RocksEnvTest\ - org.rocksdb.RocksIteratorTest\ - org.rocksdb.RocksMemEnvTest\ - org.rocksdb.util.SizeUnitTest\ - org.rocksdb.SliceTest\ - org.rocksdb.SnapshotTest\ - org.rocksdb.SstFileManagerTest\ - org.rocksdb.SstFileWriterTest\ - org.rocksdb.TransactionTest\ - org.rocksdb.TransactionDBTest\ - org.rocksdb.TransactionOptionsTest\ - org.rocksdb.TransactionDBOptionsTest\ - org.rocksdb.TransactionLogIteratorTest\ - org.rocksdb.TtlDBTest\ - org.rocksdb.StatisticsTest\ - org.rocksdb.StatisticsCollectorTest\ - org.rocksdb.WALRecoveryModeTest\ - org.rocksdb.WriteBatchHandlerTest\ - org.rocksdb.WriteBatchTest\ - org.rocksdb.WriteBatchThreadedTest\ - org.rocksdb.WriteOptionsTest\ - org.rocksdb.WriteBatchWithIndexTest +JAVA_TESTS = org.terarkdb.BackupableDBOptionsTest\ + org.terarkdb.BackupEngineTest\ + org.terarkdb.BlockBasedTableConfigTest\ + org.terarkdb.util.BytewiseComparatorTest\ + org.terarkdb.CheckPointTest\ + org.terarkdb.ClockCacheTest\ + org.terarkdb.ColumnFamilyOptionsTest\ + org.terarkdb.ColumnFamilyTest\ + org.terarkdb.CompactionFilterFactoryTest\ + org.terarkdb.CompactionOptionsUniversalTest\ + org.terarkdb.CompactionPriorityTest\ + org.terarkdb.CompactionStopStyleTest\ + org.terarkdb.ComparatorOptionsTest\ + org.terarkdb.ComparatorTest\ + org.terarkdb.CompressionOptionsTest\ + org.terarkdb.CompressionTypesTest\ + org.terarkdb.DBOptionsTest\ + org.terarkdb.DirectComparatorTest\ + org.terarkdb.DirectSliceTest\ + org.terarkdb.EnvOptionsTest\ + org.terarkdb.IngestExternalFileOptionsTest\ + org.terarkdb.util.EnvironmentTest\ + org.terarkdb.FilterTest\ + org.terarkdb.FlushTest\ + org.terarkdb.InfoLogLevelTest\ + org.terarkdb.KeyMayExistTest\ + org.terarkdb.LoggerTest\ + org.terarkdb.LRUCacheTest\ + org.terarkdb.MemoryUtilTest\ + org.terarkdb.MemTableTest\ + org.terarkdb.MergeTest\ + org.terarkdb.MixedOptionsTest\ + org.terarkdb.MutableColumnFamilyOptionsTest\ + org.terarkdb.NativeComparatorWrapperTest\ + org.terarkdb.NativeLibraryLoaderTest\ + org.terarkdb.OptimisticTransactionTest\ + org.terarkdb.OptimisticTransactionDBTest\ + org.terarkdb.OptimisticTransactionOptionsTest\ + org.terarkdb.OptionsUtilTest\ + org.terarkdb.OptionsTest\ + org.terarkdb.PlainTableConfigTest\ + org.terarkdb.RateLimiterTest\ + org.terarkdb.ReadOnlyTest\ + org.terarkdb.ReadOptionsTest\ + org.terarkdb.RocksDBTest\ + org.terarkdb.RocksDBExceptionTest\ + org.terarkdb.RocksEnvTest\ + org.terarkdb.RocksIteratorTest\ + org.terarkdb.RocksMemEnvTest\ + org.terarkdb.util.SizeUnitTest\ + org.terarkdb.SliceTest\ + org.terarkdb.SnapshotTest\ + org.terarkdb.SstFileManagerTest\ + org.terarkdb.SstFileWriterTest\ + org.terarkdb.TransactionTest\ + org.terarkdb.TransactionDBTest\ + org.terarkdb.TransactionOptionsTest\ + org.terarkdb.TransactionDBOptionsTest\ + org.terarkdb.TransactionLogIteratorTest\ + org.terarkdb.TtlDBTest\ + org.terarkdb.StatisticsTest\ + org.terarkdb.StatisticsCollectorTest\ + org.terarkdb.WALRecoveryModeTest\ + org.terarkdb.WriteBatchHandlerTest\ + org.terarkdb.WriteBatchTest\ + org.terarkdb.WriteBatchThreadedTest\ + org.terarkdb.WriteOptionsTest\ + org.terarkdb.WriteBatchWithIndexTest MAIN_SRC = src/main/java TEST_SRC = src/test/java @@ -214,8 +214,8 @@ javalib: java java_test javadocs java: $(AM_V_GEN)mkdir -p $(MAIN_CLASSES) $(AM_V_at)javac $(JAVAC_ARGS) -d $(MAIN_CLASSES)\ - $(MAIN_SRC)/org/rocksdb/util/*.java\ - $(MAIN_SRC)/org/rocksdb/*.java + $(MAIN_SRC)/org/terarkdb/util/*.java\ + $(MAIN_SRC)/org/terarkdb/*.java $(AM_V_at)@cp ../HISTORY.md ./HISTORY-CPP.md $(AM_V_at)@rm -f ./HISTORY-CPP.md $(AM_V_at)javah -cp $(MAIN_CLASSES) -d $(NATIVE_INCLUDE) -jni $(NATIVE_JAVA_CLASSES) @@ -253,24 +253,24 @@ optimistic_transaction_sample: java resolve_test_deps: test -d "$(JAVA_TEST_LIBDIR)" || mkdir -p "$(JAVA_TEST_LIBDIR)" test -s "$(JAVA_JUNIT_JAR)" || cp $(MVN_LOCAL)/junit/junit/4.12/junit-4.12.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o $(JAVA_JUNIT_JAR) $(SEARCH_REPO_URL)junit/junit/4.12/junit-4.12.jar - test -s "$(JAVA_HAMCR_JAR)" || cp $(MVN_LOCAL)/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o $(JAVA_HAMCR_JAR) $(SEARCH_REPO_URL)org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar - test -s "$(JAVA_MOCKITO_JAR)" || cp $(MVN_LOCAL)/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_MOCKITO_JAR)" $(SEARCH_REPO_URL)org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar + test -s "$(JAVA_HAMCR_JAR)" || cp $(MVN_LOCAL)/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o $(JAVA_HAMCR_JAR) $(SEARCH_REPO_URL)/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar + test -s "$(JAVA_MOCKITO_JAR)" || cp $(MVN_LOCAL)/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_MOCKITO_JAR)" $(SEARCH_REPO_URL)/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar test -s "$(JAVA_CGLIB_JAR)" || cp $(MVN_LOCAL)/cglib/cglib/2.2.2/cglib-2.2.2.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_CGLIB_JAR)" $(SEARCH_REPO_URL)cglib/cglib/2.2.2/cglib-2.2.2.jar - test -s "$(JAVA_ASSERTJ_JAR)" || cp $(MVN_LOCAL)/org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_ASSERTJ_JAR)" $(CENTRAL_REPO_URL)org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar + test -s "$(JAVA_ASSERTJ_JAR)" || cp $(MVN_LOCAL)/org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_ASSERTJ_JAR)" $(CENTRAL_REPO_URL)/org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar java_test: java resolve_test_deps $(AM_V_GEN)mkdir -p $(TEST_CLASSES) $(AM_V_at)javac $(JAVAC_ARGS) -cp $(MAIN_CLASSES):$(JAVA_TESTCLASSPATH) -d $(TEST_CLASSES)\ - $(TEST_SRC)/org/rocksdb/test/*.java\ - $(TEST_SRC)/org/rocksdb/util/*.java\ - $(TEST_SRC)/org/rocksdb/*.java + $(TEST_SRC)/org/terarkdb/test/*.java\ + $(TEST_SRC)/org/terarkdb/util/*.java\ + $(TEST_SRC)/org/terarkdb/*.java $(AM_V_at)javah -cp $(MAIN_CLASSES):$(TEST_CLASSES) -d $(NATIVE_INCLUDE) -jni $(NATIVE_JAVA_TEST_CLASSES) test: java java_test run_test run_test: - java $(JAVA_ARGS) -Djava.library.path=target -cp "$(MAIN_CLASSES):$(TEST_CLASSES):$(JAVA_TESTCLASSPATH):target/*" org.rocksdb.test.RocksJunitRunner $(JAVA_TESTS) + java $(JAVA_ARGS) -Djava.library.path=target -cp "$(MAIN_CLASSES):$(TEST_CLASSES):$(JAVA_TESTCLASSPATH):target/*" org.terarkdb.test.RocksJunitRunner $(JAVA_TESTS) db_bench: java $(AM_V_GEN)mkdir -p $(BENCHMARK_MAIN_CLASSES) - $(AM_V_at)javac $(JAVAC_ARGS) -cp $(MAIN_CLASSES) -d $(BENCHMARK_MAIN_CLASSES) $(BENCHMARK_MAIN_SRC)/org/rocksdb/benchmark/*.java + $(AM_V_at)javac $(JAVAC_ARGS) -cp $(MAIN_CLASSES) -d $(BENCHMARK_MAIN_CLASSES) $(BENCHMARK_MAIN_SRC)/org/terarkdb/benchmark/*.java diff --git a/java/RocksDBJava.java b/java/RocksDBJava.java index 0f58d4ad3a..18e2f9fa13 100644 --- a/java/RocksDBJava.java +++ b/java/RocksDBJava.java @@ -1,6 +1,6 @@ -import org.rocksdb.RocksDB; -import org.rocksdb.*; -import org.rocksdb.Options; +import org.terarkdb.RocksDB; +import org.terarkdb.*; +import org.terarkdb.Options; public class RocksDBJava { public static void main(String[] args){ diff --git a/java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java b/java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java index 4a2a2bbd7a..f40f752c59 100644 --- a/java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java +++ b/java/benchmark/src/main/java/org/rocksdb/benchmark/DbBenchmark.java @@ -19,7 +19,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.rocksdb.benchmark; +package org.terarkdb.benchmark; import java.io.IOException; import java.lang.Runnable; @@ -43,9 +43,9 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; -import org.rocksdb.*; -import org.rocksdb.RocksMemEnv; -import org.rocksdb.util.SizeUnit; +import org.terarkdb.*; +import org.terarkdb.RocksMemEnv; +import org.terarkdb.util.SizeUnit; class Stats { int id_; diff --git a/java/jdb_bench.sh b/java/jdb_bench.sh index 0a07fa8e2f..1e8732a612 100755 --- a/java/jdb_bench.sh +++ b/java/jdb_bench.sh @@ -9,4 +9,4 @@ ROCKS_JAR=`find target -name rocksdbjni*.jar` echo "Running benchmark in $PLATFORM-Bit mode." # shellcheck disable=SC2068 -java -server -d$PLATFORM -XX:NewSize=4m -XX:+AggressiveOpts -Djava.library.path=target -cp "${ROCKS_JAR}:benchmark/target/classes" org.rocksdb.benchmark.DbBenchmark $@ +java -server -d$PLATFORM -XX:NewSize=4m -XX:+AggressiveOpts -Djava.library.path=target -cp "${ROCKS_JAR}:benchmark/target/classes" org.terarkdb.benchmark.DbBenchmark $@ diff --git a/java/pom.xml b/java/pom.xml new file mode 100644 index 0000000000..3bcbbee3a6 --- /dev/null +++ b/java/pom.xml @@ -0,0 +1,173 @@ + + + 4.0.0 + + com.bytedance + fterarkdbjni + 5.18.3-bytedance-terark-1.0-SNAPSHOT + + TerarkDB JNI + RocksDB fat jar with modifications specific for Apache Flink that contains .so files for linux32 and linux64 (glibc and musl-libc), jnilib files + for Mac OSX, and a .dll for Windows x64. + + https://rocksdb.org + 2012 + + + + Apache License 2.0 + http://www.apache.org/licenses/LICENSE-2.0.html + repo + + + + + scm:git:https://github.com/data-artisans/frocksdb.git + scm:git:https://github.com/data-artisans/frocksdb.git + scm:git:https://github.com/data-artisans/frocksdb.git + + + + Facebook + https://www.facebook.com + + + + + Facebook + help@facebook.com + America/New_York + + architect + + + + + + + rocksdb - Google Groups + rocksdb-subscribe@googlegroups.com + rocksdb-unsubscribe@googlegroups.com + rocksdb@googlegroups.com + https://groups.google.com/forum/#!forum/rocksdb + + + + + 1.7 + 1.7 + UTF-8 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.2 + + ${project.build.source} + ${project.build.target} + ${project.build.sourceEncoding} + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.18.1 + + ${argLine} -ea -Xcheck:jni -Djava.library.path=${project.build.directory} + false + false + + ${project.build.directory}/* + + + + + org.jacoco + jacoco-maven-plugin + 0.7.2.201409121644 + + + + prepare-agent + + + + report + prepare-package + + report + + + + + + org.codehaus.gmaven + groovy-maven-plugin + 2.0 + + + process-classes + + execute + + + + Xenu + + + String fileContents = new File(project.basedir.absolutePath + '/../include/rocksdb/version.h').getText('UTF-8') + matcher = (fileContents =~ /(?s).*ROCKSDB_MAJOR ([0-9]+).*?/) + String major_version = matcher.getAt(0).getAt(1) + matcher = (fileContents =~ /(?s).*ROCKSDB_MINOR ([0-9]+).*?/) + String minor_version = matcher.getAt(0).getAt(1) + matcher = (fileContents =~ /(?s).*ROCKSDB_PATCH ([0-9]+).*?/) + String patch_version = matcher.getAt(0).getAt(1) + String version = String.format('%s.%s.%s', major_version, minor_version, patch_version) + // Set version to be used in pom.properties + project.version = version + // Set version to be set as jar name + project.build.finalName = project.artifactId + "-" + version + + + + + + + + + + + junit + junit + 4.13.1 + test + + + org.hamcrest + hamcrest + 2.2 + test + + + cglib + cglib + 3.3.0 + test + + + org.assertj + assertj-core + 2.9.0 + test + + + org.mockito + mockito-all + 1.10.19 + test + + + diff --git a/java/rocksjni.pom b/java/rocksjni.pom index 94f07551c3..077dcb15a2 100644 --- a/java/rocksjni.pom +++ b/java/rocksjni.pom @@ -6,7 +6,7 @@ 4.0.0 RocksDB JNI http://rocksdb.org/ - org.rocksdb + org.terarkdb rocksdbjni - diff --git a/java/rocksjni/backupablejni.cc b/java/rocksjni/backupablejni.cc index 6cba901c40..ca6797c7fc 100644 --- a/java/rocksjni/backupablejni.cc +++ b/java/rocksjni/backupablejni.cc @@ -13,7 +13,7 @@ #include #include -#include "include/org_rocksdb_BackupableDBOptions.h" +#include "include/org_terarkdb_BackupableDBOptions.h" #include "rocksdb/utilities/backupable_db.h" #include "rocksjni/portal.h" @@ -21,11 +21,11 @@ // BackupDBOptions /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: newBackupableDBOptions * Signature: (Ljava/lang/String;)J */ -jlong Java_org_rocksdb_BackupableDBOptions_newBackupableDBOptions( +jlong Java_org_terarkdb_BackupableDBOptions_newBackupableDBOptions( JNIEnv* env, jclass /*jcls*/, jstring jpath) { const char* cpath = env->GetStringUTFChars(jpath, nullptr); if (cpath == nullptr) { @@ -38,11 +38,11 @@ jlong Java_org_rocksdb_BackupableDBOptions_newBackupableDBOptions( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: backupDir * Signature: (J)Ljava/lang/String; */ -jstring Java_org_rocksdb_BackupableDBOptions_backupDir(JNIEnv* env, +jstring Java_org_terarkdb_BackupableDBOptions_backupDir(JNIEnv* env, jobject /*jopt*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); @@ -50,11 +50,11 @@ jstring Java_org_rocksdb_BackupableDBOptions_backupDir(JNIEnv* env, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setBackupEnv * Signature: (JJ)V */ -void Java_org_rocksdb_BackupableDBOptions_setBackupEnv( +void Java_org_terarkdb_BackupableDBOptions_setBackupEnv( JNIEnv* /*env*/, jobject /*jopt*/, jlong jhandle, jlong jrocks_env_handle) { auto* bopt = reinterpret_cast(jhandle); auto* rocks_env = reinterpret_cast(jrocks_env_handle); @@ -62,11 +62,11 @@ void Java_org_rocksdb_BackupableDBOptions_setBackupEnv( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setShareTableFiles * Signature: (JZ)V */ -void Java_org_rocksdb_BackupableDBOptions_setShareTableFiles(JNIEnv* /*env*/, +void Java_org_terarkdb_BackupableDBOptions_setShareTableFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { @@ -75,11 +75,11 @@ void Java_org_rocksdb_BackupableDBOptions_setShareTableFiles(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: shareTableFiles * Signature: (J)Z */ -jboolean Java_org_rocksdb_BackupableDBOptions_shareTableFiles(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_BackupableDBOptions_shareTableFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); @@ -87,11 +87,11 @@ jboolean Java_org_rocksdb_BackupableDBOptions_shareTableFiles(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setInfoLog * Signature: (JJ)V */ -void Java_org_rocksdb_BackupableDBOptions_setInfoLog(JNIEnv* /*env*/, +void Java_org_terarkdb_BackupableDBOptions_setInfoLog(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong /*jlogger_handle*/) { @@ -102,11 +102,11 @@ void Java_org_rocksdb_BackupableDBOptions_setInfoLog(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setSync * Signature: (JZ)V */ -void Java_org_rocksdb_BackupableDBOptions_setSync(JNIEnv* /*env*/, +void Java_org_terarkdb_BackupableDBOptions_setSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { @@ -115,11 +115,11 @@ void Java_org_rocksdb_BackupableDBOptions_setSync(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: sync * Signature: (J)Z */ -jboolean Java_org_rocksdb_BackupableDBOptions_sync(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_BackupableDBOptions_sync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); @@ -127,11 +127,11 @@ jboolean Java_org_rocksdb_BackupableDBOptions_sync(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setDestroyOldData * Signature: (JZ)V */ -void Java_org_rocksdb_BackupableDBOptions_setDestroyOldData(JNIEnv* /*env*/, +void Java_org_terarkdb_BackupableDBOptions_setDestroyOldData(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { @@ -140,11 +140,11 @@ void Java_org_rocksdb_BackupableDBOptions_setDestroyOldData(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: destroyOldData * Signature: (J)Z */ -jboolean Java_org_rocksdb_BackupableDBOptions_destroyOldData(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_BackupableDBOptions_destroyOldData(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); @@ -152,11 +152,11 @@ jboolean Java_org_rocksdb_BackupableDBOptions_destroyOldData(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setBackupLogFiles * Signature: (JZ)V */ -void Java_org_rocksdb_BackupableDBOptions_setBackupLogFiles(JNIEnv* /*env*/, +void Java_org_terarkdb_BackupableDBOptions_setBackupLogFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { @@ -165,11 +165,11 @@ void Java_org_rocksdb_BackupableDBOptions_setBackupLogFiles(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: backupLogFiles * Signature: (J)Z */ -jboolean Java_org_rocksdb_BackupableDBOptions_backupLogFiles(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_BackupableDBOptions_backupLogFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); @@ -177,11 +177,11 @@ jboolean Java_org_rocksdb_BackupableDBOptions_backupLogFiles(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setBackupRateLimit * Signature: (JJ)V */ -void Java_org_rocksdb_BackupableDBOptions_setBackupRateLimit( +void Java_org_terarkdb_BackupableDBOptions_setBackupRateLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jbackup_rate_limit) { auto* bopt = reinterpret_cast(jhandle); @@ -189,11 +189,11 @@ void Java_org_rocksdb_BackupableDBOptions_setBackupRateLimit( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: backupRateLimit * Signature: (J)J */ -jlong Java_org_rocksdb_BackupableDBOptions_backupRateLimit(JNIEnv* /*env*/, +jlong Java_org_terarkdb_BackupableDBOptions_backupRateLimit(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); @@ -201,11 +201,11 @@ jlong Java_org_rocksdb_BackupableDBOptions_backupRateLimit(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setBackupRateLimiter * Signature: (JJ)V */ -void Java_org_rocksdb_BackupableDBOptions_setBackupRateLimiter( +void Java_org_terarkdb_BackupableDBOptions_setBackupRateLimiter( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrate_limiter_handle) { auto* bopt = reinterpret_cast(jhandle); @@ -216,11 +216,11 @@ void Java_org_rocksdb_BackupableDBOptions_setBackupRateLimiter( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setRestoreRateLimit * Signature: (JJ)V */ -void Java_org_rocksdb_BackupableDBOptions_setRestoreRateLimit( +void Java_org_terarkdb_BackupableDBOptions_setRestoreRateLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrestore_rate_limit) { auto* bopt = reinterpret_cast(jhandle); @@ -228,11 +228,11 @@ void Java_org_rocksdb_BackupableDBOptions_setRestoreRateLimit( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: restoreRateLimit * Signature: (J)J */ -jlong Java_org_rocksdb_BackupableDBOptions_restoreRateLimit(JNIEnv* /*env*/, +jlong Java_org_terarkdb_BackupableDBOptions_restoreRateLimit(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); @@ -240,11 +240,11 @@ jlong Java_org_rocksdb_BackupableDBOptions_restoreRateLimit(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setRestoreRateLimiter * Signature: (JJ)V */ -void Java_org_rocksdb_BackupableDBOptions_setRestoreRateLimiter( +void Java_org_terarkdb_BackupableDBOptions_setRestoreRateLimiter( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrate_limiter_handle) { auto* bopt = reinterpret_cast(jhandle); @@ -255,33 +255,33 @@ void Java_org_rocksdb_BackupableDBOptions_setRestoreRateLimiter( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setShareFilesWithChecksum * Signature: (JZ)V */ -void Java_org_rocksdb_BackupableDBOptions_setShareFilesWithChecksum( +void Java_org_terarkdb_BackupableDBOptions_setShareFilesWithChecksum( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { auto* bopt = reinterpret_cast(jhandle); bopt->share_files_with_checksum = flag; } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: shareFilesWithChecksum * Signature: (J)Z */ -jboolean Java_org_rocksdb_BackupableDBOptions_shareFilesWithChecksum( +jboolean Java_org_terarkdb_BackupableDBOptions_shareFilesWithChecksum( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); return bopt->share_files_with_checksum; } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setMaxBackgroundOperations * Signature: (JI)V */ -void Java_org_rocksdb_BackupableDBOptions_setMaxBackgroundOperations( +void Java_org_terarkdb_BackupableDBOptions_setMaxBackgroundOperations( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_background_operations) { auto* bopt = reinterpret_cast(jhandle); @@ -289,22 +289,22 @@ void Java_org_rocksdb_BackupableDBOptions_setMaxBackgroundOperations( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: maxBackgroundOperations * Signature: (J)I */ -jint Java_org_rocksdb_BackupableDBOptions_maxBackgroundOperations( +jint Java_org_terarkdb_BackupableDBOptions_maxBackgroundOperations( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); return static_cast(bopt->max_background_operations); } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: setCallbackTriggerIntervalSize * Signature: (JJ)V */ -void Java_org_rocksdb_BackupableDBOptions_setCallbackTriggerIntervalSize( +void Java_org_terarkdb_BackupableDBOptions_setCallbackTriggerIntervalSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcallback_trigger_interval_size) { auto* bopt = reinterpret_cast(jhandle); @@ -313,22 +313,22 @@ void Java_org_rocksdb_BackupableDBOptions_setCallbackTriggerIntervalSize( } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: callbackTriggerIntervalSize * Signature: (J)J */ -jlong Java_org_rocksdb_BackupableDBOptions_callbackTriggerIntervalSize( +jlong Java_org_terarkdb_BackupableDBOptions_callbackTriggerIntervalSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); return static_cast(bopt->callback_trigger_interval_size); } /* - * Class: org_rocksdb_BackupableDBOptions + * Class: org_terarkdb_BackupableDBOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_BackupableDBOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_BackupableDBOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jopt*/, jlong jhandle) { auto* bopt = reinterpret_cast(jhandle); diff --git a/java/rocksjni/backupenginejni.cc b/java/rocksjni/backupenginejni.cc index e176a364e3..29b89385d2 100644 --- a/java/rocksjni/backupenginejni.cc +++ b/java/rocksjni/backupenginejni.cc @@ -9,16 +9,16 @@ #include #include -#include "include/org_rocksdb_BackupEngine.h" +#include "include/org_terarkdb_BackupEngine.h" #include "rocksdb/utilities/backupable_db.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: open * Signature: (JJ)J */ -jlong Java_org_rocksdb_BackupEngine_open(JNIEnv* env, jclass /*jcls*/, +jlong Java_org_terarkdb_BackupEngine_open(JNIEnv* env, jclass /*jcls*/, jlong env_handle, jlong backupable_db_options_handle) { auto* rocks_env = reinterpret_cast(env_handle); @@ -37,11 +37,11 @@ jlong Java_org_rocksdb_BackupEngine_open(JNIEnv* env, jclass /*jcls*/, } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: createNewBackup * Signature: (JJZ)V */ -void Java_org_rocksdb_BackupEngine_createNewBackup( +void Java_org_terarkdb_BackupEngine_createNewBackup( JNIEnv* env, jobject /*jbe*/, jlong jbe_handle, jlong db_handle, jboolean jflush_before_backup) { auto* db = reinterpret_cast(db_handle); @@ -57,11 +57,11 @@ void Java_org_rocksdb_BackupEngine_createNewBackup( } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: createNewBackupWithMetadata * Signature: (JJLjava/lang/String;Z)V */ -void Java_org_rocksdb_BackupEngine_createNewBackupWithMetadata( +void Java_org_terarkdb_BackupEngine_createNewBackupWithMetadata( JNIEnv* env, jobject /*jbe*/, jlong jbe_handle, jlong db_handle, jstring japp_metadata, jboolean jflush_before_backup) { auto* db = reinterpret_cast(db_handle); @@ -87,11 +87,11 @@ void Java_org_rocksdb_BackupEngine_createNewBackupWithMetadata( } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: getBackupInfo * Signature: (J)Ljava/util/List; */ -jobject Java_org_rocksdb_BackupEngine_getBackupInfo(JNIEnv* env, +jobject Java_org_terarkdb_BackupEngine_getBackupInfo(JNIEnv* env, jobject /*jbe*/, jlong jbe_handle) { auto* backup_engine = reinterpret_cast(jbe_handle); @@ -101,11 +101,11 @@ jobject Java_org_rocksdb_BackupEngine_getBackupInfo(JNIEnv* env, } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: getCorruptedBackups * Signature: (J)[I */ -jintArray Java_org_rocksdb_BackupEngine_getCorruptedBackups(JNIEnv* env, +jintArray Java_org_terarkdb_BackupEngine_getCorruptedBackups(JNIEnv* env, jobject /*jbe*/, jlong jbe_handle) { auto* backup_engine = reinterpret_cast(jbe_handle); @@ -128,11 +128,11 @@ jintArray Java_org_rocksdb_BackupEngine_getCorruptedBackups(JNIEnv* env, } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: garbageCollect * Signature: (J)V */ -void Java_org_rocksdb_BackupEngine_garbageCollect(JNIEnv* env, jobject /*jbe*/, +void Java_org_terarkdb_BackupEngine_garbageCollect(JNIEnv* env, jobject /*jbe*/, jlong jbe_handle) { auto* backup_engine = reinterpret_cast(jbe_handle); auto status = backup_engine->GarbageCollect(); @@ -145,11 +145,11 @@ void Java_org_rocksdb_BackupEngine_garbageCollect(JNIEnv* env, jobject /*jbe*/, } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: purgeOldBackups * Signature: (JI)V */ -void Java_org_rocksdb_BackupEngine_purgeOldBackups(JNIEnv* env, jobject /*jbe*/, +void Java_org_terarkdb_BackupEngine_purgeOldBackups(JNIEnv* env, jobject /*jbe*/, jlong jbe_handle, jint jnum_backups_to_keep) { auto* backup_engine = reinterpret_cast(jbe_handle); @@ -164,11 +164,11 @@ void Java_org_rocksdb_BackupEngine_purgeOldBackups(JNIEnv* env, jobject /*jbe*/, } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: deleteBackup * Signature: (JI)V */ -void Java_org_rocksdb_BackupEngine_deleteBackup(JNIEnv* env, jobject /*jbe*/, +void Java_org_terarkdb_BackupEngine_deleteBackup(JNIEnv* env, jobject /*jbe*/, jlong jbe_handle, jint jbackup_id) { auto* backup_engine = reinterpret_cast(jbe_handle); @@ -183,11 +183,11 @@ void Java_org_rocksdb_BackupEngine_deleteBackup(JNIEnv* env, jobject /*jbe*/, } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: restoreDbFromBackup * Signature: (JILjava/lang/String;Ljava/lang/String;J)V */ -void Java_org_rocksdb_BackupEngine_restoreDbFromBackup( +void Java_org_terarkdb_BackupEngine_restoreDbFromBackup( JNIEnv* env, jobject /*jbe*/, jlong jbe_handle, jint jbackup_id, jstring jdb_dir, jstring jwal_dir, jlong jrestore_options_handle) { auto* backup_engine = reinterpret_cast(jbe_handle); @@ -219,11 +219,11 @@ void Java_org_rocksdb_BackupEngine_restoreDbFromBackup( } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: restoreDbFromLatestBackup * Signature: (JLjava/lang/String;Ljava/lang/String;J)V */ -void Java_org_rocksdb_BackupEngine_restoreDbFromLatestBackup( +void Java_org_terarkdb_BackupEngine_restoreDbFromLatestBackup( JNIEnv* env, jobject /*jbe*/, jlong jbe_handle, jstring jdb_dir, jstring jwal_dir, jlong jrestore_options_handle) { auto* backup_engine = reinterpret_cast(jbe_handle); @@ -254,11 +254,11 @@ void Java_org_rocksdb_BackupEngine_restoreDbFromLatestBackup( } /* - * Class: org_rocksdb_BackupEngine + * Class: org_terarkdb_BackupEngine * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_BackupEngine_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_BackupEngine_disposeInternal(JNIEnv* /*env*/, jobject /*jbe*/, jlong jbe_handle) { auto* be = reinterpret_cast(jbe_handle); diff --git a/java/rocksjni/cassandra_compactionfilterjni.cc b/java/rocksjni/cassandra_compactionfilterjni.cc index cc563e4d35..dc2bcd15e1 100644 --- a/java/rocksjni/cassandra_compactionfilterjni.cc +++ b/java/rocksjni/cassandra_compactionfilterjni.cc @@ -5,15 +5,15 @@ #include -#include "include/org_rocksdb_CassandraCompactionFilter.h" +#include "include/org_terarkdb_CassandraCompactionFilter.h" #include "utilities/cassandra/cassandra_compaction_filter.h" /* - * Class: org_rocksdb_CassandraCompactionFilter + * Class: org_terarkdb_CassandraCompactionFilter * Method: createNewCassandraCompactionFilter0 * Signature: (ZI)J */ -jlong Java_org_rocksdb_CassandraCompactionFilter_createNewCassandraCompactionFilter0( +jlong Java_org_terarkdb_CassandraCompactionFilter_createNewCassandraCompactionFilter0( JNIEnv* /*env*/, jclass /*jcls*/, jboolean purge_ttl_on_expiration, jint gc_grace_period_in_seconds) { auto* compaction_filter = new TERARKDB_NAMESPACE::cassandra::CassandraCompactionFilter( diff --git a/java/rocksjni/cassandra_value_operator.cc b/java/rocksjni/cassandra_value_operator.cc index 1467a3c4b1..f8e75c5853 100644 --- a/java/rocksjni/cassandra_value_operator.cc +++ b/java/rocksjni/cassandra_value_operator.cc @@ -9,7 +9,7 @@ #include #include -#include "include/org_rocksdb_CassandraValueMergeOperator.h" +#include "include/org_terarkdb_CassandraValueMergeOperator.h" #include "rocksdb/db.h" #include "rocksdb/memtablerep.h" #include "rocksdb/merge_operator.h" @@ -21,11 +21,11 @@ #include "utilities/cassandra/merge_operator.h" /* - * Class: org_rocksdb_CassandraValueMergeOperator + * Class: org_terarkdb_CassandraValueMergeOperator * Method: newSharedCassandraValueMergeOperator * Signature: (II)J */ -jlong Java_org_rocksdb_CassandraValueMergeOperator_newSharedCassandraValueMergeOperator( +jlong Java_org_terarkdb_CassandraValueMergeOperator_newSharedCassandraValueMergeOperator( JNIEnv* /*env*/, jclass /*jclazz*/, jint gcGracePeriodInSeconds, jint operands_limit) { auto* op = new std::shared_ptr( @@ -35,11 +35,11 @@ jlong Java_org_rocksdb_CassandraValueMergeOperator_newSharedCassandraValueMergeO } /* - * Class: org_rocksdb_CassandraValueMergeOperator + * Class: org_terarkdb_CassandraValueMergeOperator * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_CassandraValueMergeOperator_disposeInternal( +void Java_org_terarkdb_CassandraValueMergeOperator_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* op = reinterpret_cast*>(jhandle); diff --git a/java/rocksjni/checkpoint.cc b/java/rocksjni/checkpoint.cc index aa84ddb2c7..a5c4c7934c 100644 --- a/java/rocksjni/checkpoint.cc +++ b/java/rocksjni/checkpoint.cc @@ -11,16 +11,16 @@ #include #include -#include "include/org_rocksdb_Checkpoint.h" +#include "include/org_terarkdb_Checkpoint.h" #include "rocksdb/db.h" #include "rocksdb/utilities/checkpoint.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_Checkpoint + * Class: org_terarkdb_Checkpoint * Method: newCheckpoint * Signature: (J)J */ -jlong Java_org_rocksdb_Checkpoint_newCheckpoint(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Checkpoint_newCheckpoint(JNIEnv* /*env*/, jclass /*jclazz*/, jlong jdb_handle) { auto* db = reinterpret_cast(jdb_handle); @@ -30,11 +30,11 @@ jlong Java_org_rocksdb_Checkpoint_newCheckpoint(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Checkpoint + * Class: org_terarkdb_Checkpoint * Method: dispose * Signature: (J)V */ -void Java_org_rocksdb_Checkpoint_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_Checkpoint_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* checkpoint = reinterpret_cast(jhandle); @@ -43,11 +43,11 @@ void Java_org_rocksdb_Checkpoint_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Checkpoint + * Class: org_terarkdb_Checkpoint * Method: createCheckpoint * Signature: (JLjava/lang/String;)V */ -void Java_org_rocksdb_Checkpoint_createCheckpoint(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Checkpoint_createCheckpoint(JNIEnv* env, jobject /*jobj*/, jlong jcheckpoint_handle, jstring jcheckpoint_path) { const char* checkpoint_path = env->GetStringUTFChars(jcheckpoint_path, 0); @@ -66,7 +66,7 @@ void Java_org_rocksdb_Checkpoint_createCheckpoint(JNIEnv* env, jobject /*jobj*/, } } -void Java_org_rocksdb_Checkpoint_createCheckpoint0(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Checkpoint_createCheckpoint0(JNIEnv* env, jobject /*jobj*/, jlong jcheckpoint_handle, jstring jcheckpoint_path, jlong jcheckpoint_log_size) { diff --git a/java/rocksjni/clock_cache.cc b/java/rocksjni/clock_cache.cc index 300988432f..3e45cf5bce 100644 --- a/java/rocksjni/clock_cache.cc +++ b/java/rocksjni/clock_cache.cc @@ -9,14 +9,14 @@ #include #include "cache/clock_cache.h" -#include "include/org_rocksdb_ClockCache.h" +#include "include/org_terarkdb_ClockCache.h" /* - * Class: org_rocksdb_ClockCache + * Class: org_terarkdb_ClockCache * Method: newClockCache * Signature: (JIZ)J */ -jlong Java_org_rocksdb_ClockCache_newClockCache( +jlong Java_org_terarkdb_ClockCache_newClockCache( JNIEnv* /*env*/, jclass /*jcls*/, jlong jcapacity, jint jnum_shard_bits, jboolean jstrict_capacity_limit) { auto* sptr_clock_cache = @@ -27,11 +27,11 @@ jlong Java_org_rocksdb_ClockCache_newClockCache( } /* - * Class: org_rocksdb_ClockCache + * Class: org_terarkdb_ClockCache * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_ClockCache_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_ClockCache_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_clock_cache = diff --git a/java/rocksjni/columnfamilyhandle.cc b/java/rocksjni/columnfamilyhandle.cc index b5838c5210..5202feed49 100644 --- a/java/rocksjni/columnfamilyhandle.cc +++ b/java/rocksjni/columnfamilyhandle.cc @@ -10,15 +10,15 @@ #include #include -#include "include/org_rocksdb_ColumnFamilyHandle.h" +#include "include/org_terarkdb_ColumnFamilyHandle.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_ColumnFamilyHandle + * Class: org_terarkdb_ColumnFamilyHandle * Method: getName * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_ColumnFamilyHandle_getName(JNIEnv* env, +jbyteArray Java_org_terarkdb_ColumnFamilyHandle_getName(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* cfh = reinterpret_cast(jhandle); @@ -27,11 +27,11 @@ jbyteArray Java_org_rocksdb_ColumnFamilyHandle_getName(JNIEnv* env, } /* - * Class: org_rocksdb_ColumnFamilyHandle + * Class: org_terarkdb_ColumnFamilyHandle * Method: getID * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyHandle_getID(JNIEnv* /*env*/, +jint Java_org_terarkdb_ColumnFamilyHandle_getID(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* cfh = reinterpret_cast(jhandle); @@ -40,11 +40,11 @@ jint Java_org_rocksdb_ColumnFamilyHandle_getID(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyHandle + * Class: org_terarkdb_ColumnFamilyHandle * Method: getDescriptor - * Signature: (J)Lorg/rocksdb/ColumnFamilyDescriptor; + * Signature: (J)Lorg/terarkdb/ColumnFamilyDescriptor; */ -jobject Java_org_rocksdb_ColumnFamilyHandle_getDescriptor(JNIEnv* env, +jobject Java_org_terarkdb_ColumnFamilyHandle_getDescriptor(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* cfh = reinterpret_cast(jhandle); @@ -59,11 +59,11 @@ jobject Java_org_rocksdb_ColumnFamilyHandle_getDescriptor(JNIEnv* env, } /* - * Class: org_rocksdb_ColumnFamilyHandle + * Class: org_terarkdb_ColumnFamilyHandle * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_ColumnFamilyHandle_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_ColumnFamilyHandle_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* cfh = reinterpret_cast(jhandle); diff --git a/java/rocksjni/compact_range_options.cc b/java/rocksjni/compact_range_options.cc index 261028fc69..54c4966d90 100644 --- a/java/rocksjni/compact_range_options.cc +++ b/java/rocksjni/compact_range_options.cc @@ -8,16 +8,16 @@ #include -#include "include/org_rocksdb_CompactRangeOptions.h" +#include "include/org_terarkdb_CompactRangeOptions.h" #include "rocksdb/options.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: newCompactRangeOptions * Signature: ()J */ -jlong Java_org_rocksdb_CompactRangeOptions_newCompactRangeOptions( +jlong Java_org_terarkdb_CompactRangeOptions_newCompactRangeOptions( JNIEnv* /*env*/, jclass /*jclazz*/) { auto* options = new TERARKDB_NAMESPACE::CompactRangeOptions(); return reinterpret_cast(options); @@ -25,22 +25,22 @@ jlong Java_org_rocksdb_CompactRangeOptions_newCompactRangeOptions( /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: exclusiveManualCompaction * Signature: (J)Z */ -jboolean Java_org_rocksdb_CompactRangeOptions_exclusiveManualCompaction( +jboolean Java_org_terarkdb_CompactRangeOptions_exclusiveManualCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); return static_cast(options->exclusive_manual_compaction); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: setExclusiveManualCompaction * Signature: (JZ)V */ -void Java_org_rocksdb_CompactRangeOptions_setExclusiveManualCompaction( +void Java_org_terarkdb_CompactRangeOptions_setExclusiveManualCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean exclusive_manual_compaction) { auto* options = reinterpret_cast(jhandle); @@ -49,11 +49,11 @@ void Java_org_rocksdb_CompactRangeOptions_setExclusiveManualCompaction( /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: bottommostLevelCompaction * Signature: (J)I */ -jint Java_org_rocksdb_CompactRangeOptions_bottommostLevelCompaction( +jint Java_org_terarkdb_CompactRangeOptions_bottommostLevelCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); return TERARKDB_NAMESPACE::BottommostLevelCompactionJni::toJavaBottommostLevelCompaction( @@ -61,11 +61,11 @@ jint Java_org_rocksdb_CompactRangeOptions_bottommostLevelCompaction( } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: setBottommostLevelCompaction * Signature: (JI)V */ -void Java_org_rocksdb_CompactRangeOptions_setBottommostLevelCompaction( +void Java_org_terarkdb_CompactRangeOptions_setBottommostLevelCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint bottommost_level_compaction) { auto* options = reinterpret_cast(jhandle); @@ -74,88 +74,88 @@ void Java_org_rocksdb_CompactRangeOptions_setBottommostLevelCompaction( } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: changeLevel * Signature: (J)Z */ -jboolean Java_org_rocksdb_CompactRangeOptions_changeLevel +jboolean Java_org_terarkdb_CompactRangeOptions_changeLevel (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); return static_cast(options->change_level); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: setChangeLevel * Signature: (JZ)V */ -void Java_org_rocksdb_CompactRangeOptions_setChangeLevel +void Java_org_terarkdb_CompactRangeOptions_setChangeLevel (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean change_level) { auto* options = reinterpret_cast(jhandle); options->change_level = static_cast(change_level); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: targetLevel * Signature: (J)I */ -jint Java_org_rocksdb_CompactRangeOptions_targetLevel +jint Java_org_terarkdb_CompactRangeOptions_targetLevel (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); return static_cast(options->target_level); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: setTargetLevel * Signature: (JI)V */ -void Java_org_rocksdb_CompactRangeOptions_setTargetLevel +void Java_org_terarkdb_CompactRangeOptions_setTargetLevel (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint target_level) { auto* options = reinterpret_cast(jhandle); options->target_level = static_cast(target_level); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: targetPathId * Signature: (J)I */ -jint Java_org_rocksdb_CompactRangeOptions_targetPathId +jint Java_org_terarkdb_CompactRangeOptions_targetPathId (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); return static_cast(options->target_path_id); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: setTargetPathId * Signature: (JI)V */ -void Java_org_rocksdb_CompactRangeOptions_setTargetPathId +void Java_org_terarkdb_CompactRangeOptions_setTargetPathId (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint target_path_id) { auto* options = reinterpret_cast(jhandle); options->target_path_id = static_cast(target_path_id); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: allowWriteStall * Signature: (J)Z */ -jboolean Java_org_rocksdb_CompactRangeOptions_allowWriteStall +jboolean Java_org_terarkdb_CompactRangeOptions_allowWriteStall (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); return static_cast(options->allow_write_stall); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: setAllowWriteStall * Signature: (JZ)V */ -void Java_org_rocksdb_CompactRangeOptions_setAllowWriteStall +void Java_org_terarkdb_CompactRangeOptions_setAllowWriteStall (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow_write_stall) { auto* options = reinterpret_cast(jhandle); options->allow_write_stall = static_cast(allow_write_stall); @@ -163,33 +163,33 @@ void Java_org_rocksdb_CompactRangeOptions_setAllowWriteStall /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: maxSubcompactions * Signature: (J)I */ -jint Java_org_rocksdb_CompactRangeOptions_maxSubcompactions +jint Java_org_terarkdb_CompactRangeOptions_maxSubcompactions (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); return static_cast(options->max_subcompactions); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: setMaxSubcompactions * Signature: (JI)V */ -void Java_org_rocksdb_CompactRangeOptions_setMaxSubcompactions +void Java_org_terarkdb_CompactRangeOptions_setMaxSubcompactions (JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_subcompactions) { auto* options = reinterpret_cast(jhandle); options->max_subcompactions = static_cast(max_subcompactions); } /* - * Class: org_rocksdb_CompactRangeOptions + * Class: org_terarkdb_CompactRangeOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_CompactRangeOptions_disposeInternal( +void Java_org_terarkdb_CompactRangeOptions_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); delete options; diff --git a/java/rocksjni/compaction_filter.cc b/java/rocksjni/compaction_filter.cc index 6f97f86ca9..f0c32abe2b 100644 --- a/java/rocksjni/compaction_filter.cc +++ b/java/rocksjni/compaction_filter.cc @@ -8,17 +8,17 @@ #include -#include "include/org_rocksdb_AbstractCompactionFilter.h" +#include "include/org_terarkdb_AbstractCompactionFilter.h" #include "rocksdb/compaction_filter.h" -// +// /* - * Class: org_rocksdb_AbstractCompactionFilter + * Class: org_terarkdb_AbstractCompactionFilter * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_AbstractCompactionFilter_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_AbstractCompactionFilter_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* cf = reinterpret_cast(handle); diff --git a/java/rocksjni/compaction_filter_factory.cc b/java/rocksjni/compaction_filter_factory.cc index a8edaae422..cc881a1e8c 100644 --- a/java/rocksjni/compaction_filter_factory.cc +++ b/java/rocksjni/compaction_filter_factory.cc @@ -9,15 +9,15 @@ #include #include -#include "include/org_rocksdb_AbstractCompactionFilterFactory.h" +#include "include/org_terarkdb_AbstractCompactionFilterFactory.h" #include "rocksjni/compaction_filter_factory_jnicallback.h" /* - * Class: org_rocksdb_AbstractCompactionFilterFactory + * Class: org_terarkdb_AbstractCompactionFilterFactory * Method: createNewCompactionFilterFactory0 * Signature: ()J */ -jlong Java_org_rocksdb_AbstractCompactionFilterFactory_createNewCompactionFilterFactory0( +jlong Java_org_terarkdb_AbstractCompactionFilterFactory_createNewCompactionFilterFactory0( JNIEnv* env, jobject jobj) { auto* cff = new TERARKDB_NAMESPACE::CompactionFilterFactoryJniCallback(env, jobj); auto* ptr_sptr_cff = @@ -26,11 +26,11 @@ jlong Java_org_rocksdb_AbstractCompactionFilterFactory_createNewCompactionFilter } /* - * Class: org_rocksdb_AbstractCompactionFilterFactory + * Class: org_terarkdb_AbstractCompactionFilterFactory * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_AbstractCompactionFilterFactory_disposeInternal( +void Java_org_terarkdb_AbstractCompactionFilterFactory_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* ptr_sptr_cff = reinterpret_cast< std::shared_ptr*>(jhandle); diff --git a/java/rocksjni/compaction_options_universal.cc b/java/rocksjni/compaction_options_universal.cc index 563a0cfb4e..3f748442fb 100644 --- a/java/rocksjni/compaction_options_universal.cc +++ b/java/rocksjni/compaction_options_universal.cc @@ -8,38 +8,38 @@ #include -#include "include/org_rocksdb_CompactionOptionsUniversal.h" +#include "include/org_terarkdb_CompactionOptionsUniversal.h" #include "rocksdb/advanced_options.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: newCompactionOptionsUniversal * Signature: ()J */ -jlong Java_org_rocksdb_CompactionOptionsUniversal_newCompactionOptionsUniversal( +jlong Java_org_terarkdb_CompactionOptionsUniversal_newCompactionOptionsUniversal( JNIEnv* /*env*/, jclass /*jcls*/) { const auto* opt = new TERARKDB_NAMESPACE::CompactionOptionsUniversal(); return reinterpret_cast(opt); } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: setSizeRatio * Signature: (JI)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_setSizeRatio( +void Java_org_terarkdb_CompactionOptionsUniversal_setSizeRatio( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jsize_ratio) { auto* opt = reinterpret_cast(jhandle); opt->size_ratio = static_cast(jsize_ratio); } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: sizeRatio * Signature: (J)I */ -jint Java_org_rocksdb_CompactionOptionsUniversal_sizeRatio(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompactionOptionsUniversal_sizeRatio(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -47,22 +47,22 @@ jint Java_org_rocksdb_CompactionOptionsUniversal_sizeRatio(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: setMinMergeWidth * Signature: (JI)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_setMinMergeWidth( +void Java_org_terarkdb_CompactionOptionsUniversal_setMinMergeWidth( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmin_merge_width) { auto* opt = reinterpret_cast(jhandle); opt->min_merge_width = static_cast(jmin_merge_width); } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: minMergeWidth * Signature: (J)I */ -jint Java_org_rocksdb_CompactionOptionsUniversal_minMergeWidth(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompactionOptionsUniversal_minMergeWidth(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -70,22 +70,22 @@ jint Java_org_rocksdb_CompactionOptionsUniversal_minMergeWidth(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: setMaxMergeWidth * Signature: (JI)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_setMaxMergeWidth( +void Java_org_terarkdb_CompactionOptionsUniversal_setMaxMergeWidth( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_merge_width) { auto* opt = reinterpret_cast(jhandle); opt->max_merge_width = static_cast(jmax_merge_width); } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: maxMergeWidth * Signature: (J)I */ -jint Java_org_rocksdb_CompactionOptionsUniversal_maxMergeWidth(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompactionOptionsUniversal_maxMergeWidth(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -93,11 +93,11 @@ jint Java_org_rocksdb_CompactionOptionsUniversal_maxMergeWidth(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: setMaxSizeAmplificationPercent * Signature: (JI)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_setMaxSizeAmplificationPercent( +void Java_org_terarkdb_CompactionOptionsUniversal_setMaxSizeAmplificationPercent( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_size_amplification_percent) { auto* opt = reinterpret_cast(jhandle); @@ -106,22 +106,22 @@ void Java_org_rocksdb_CompactionOptionsUniversal_setMaxSizeAmplificationPercent( } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: maxSizeAmplificationPercent * Signature: (J)I */ -jint Java_org_rocksdb_CompactionOptionsUniversal_maxSizeAmplificationPercent( +jint Java_org_terarkdb_CompactionOptionsUniversal_maxSizeAmplificationPercent( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->max_size_amplification_percent); } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: setCompressionSizePercent * Signature: (JI)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_setCompressionSizePercent( +void Java_org_terarkdb_CompactionOptionsUniversal_setCompressionSizePercent( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jcompression_size_percent) { auto* opt = reinterpret_cast(jhandle); @@ -130,22 +130,22 @@ void Java_org_rocksdb_CompactionOptionsUniversal_setCompressionSizePercent( } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: compressionSizePercent * Signature: (J)I */ -jint Java_org_rocksdb_CompactionOptionsUniversal_compressionSizePercent( +jint Java_org_terarkdb_CompactionOptionsUniversal_compressionSizePercent( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->compression_size_percent); } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: setStopStyle * Signature: (JB)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_setStopStyle( +void Java_org_terarkdb_CompactionOptionsUniversal_setStopStyle( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jstop_style_value) { auto* opt = reinterpret_cast(jhandle); opt->stop_style = TERARKDB_NAMESPACE::CompactionStopStyleJni::toCppCompactionStopStyle( @@ -153,11 +153,11 @@ void Java_org_rocksdb_CompactionOptionsUniversal_setStopStyle( } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: stopStyle * Signature: (J)B */ -jbyte Java_org_rocksdb_CompactionOptionsUniversal_stopStyle(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_CompactionOptionsUniversal_stopStyle(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -166,11 +166,11 @@ jbyte Java_org_rocksdb_CompactionOptionsUniversal_stopStyle(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: setAllowTrivialMove * Signature: (JZ)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_setAllowTrivialMove( +void Java_org_terarkdb_CompactionOptionsUniversal_setAllowTrivialMove( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jallow_trivial_move) { auto* opt = reinterpret_cast(jhandle); @@ -178,22 +178,22 @@ void Java_org_rocksdb_CompactionOptionsUniversal_setAllowTrivialMove( } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: allowTrivialMove * Signature: (J)Z */ -jboolean Java_org_rocksdb_CompactionOptionsUniversal_allowTrivialMove( +jboolean Java_org_terarkdb_CompactionOptionsUniversal_allowTrivialMove( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return opt->allow_trivial_move; } /* - * Class: org_rocksdb_CompactionOptionsUniversal + * Class: org_terarkdb_CompactionOptionsUniversal * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_CompactionOptionsUniversal_disposeInternal( +void Java_org_terarkdb_CompactionOptionsUniversal_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); } diff --git a/java/rocksjni/comparator.cc b/java/rocksjni/comparator.cc index 9f43a8a38c..8c911d2f16 100644 --- a/java/rocksjni/comparator.cc +++ b/java/rocksjni/comparator.cc @@ -12,20 +12,20 @@ #include #include -#include "include/org_rocksdb_Comparator.h" -#include "include/org_rocksdb_DirectComparator.h" -#include "include/org_rocksdb_NativeComparatorWrapper.h" +#include "include/org_terarkdb_Comparator.h" +#include "include/org_terarkdb_DirectComparator.h" +#include "include/org_terarkdb_NativeComparatorWrapper.h" #include "rocksjni/comparatorjnicallback.h" #include "rocksjni/portal.h" -// /* - * Class: org_rocksdb_Comparator + * Class: org_terarkdb_Comparator * Method: createNewComparator0 * Signature: ()J */ -jlong Java_org_rocksdb_Comparator_createNewComparator0(JNIEnv* env, +jlong Java_org_terarkdb_Comparator_createNewComparator0(JNIEnv* env, jobject jobj, jlong copt_handle) { auto* copt = @@ -35,14 +35,14 @@ jlong Java_org_rocksdb_Comparator_createNewComparator0(JNIEnv* env, } // -// /* - * Class: org_rocksdb_DirectComparator + * Class: org_terarkdb_DirectComparator * Method: createNewDirectComparator0 * Signature: ()J */ -jlong Java_org_rocksdb_DirectComparator_createNewDirectComparator0( +jlong Java_org_terarkdb_DirectComparator_createNewDirectComparator0( JNIEnv* env, jobject jobj, jlong copt_handle) { auto* copt = reinterpret_cast(copt_handle); @@ -51,11 +51,11 @@ jlong Java_org_rocksdb_DirectComparator_createNewDirectComparator0( } /* - * Class: org_rocksdb_NativeComparatorWrapper + * Class: org_terarkdb_NativeComparatorWrapper * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_NativeComparatorWrapper_disposeInternal( +void Java_org_terarkdb_NativeComparatorWrapper_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jcomparator_handle) { auto* comparator = reinterpret_cast(jcomparator_handle); delete comparator; diff --git a/java/rocksjni/compression_options.cc b/java/rocksjni/compression_options.cc index 2581e75e04..f1ef0f15ac 100644 --- a/java/rocksjni/compression_options.cc +++ b/java/rocksjni/compression_options.cc @@ -8,26 +8,26 @@ #include -#include "include/org_rocksdb_CompressionOptions.h" +#include "include/org_terarkdb_CompressionOptions.h" #include "rocksdb/advanced_options.h" /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: newCompressionOptions * Signature: ()J */ -jlong Java_org_rocksdb_CompressionOptions_newCompressionOptions( +jlong Java_org_terarkdb_CompressionOptions_newCompressionOptions( JNIEnv* /*env*/, jclass /*jcls*/) { const auto* opt = new TERARKDB_NAMESPACE::CompressionOptions(); return reinterpret_cast(opt); } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: setWindowBits * Signature: (JI)V */ -void Java_org_rocksdb_CompressionOptions_setWindowBits(JNIEnv* /*env*/, +void Java_org_terarkdb_CompressionOptions_setWindowBits(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jwindow_bits) { @@ -36,11 +36,11 @@ void Java_org_rocksdb_CompressionOptions_setWindowBits(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: windowBits * Signature: (J)I */ -jint Java_org_rocksdb_CompressionOptions_windowBits(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompressionOptions_windowBits(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -48,11 +48,11 @@ jint Java_org_rocksdb_CompressionOptions_windowBits(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: setLevel * Signature: (JI)V */ -void Java_org_rocksdb_CompressionOptions_setLevel(JNIEnv* /*env*/, +void Java_org_terarkdb_CompressionOptions_setLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel) { auto* opt = reinterpret_cast(jhandle); @@ -60,11 +60,11 @@ void Java_org_rocksdb_CompressionOptions_setLevel(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: level * Signature: (J)I */ -jint Java_org_rocksdb_CompressionOptions_level(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompressionOptions_level(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -72,11 +72,11 @@ jint Java_org_rocksdb_CompressionOptions_level(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: setStrategy * Signature: (JI)V */ -void Java_org_rocksdb_CompressionOptions_setStrategy(JNIEnv* /*env*/, +void Java_org_terarkdb_CompressionOptions_setStrategy(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jstrategy) { @@ -85,11 +85,11 @@ void Java_org_rocksdb_CompressionOptions_setStrategy(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: strategy * Signature: (J)I */ -jint Java_org_rocksdb_CompressionOptions_strategy(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompressionOptions_strategy(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -97,11 +97,11 @@ jint Java_org_rocksdb_CompressionOptions_strategy(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: setMaxDictBytes * Signature: (JI)V */ -void Java_org_rocksdb_CompressionOptions_setMaxDictBytes(JNIEnv* /*env*/, +void Java_org_terarkdb_CompressionOptions_setMaxDictBytes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_dict_bytes) { @@ -110,11 +110,11 @@ void Java_org_rocksdb_CompressionOptions_setMaxDictBytes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: maxDictBytes * Signature: (J)I */ -jint Java_org_rocksdb_CompressionOptions_maxDictBytes(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompressionOptions_maxDictBytes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -122,11 +122,11 @@ jint Java_org_rocksdb_CompressionOptions_maxDictBytes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: setEnabled * Signature: (JI)V */ -void Java_org_rocksdb_CompressionOptions_setEnabled(JNIEnv* /*env*/, +void Java_org_terarkdb_CompressionOptions_setEnabled(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jenabled) { @@ -135,22 +135,22 @@ void Java_org_rocksdb_CompressionOptions_setEnabled(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: Enabled * Signature: (J)I */ -jint Java_org_rocksdb_CompressionOptions_enabled(JNIEnv* /*env*/, +jint Java_org_terarkdb_CompressionOptions_enabled(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->enabled); } /* - * Class: org_rocksdb_CompressionOptions + * Class: org_terarkdb_CompressionOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_CompressionOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_CompressionOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); diff --git a/java/rocksjni/env.cc b/java/rocksjni/env.cc index a790411832..7f3dd90f19 100644 --- a/java/rocksjni/env.cc +++ b/java/rocksjni/env.cc @@ -7,73 +7,73 @@ // calling c++ TERARKDB_NAMESPACE::Env methods from Java side. #include "rocksdb/env.h" -#include "include/org_rocksdb_Env.h" -#include "include/org_rocksdb_RocksEnv.h" -#include "include/org_rocksdb_RocksMemEnv.h" +#include "include/org_terarkdb_Env.h" +#include "include/org_terarkdb_RocksEnv.h" +#include "include/org_terarkdb_RocksMemEnv.h" /* - * Class: org_rocksdb_Env + * Class: org_terarkdb_Env * Method: getDefaultEnvInternal * Signature: ()J */ -jlong Java_org_rocksdb_Env_getDefaultEnvInternal(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Env_getDefaultEnvInternal(JNIEnv* /*env*/, jclass /*jclazz*/) { return reinterpret_cast(TERARKDB_NAMESPACE::Env::Default()); } /* - * Class: org_rocksdb_Env + * Class: org_terarkdb_Env * Method: setBackgroundThreads * Signature: (JII)V */ -void Java_org_rocksdb_Env_setBackgroundThreads(JNIEnv* /*env*/, +void Java_org_terarkdb_Env_setBackgroundThreads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint num, jint priority) { auto* rocks_env = reinterpret_cast(jhandle); switch (priority) { - case org_rocksdb_Env_FLUSH_POOL: + case org_terarkdb_Env_FLUSH_POOL: rocks_env->SetBackgroundThreads(num, TERARKDB_NAMESPACE::Env::Priority::LOW); break; - case org_rocksdb_Env_COMPACTION_POOL: + case org_terarkdb_Env_COMPACTION_POOL: rocks_env->SetBackgroundThreads(num, TERARKDB_NAMESPACE::Env::Priority::HIGH); break; } } /* - * Class: org_rocksdb_sEnv + * Class: org_terarkdb_sEnv * Method: getThreadPoolQueueLen * Signature: (JI)I */ -jint Java_org_rocksdb_Env_getThreadPoolQueueLen(JNIEnv* /*env*/, +jint Java_org_terarkdb_Env_getThreadPoolQueueLen(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint pool_id) { auto* rocks_env = reinterpret_cast(jhandle); switch (pool_id) { - case org_rocksdb_RocksEnv_FLUSH_POOL: + case org_terarkdb_RocksEnv_FLUSH_POOL: return rocks_env->GetThreadPoolQueueLen(TERARKDB_NAMESPACE::Env::Priority::LOW); - case org_rocksdb_RocksEnv_COMPACTION_POOL: + case org_terarkdb_RocksEnv_COMPACTION_POOL: return rocks_env->GetThreadPoolQueueLen(TERARKDB_NAMESPACE::Env::Priority::HIGH); } return 0; } /* - * Class: org_rocksdb_RocksMemEnv + * Class: org_terarkdb_RocksMemEnv * Method: createMemEnv * Signature: ()J */ -jlong Java_org_rocksdb_RocksMemEnv_createMemEnv(JNIEnv* /*env*/, +jlong Java_org_terarkdb_RocksMemEnv_createMemEnv(JNIEnv* /*env*/, jclass /*jclazz*/) { return reinterpret_cast(TERARKDB_NAMESPACE::NewMemEnv(TERARKDB_NAMESPACE::Env::Default())); } /* - * Class: org_rocksdb_RocksMemEnv + * Class: org_terarkdb_RocksMemEnv * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_RocksMemEnv_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_RocksMemEnv_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* e = reinterpret_cast(jhandle); diff --git a/java/rocksjni/env_options.cc b/java/rocksjni/env_options.cc index 88c93ec703..ba2af66738 100644 --- a/java/rocksjni/env_options.cc +++ b/java/rocksjni/env_options.cc @@ -9,7 +9,7 @@ #include -#include "include/org_rocksdb_EnvOptions.h" +#include "include/org_terarkdb_EnvOptions.h" #include "rocksdb/env.h" #define ENV_OPTIONS_SET_BOOL(_jhandle, _opt) \ @@ -28,22 +28,22 @@ reinterpret_cast(_jhandle)->_opt /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: newEnvOptions * Signature: ()J */ -jlong Java_org_rocksdb_EnvOptions_newEnvOptions(JNIEnv * /*env*/, +jlong Java_org_terarkdb_EnvOptions_newEnvOptions(JNIEnv * /*env*/, jclass /*jcls*/) { auto *env_opt = new TERARKDB_NAMESPACE::EnvOptions(); return reinterpret_cast(env_opt); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_EnvOptions_disposeInternal(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_disposeInternal(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { auto *eo = reinterpret_cast(jhandle); @@ -52,11 +52,11 @@ void Java_org_rocksdb_EnvOptions_disposeInternal(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setUseDirectReads * Signature: (JZ)V */ -void Java_org_rocksdb_EnvOptions_setUseDirectReads(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_setUseDirectReads(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_direct_reads) { @@ -64,44 +64,44 @@ void Java_org_rocksdb_EnvOptions_setUseDirectReads(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: useDirectReads * Signature: (J)Z */ -jboolean Java_org_rocksdb_EnvOptions_useDirectReads(JNIEnv * /*env*/, +jboolean Java_org_terarkdb_EnvOptions_useDirectReads(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, use_direct_reads); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setUseDirectWrites * Signature: (JZ)V */ -void Java_org_rocksdb_EnvOptions_setUseDirectWrites( +void Java_org_terarkdb_EnvOptions_setUseDirectWrites( JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_direct_writes) { ENV_OPTIONS_SET_BOOL(jhandle, use_direct_writes); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: useDirectWrites * Signature: (J)Z */ -jboolean Java_org_rocksdb_EnvOptions_useDirectWrites(JNIEnv * /*env*/, +jboolean Java_org_terarkdb_EnvOptions_useDirectWrites(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, use_direct_writes); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setUseMmapReads * Signature: (JZ)V */ -void Java_org_rocksdb_EnvOptions_setUseMmapReads(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_setUseMmapReads(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_mmap_reads) { @@ -109,22 +109,22 @@ void Java_org_rocksdb_EnvOptions_setUseMmapReads(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: useMmapReads * Signature: (J)Z */ -jboolean Java_org_rocksdb_EnvOptions_useMmapReads(JNIEnv * /*env*/, +jboolean Java_org_terarkdb_EnvOptions_useMmapReads(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, use_mmap_reads); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setUseMmapWrites * Signature: (JZ)V */ -void Java_org_rocksdb_EnvOptions_setUseMmapWrites(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_setUseMmapWrites(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_mmap_writes) { @@ -132,22 +132,22 @@ void Java_org_rocksdb_EnvOptions_setUseMmapWrites(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: useMmapWrites * Signature: (J)Z */ -jboolean Java_org_rocksdb_EnvOptions_useMmapWrites(JNIEnv * /*env*/, +jboolean Java_org_terarkdb_EnvOptions_useMmapWrites(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, use_mmap_writes); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setAllowFallocate * Signature: (JZ)V */ -void Java_org_rocksdb_EnvOptions_setAllowFallocate(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_setAllowFallocate(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow_fallocate) { @@ -155,22 +155,22 @@ void Java_org_rocksdb_EnvOptions_setAllowFallocate(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: allowFallocate * Signature: (J)Z */ -jboolean Java_org_rocksdb_EnvOptions_allowFallocate(JNIEnv * /*env*/, +jboolean Java_org_terarkdb_EnvOptions_allowFallocate(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, allow_fallocate); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setSetFdCloexec * Signature: (JZ)V */ -void Java_org_rocksdb_EnvOptions_setSetFdCloexec(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_setSetFdCloexec(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jboolean set_fd_cloexec) { @@ -178,22 +178,22 @@ void Java_org_rocksdb_EnvOptions_setSetFdCloexec(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setFdCloexec * Signature: (J)Z */ -jboolean Java_org_rocksdb_EnvOptions_setFdCloexec(JNIEnv * /*env*/, +jboolean Java_org_terarkdb_EnvOptions_setFdCloexec(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, set_fd_cloexec); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setBytesPerSync * Signature: (JJ)V */ -void Java_org_rocksdb_EnvOptions_setBytesPerSync(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_setBytesPerSync(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jlong bytes_per_sync) { @@ -201,110 +201,110 @@ void Java_org_rocksdb_EnvOptions_setBytesPerSync(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: bytesPerSync * Signature: (J)J */ -jlong Java_org_rocksdb_EnvOptions_bytesPerSync(JNIEnv * /*env*/, +jlong Java_org_terarkdb_EnvOptions_bytesPerSync(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, bytes_per_sync); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setFallocateWithKeepSize * Signature: (JZ)V */ -void Java_org_rocksdb_EnvOptions_setFallocateWithKeepSize( +void Java_org_terarkdb_EnvOptions_setFallocateWithKeepSize( JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jboolean fallocate_with_keep_size) { ENV_OPTIONS_SET_BOOL(jhandle, fallocate_with_keep_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: fallocateWithKeepSize * Signature: (J)Z */ -jboolean Java_org_rocksdb_EnvOptions_fallocateWithKeepSize(JNIEnv * /*env*/, +jboolean Java_org_terarkdb_EnvOptions_fallocateWithKeepSize(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, fallocate_with_keep_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setCompactionReadaheadSize * Signature: (JJ)V */ -void Java_org_rocksdb_EnvOptions_setCompactionReadaheadSize( +void Java_org_terarkdb_EnvOptions_setCompactionReadaheadSize( JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jlong compaction_readahead_size) { ENV_OPTIONS_SET_SIZE_T(jhandle, compaction_readahead_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: compactionReadaheadSize * Signature: (J)J */ -jlong Java_org_rocksdb_EnvOptions_compactionReadaheadSize(JNIEnv * /*env*/, +jlong Java_org_terarkdb_EnvOptions_compactionReadaheadSize(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, compaction_readahead_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setRandomAccessMaxBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_EnvOptions_setRandomAccessMaxBufferSize( +void Java_org_terarkdb_EnvOptions_setRandomAccessMaxBufferSize( JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jlong random_access_max_buffer_size) { ENV_OPTIONS_SET_SIZE_T(jhandle, random_access_max_buffer_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: randomAccessMaxBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_EnvOptions_randomAccessMaxBufferSize(JNIEnv * /*env*/, +jlong Java_org_terarkdb_EnvOptions_randomAccessMaxBufferSize(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, random_access_max_buffer_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setWritableFileMaxBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_EnvOptions_setWritableFileMaxBufferSize( +void Java_org_terarkdb_EnvOptions_setWritableFileMaxBufferSize( JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jlong writable_file_max_buffer_size) { ENV_OPTIONS_SET_SIZE_T(jhandle, writable_file_max_buffer_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: writableFileMaxBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_EnvOptions_writableFileMaxBufferSize(JNIEnv * /*env*/, +jlong Java_org_terarkdb_EnvOptions_writableFileMaxBufferSize(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { return ENV_OPTIONS_GET(jhandle, writable_file_max_buffer_size); } /* - * Class: org_rocksdb_EnvOptions + * Class: org_terarkdb_EnvOptions * Method: setRateLimiter * Signature: (JJ)V */ -void Java_org_rocksdb_EnvOptions_setRateLimiter(JNIEnv * /*env*/, +void Java_org_terarkdb_EnvOptions_setRateLimiter(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle, jlong rl_handle) { auto *sptr_rate_limiter = diff --git a/java/rocksjni/filter.cc b/java/rocksjni/filter.cc index 27f4253928..a0ae4cc656 100644 --- a/java/rocksjni/filter.cc +++ b/java/rocksjni/filter.cc @@ -11,17 +11,17 @@ #include #include -#include "include/org_rocksdb_BloomFilter.h" -#include "include/org_rocksdb_Filter.h" +#include "include/org_terarkdb_BloomFilter.h" +#include "include/org_terarkdb_Filter.h" #include "rocksdb/filter_policy.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_BloomFilter + * Class: org_terarkdb_BloomFilter * Method: createBloomFilter * Signature: (IZ)J */ -jlong Java_org_rocksdb_BloomFilter_createNewBloomFilter( +jlong Java_org_terarkdb_BloomFilter_createNewBloomFilter( JNIEnv* /*env*/, jclass /*jcls*/, jint bits_per_key, jboolean use_block_base_builder) { auto* sptr_filter = new std::shared_ptr( @@ -30,11 +30,11 @@ jlong Java_org_rocksdb_BloomFilter_createNewBloomFilter( } /* - * Class: org_rocksdb_Filter + * Class: org_terarkdb_Filter * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_Filter_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Filter_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* handle = reinterpret_cast*>(jhandle); diff --git a/java/rocksjni/flink_compactionfilterjni.cc b/java/rocksjni/flink_compactionfilterjni.cc index 1bb63c3551..f1a7d367d2 100644 --- a/java/rocksjni/flink_compactionfilterjni.cc +++ b/java/rocksjni/flink_compactionfilterjni.cc @@ -6,7 +6,7 @@ #include #include -#include "include/org_rocksdb_FlinkCompactionFilter.h" +#include "include/org_terarkdb_FlinkCompactionFilter.h" #include "loggerjnicallback.h" #include "portal.h" #include "rocksjni/jnicallback.h" @@ -40,7 +40,7 @@ class JavaListElementFilter : public TERARKDB_NAMESPACE::flink:: JavaListElementFilter(JNIEnv* env, jobject jlist_filter) : JniCallbackBase(env, jlist_filter) { jclass jclazz = TERARKDB_NAMESPACE::JavaClass::getJClass( - env, "org/rocksdb/FlinkCompactionFilter$ListElementFilter"); + env, "org/terarkdb/FlinkCompactionFilter$ListElementFilter"); if (jclazz == nullptr) { // exception occurred accessing class return; @@ -83,14 +83,14 @@ class JavaListElemenFilterFactory JavaListElemenFilterFactory(JNIEnv* env, jobject jlist_filter_factory) : JniCallbackBase(env, jlist_filter_factory) { jclass jclazz = TERARKDB_NAMESPACE::JavaClass::getJClass( - env, "org/rocksdb/FlinkCompactionFilter$ListElementFilterFactory"); + env, "org/terarkdb/FlinkCompactionFilter$ListElementFilterFactory"); if (jclazz == nullptr) { // exception occurred accessing class return; } m_jcreate_filter_methodid = env->GetMethodID( jclazz, "createListElementFilter", - "()Lorg/rocksdb/FlinkCompactionFilter$ListElementFilter;"); + "()Lorg/terarkdb/FlinkCompactionFilter$ListElementFilter;"); assert(m_jcreate_filter_methodid != nullptr); } @@ -117,7 +117,7 @@ class JavaTimeProvider JavaTimeProvider(JNIEnv* env, jobject jtime_provider) : JniCallbackBase(env, jtime_provider) { jclass jclazz = TERARKDB_NAMESPACE::JavaClass::getJClass( - env, "org/rocksdb/FlinkCompactionFilter$TimeProvider"); + env, "org/terarkdb/FlinkCompactionFilter$TimeProvider"); if (jclazz == nullptr) { // exception occurred accessing class return; @@ -159,11 +159,11 @@ createListElementFilterFactory(JNIEnv* env, jint ji_list_elem_len, } /*x - * Class: org_rocksdb_FlinkCompactionFilter + * Class: org_terarkdb_FlinkCompactionFilter * Method: createNewFlinkCompactionFilterConfigHolder * Signature: ()J */ -jlong Java_org_rocksdb_FlinkCompactionFilter_createNewFlinkCompactionFilterConfigHolder( +jlong Java_org_terarkdb_FlinkCompactionFilter_createNewFlinkCompactionFilterConfigHolder( JNIEnv* /* env */, jclass /* jcls */) { using namespace TERARKDB_NAMESPACE::flink; return reinterpret_cast( @@ -172,11 +172,11 @@ jlong Java_org_rocksdb_FlinkCompactionFilter_createNewFlinkCompactionFilterConfi } /* - * Class: org_rocksdb_FlinkCompactionFilter + * Class: org_terarkdb_FlinkCompactionFilter * Method: disposeFlinkCompactionFilterConfigHolder * Signature: (J)V */ -void Java_org_rocksdb_FlinkCompactionFilter_disposeFlinkCompactionFilterConfigHolder( +void Java_org_terarkdb_FlinkCompactionFilter_disposeFlinkCompactionFilterConfigHolder( JNIEnv* /* env */, jclass /* jcls */, jlong handle) { using namespace TERARKDB_NAMESPACE::flink; auto* config_holder = @@ -186,11 +186,11 @@ void Java_org_rocksdb_FlinkCompactionFilter_disposeFlinkCompactionFilterConfigHo } /* - * Class: org_rocksdb_FlinkCompactionFilter + * Class: org_terarkdb_FlinkCompactionFilter * Method: createNewFlinkCompactionFilter0 * Signature: (JJJ)J */ -jlong Java_org_rocksdb_FlinkCompactionFilter_createNewFlinkCompactionFilter0( +jlong Java_org_terarkdb_FlinkCompactionFilter_createNewFlinkCompactionFilter0( JNIEnv* env, jclass /* jcls */, jlong config_holder_handle, jobject jtime_provider, jlong logger_handle) { using namespace TERARKDB_NAMESPACE::flink; @@ -211,11 +211,11 @@ jlong Java_org_rocksdb_FlinkCompactionFilter_createNewFlinkCompactionFilter0( } /* - * Class: org_rocksdb_FlinkCompactionFilter + * Class: org_terarkdb_FlinkCompactionFilter * Method: configureFlinkCompactionFilter - * Signature: (JIIJJILorg/rocksdb/FlinkCompactionFilter$ListElementFilter;)Z + * Signature: (JIIJJILorg/terarkdb/FlinkCompactionFilter$ListElementFilter;)Z */ -jboolean Java_org_rocksdb_FlinkCompactionFilter_configureFlinkCompactionFilter( +jboolean Java_org_terarkdb_FlinkCompactionFilter_configureFlinkCompactionFilter( JNIEnv* env, jclass /* jcls */, jlong handle, jint ji_state_type, jint ji_timestamp_offset, jlong jl_ttl_milli, jlong jquery_time_after_num_entries, jint ji_list_elem_len, diff --git a/java/rocksjni/ingest_external_file_options.cc b/java/rocksjni/ingest_external_file_options.cc index d23f1b46b6..d26eda6075 100644 --- a/java/rocksjni/ingest_external_file_options.cc +++ b/java/rocksjni/ingest_external_file_options.cc @@ -8,26 +8,26 @@ #include -#include "include/org_rocksdb_IngestExternalFileOptions.h" +#include "include/org_terarkdb_IngestExternalFileOptions.h" #include "rocksdb/options.h" /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: newIngestExternalFileOptions * Signature: ()J */ -jlong Java_org_rocksdb_IngestExternalFileOptions_newIngestExternalFileOptions__( +jlong Java_org_terarkdb_IngestExternalFileOptions_newIngestExternalFileOptions__( JNIEnv* /*env*/, jclass /*jclazz*/) { auto* options = new TERARKDB_NAMESPACE::IngestExternalFileOptions(); return reinterpret_cast(options); } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: newIngestExternalFileOptions * Signature: (ZZZZ)J */ -jlong Java_org_rocksdb_IngestExternalFileOptions_newIngestExternalFileOptions__ZZZZ( +jlong Java_org_terarkdb_IngestExternalFileOptions_newIngestExternalFileOptions__ZZZZ( JNIEnv* /*env*/, jclass /*jcls*/, jboolean jmove_files, jboolean jsnapshot_consistency, jboolean jallow_global_seqno, jboolean jallow_blocking_flush) { @@ -40,11 +40,11 @@ jlong Java_org_rocksdb_IngestExternalFileOptions_newIngestExternalFileOptions__Z } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: moveFiles * Signature: (J)Z */ -jboolean Java_org_rocksdb_IngestExternalFileOptions_moveFiles(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_IngestExternalFileOptions_moveFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = @@ -53,11 +53,11 @@ jboolean Java_org_rocksdb_IngestExternalFileOptions_moveFiles(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: setMoveFiles * Signature: (JZ)V */ -void Java_org_rocksdb_IngestExternalFileOptions_setMoveFiles( +void Java_org_terarkdb_IngestExternalFileOptions_setMoveFiles( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jmove_files) { auto* options = reinterpret_cast(jhandle); @@ -65,11 +65,11 @@ void Java_org_rocksdb_IngestExternalFileOptions_setMoveFiles( } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: snapshotConsistency * Signature: (J)Z */ -jboolean Java_org_rocksdb_IngestExternalFileOptions_snapshotConsistency( +jboolean Java_org_terarkdb_IngestExternalFileOptions_snapshotConsistency( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); @@ -77,11 +77,11 @@ jboolean Java_org_rocksdb_IngestExternalFileOptions_snapshotConsistency( } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: setSnapshotConsistency * Signature: (JZ)V */ -void Java_org_rocksdb_IngestExternalFileOptions_setSnapshotConsistency( +void Java_org_terarkdb_IngestExternalFileOptions_setSnapshotConsistency( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jsnapshot_consistency) { auto* options = @@ -90,11 +90,11 @@ void Java_org_rocksdb_IngestExternalFileOptions_setSnapshotConsistency( } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: allowGlobalSeqNo * Signature: (J)Z */ -jboolean Java_org_rocksdb_IngestExternalFileOptions_allowGlobalSeqNo( +jboolean Java_org_terarkdb_IngestExternalFileOptions_allowGlobalSeqNo( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); @@ -102,11 +102,11 @@ jboolean Java_org_rocksdb_IngestExternalFileOptions_allowGlobalSeqNo( } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: setAllowGlobalSeqNo * Signature: (JZ)V */ -void Java_org_rocksdb_IngestExternalFileOptions_setAllowGlobalSeqNo( +void Java_org_terarkdb_IngestExternalFileOptions_setAllowGlobalSeqNo( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jallow_global_seqno) { auto* options = @@ -115,11 +115,11 @@ void Java_org_rocksdb_IngestExternalFileOptions_setAllowGlobalSeqNo( } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: allowBlockingFlush * Signature: (J)Z */ -jboolean Java_org_rocksdb_IngestExternalFileOptions_allowBlockingFlush( +jboolean Java_org_terarkdb_IngestExternalFileOptions_allowBlockingFlush( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); @@ -127,11 +127,11 @@ jboolean Java_org_rocksdb_IngestExternalFileOptions_allowBlockingFlush( } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: setAllowBlockingFlush * Signature: (JZ)V */ -void Java_org_rocksdb_IngestExternalFileOptions_setAllowBlockingFlush( +void Java_org_terarkdb_IngestExternalFileOptions_setAllowBlockingFlush( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jallow_blocking_flush) { auto* options = @@ -140,11 +140,11 @@ void Java_org_rocksdb_IngestExternalFileOptions_setAllowBlockingFlush( } /* - * Class: org_rocksdb_IngestExternalFileOptions + * Class: org_terarkdb_IngestExternalFileOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_IngestExternalFileOptions_disposeInternal( +void Java_org_terarkdb_IngestExternalFileOptions_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); diff --git a/java/rocksjni/iterator.cc b/java/rocksjni/iterator.cc index 9d80e2c7ae..60a807aefd 100644 --- a/java/rocksjni/iterator.cc +++ b/java/rocksjni/iterator.cc @@ -10,16 +10,16 @@ #include #include -#include "include/org_rocksdb_RocksIterator.h" +#include "include/org_terarkdb_RocksIterator.h" #include "rocksdb/iterator.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_RocksIterator_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_RocksIterator_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* it = reinterpret_cast(handle); @@ -28,64 +28,64 @@ void Java_org_rocksdb_RocksIterator_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: isValid0 * Signature: (J)Z */ -jboolean Java_org_rocksdb_RocksIterator_isValid0(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_RocksIterator_isValid0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { return reinterpret_cast(handle)->Valid(); } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: seekToFirst0 * Signature: (J)V */ -void Java_org_rocksdb_RocksIterator_seekToFirst0(JNIEnv* /*env*/, +void Java_org_terarkdb_RocksIterator_seekToFirst0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->SeekToFirst(); } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: seekToLast0 * Signature: (J)V */ -void Java_org_rocksdb_RocksIterator_seekToLast0(JNIEnv* /*env*/, +void Java_org_terarkdb_RocksIterator_seekToLast0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->SeekToLast(); } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: next0 * Signature: (J)V */ -void Java_org_rocksdb_RocksIterator_next0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_RocksIterator_next0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->Next(); } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: prev0 * Signature: (J)V */ -void Java_org_rocksdb_RocksIterator_prev0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_RocksIterator_prev0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->Prev(); } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: seek0 * Signature: (J[BI)V */ -void Java_org_rocksdb_RocksIterator_seek0(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_RocksIterator_seek0(JNIEnv* env, jobject /*jobj*/, jlong handle, jbyteArray jtarget, jint jtarget_len) { jbyte* target = env->GetByteArrayElements(jtarget, nullptr); @@ -103,11 +103,11 @@ void Java_org_rocksdb_RocksIterator_seek0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: seekForPrev0 * Signature: (J[BI)V */ -void Java_org_rocksdb_RocksIterator_seekForPrev0(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_RocksIterator_seekForPrev0(JNIEnv* env, jobject /*jobj*/, jlong handle, jbyteArray jtarget, jint jtarget_len) { @@ -126,11 +126,11 @@ void Java_org_rocksdb_RocksIterator_seekForPrev0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: status0 * Signature: (J)V */ -void Java_org_rocksdb_RocksIterator_status0(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_RocksIterator_status0(JNIEnv* env, jobject /*jobj*/, jlong handle) { auto* it = reinterpret_cast(handle); TERARKDB_NAMESPACE::Status s = it->status(); @@ -143,11 +143,11 @@ void Java_org_rocksdb_RocksIterator_status0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: key0 * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_RocksIterator_key0(JNIEnv* env, jobject /*jobj*/, +jbyteArray Java_org_terarkdb_RocksIterator_key0(JNIEnv* env, jobject /*jobj*/, jlong handle) { auto* it = reinterpret_cast(handle); TERARKDB_NAMESPACE::Slice key_slice = it->key(); @@ -164,11 +164,11 @@ jbyteArray Java_org_rocksdb_RocksIterator_key0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_RocksIterator + * Class: org_terarkdb_RocksIterator * Method: value0 * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_RocksIterator_value0(JNIEnv* env, jobject /*jobj*/, +jbyteArray Java_org_terarkdb_RocksIterator_value0(JNIEnv* env, jobject /*jobj*/, jlong handle) { auto* it = reinterpret_cast(handle); TERARKDB_NAMESPACE::Slice value_slice = it->value(); diff --git a/java/rocksjni/jnicallback.cc b/java/rocksjni/jnicallback.cc index 35d7f0c9e2..e4e5f8d048 100644 --- a/java/rocksjni/jnicallback.cc +++ b/java/rocksjni/jnicallback.cc @@ -4,7 +4,7 @@ // (found in the LICENSE.Apache file in the root directory). // // This file implements the callback "bridge" between Java and C++ for -// JNI Callbacks from C++ to sub-classes or org.rocksdb.RocksCallbackObject +// JNI Callbacks from C++ to sub-classes or org.terarkdb.RocksCallbackObject #include "rocksjni/jnicallback.h" diff --git a/java/rocksjni/jnicallback.h b/java/rocksjni/jnicallback.h index 8460568e1e..ea6a125065 100644 --- a/java/rocksjni/jnicallback.h +++ b/java/rocksjni/jnicallback.h @@ -4,7 +4,7 @@ // (found in the LICENSE.Apache file in the root directory). // // This file implements the callback "bridge" between Java and C++ for -// JNI Callbacks from C++ to sub-classes or org.rocksdb.RocksCallbackObject +// JNI Callbacks from C++ to sub-classes or org.terarkdb.RocksCallbackObject #ifndef JAVA_ROCKSJNI_JNICALLBACK_H_ #define JAVA_ROCKSJNI_JNICALLBACK_H_ diff --git a/java/rocksjni/loggerjnicallback.cc b/java/rocksjni/loggerjnicallback.cc index dd05bab088..572c3407b5 100644 --- a/java/rocksjni/loggerjnicallback.cc +++ b/java/rocksjni/loggerjnicallback.cc @@ -11,7 +11,7 @@ #include #include -#include "include/org_rocksdb_Logger.h" +#include "include/org_terarkdb_Logger.h" #include "rocksdb/terark_namespace.h" #include "rocksjni/portal.h" @@ -224,11 +224,11 @@ LoggerJniCallback::~LoggerJniCallback() { } // namespace TERARKDB_NAMESPACE /* - * Class: org_rocksdb_Logger + * Class: org_terarkdb_Logger * Method: createNewLoggerOptions * Signature: (J)J */ -jlong Java_org_rocksdb_Logger_createNewLoggerOptions(JNIEnv* env, jobject jobj, +jlong Java_org_terarkdb_Logger_createNewLoggerOptions(JNIEnv* env, jobject jobj, jlong joptions) { auto* sptr_logger = new std::shared_ptr( @@ -242,11 +242,11 @@ jlong Java_org_rocksdb_Logger_createNewLoggerOptions(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_Logger + * Class: org_terarkdb_Logger * Method: createNewLoggerDbOptions * Signature: (J)J */ -jlong Java_org_rocksdb_Logger_createNewLoggerDbOptions(JNIEnv* env, +jlong Java_org_terarkdb_Logger_createNewLoggerDbOptions(JNIEnv* env, jobject jobj, jlong jdb_options) { auto* sptr_logger = @@ -262,11 +262,11 @@ jlong Java_org_rocksdb_Logger_createNewLoggerDbOptions(JNIEnv* env, } /* - * Class: org_rocksdb_Logger + * Class: org_terarkdb_Logger * Method: setInfoLogLevel * Signature: (JB)V */ -void Java_org_rocksdb_Logger_setInfoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Logger_setInfoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jlog_level) { auto* handle = reinterpret_cast*>( @@ -276,11 +276,11 @@ void Java_org_rocksdb_Logger_setInfoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Logger + * Class: org_terarkdb_Logger * Method: infoLogLevel * Signature: (J)B */ -jbyte Java_org_rocksdb_Logger_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, +jbyte Java_org_terarkdb_Logger_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* handle = reinterpret_cast*>( @@ -289,11 +289,11 @@ jbyte Java_org_rocksdb_Logger_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Logger + * Class: org_terarkdb_Logger * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_Logger_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Logger_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* handle = reinterpret_cast*>( diff --git a/java/rocksjni/lru_cache.cc b/java/rocksjni/lru_cache.cc index 0faea2b96a..bc75fa27cd 100644 --- a/java/rocksjni/lru_cache.cc +++ b/java/rocksjni/lru_cache.cc @@ -9,14 +9,14 @@ #include #include "cache/lru_cache.h" -#include "include/org_rocksdb_LRUCache.h" +#include "include/org_terarkdb_LRUCache.h" /* - * Class: org_rocksdb_LRUCache + * Class: org_terarkdb_LRUCache * Method: newLRUCache * Signature: (JIZD)J */ -jlong Java_org_rocksdb_LRUCache_newLRUCache(JNIEnv* /*env*/, jclass /*jcls*/, +jlong Java_org_terarkdb_LRUCache_newLRUCache(JNIEnv* /*env*/, jclass /*jcls*/, jlong jcapacity, jint jnum_shard_bits, jboolean jstrict_capacity_limit, @@ -30,11 +30,11 @@ jlong Java_org_rocksdb_LRUCache_newLRUCache(JNIEnv* /*env*/, jclass /*jcls*/, } /* - * Class: org_rocksdb_LRUCache + * Class: org_terarkdb_LRUCache * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_LRUCache_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_LRUCache_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_lru_cache = diff --git a/java/rocksjni/memory_util.cc b/java/rocksjni/memory_util.cc index ee593ee427..60a71143e6 100644 --- a/java/rocksjni/memory_util.cc +++ b/java/rocksjni/memory_util.cc @@ -9,7 +9,7 @@ #include #include -#include "include/org_rocksdb_MemoryUtil.h" +#include "include/org_terarkdb_MemoryUtil.h" #include "rocksjni/portal.h" @@ -17,11 +17,11 @@ /* - * Class: org_rocksdb_MemoryUtil + * Class: org_terarkdb_MemoryUtil * Method: getApproximateMemoryUsageByType * Signature: ([J[J)Ljava/util/Map; */ -jobject Java_org_rocksdb_MemoryUtil_getApproximateMemoryUsageByType( +jobject Java_org_terarkdb_MemoryUtil_getApproximateMemoryUsageByType( JNIEnv *env, jclass /*jclazz*/, jlongArray jdb_handles, jlongArray jcache_handles) { std::vector dbs; diff --git a/java/rocksjni/memtablejni.cc b/java/rocksjni/memtablejni.cc index b878d08a88..da6f8d6ac4 100644 --- a/java/rocksjni/memtablejni.cc +++ b/java/rocksjni/memtablejni.cc @@ -5,19 +5,19 @@ // // This file implements the "bridge" between Java and C++ for MemTables. -#include "include/org_rocksdb_HashLinkedListMemTableConfig.h" -#include "include/org_rocksdb_HashSkipListMemTableConfig.h" -#include "include/org_rocksdb_SkipListMemTableConfig.h" -#include "include/org_rocksdb_VectorMemTableConfig.h" +#include "include/org_terarkdb_HashLinkedListMemTableConfig.h" +#include "include/org_terarkdb_HashSkipListMemTableConfig.h" +#include "include/org_terarkdb_SkipListMemTableConfig.h" +#include "include/org_terarkdb_VectorMemTableConfig.h" #include "rocksdb/memtablerep.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_HashSkipListMemTableConfig + * Class: org_terarkdb_HashSkipListMemTableConfig * Method: newMemTableFactoryHandle * Signature: (JII)J */ -jlong Java_org_rocksdb_HashSkipListMemTableConfig_newMemTableFactoryHandle( +jlong Java_org_terarkdb_HashSkipListMemTableConfig_newMemTableFactoryHandle( JNIEnv* env, jobject /*jobj*/, jlong jbucket_count, jint jheight, jint jbranching_factor) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(jbucket_count); @@ -31,11 +31,11 @@ jlong Java_org_rocksdb_HashSkipListMemTableConfig_newMemTableFactoryHandle( } /* - * Class: org_rocksdb_HashLinkedListMemTableConfig + * Class: org_terarkdb_HashLinkedListMemTableConfig * Method: newMemTableFactoryHandle * Signature: (JJIZI)J */ -jlong Java_org_rocksdb_HashLinkedListMemTableConfig_newMemTableFactoryHandle( +jlong Java_org_terarkdb_HashLinkedListMemTableConfig_newMemTableFactoryHandle( JNIEnv* env, jobject /*jobj*/, jlong jbucket_count, jlong jhuge_page_tlb_size, jint jbucket_entries_logging_threshold, jboolean jif_log_bucket_dist_when_flash, jint jthreshold_use_skiplist) { @@ -57,11 +57,11 @@ jlong Java_org_rocksdb_HashLinkedListMemTableConfig_newMemTableFactoryHandle( } /* - * Class: org_rocksdb_VectorMemTableConfig + * Class: org_terarkdb_VectorMemTableConfig * Method: newMemTableFactoryHandle * Signature: (J)J */ -jlong Java_org_rocksdb_VectorMemTableConfig_newMemTableFactoryHandle( +jlong Java_org_terarkdb_VectorMemTableConfig_newMemTableFactoryHandle( JNIEnv* env, jobject /*jobj*/, jlong jreserved_size) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(jreserved_size); if (s.ok()) { @@ -73,11 +73,11 @@ jlong Java_org_rocksdb_VectorMemTableConfig_newMemTableFactoryHandle( } /* - * Class: org_rocksdb_SkipListMemTableConfig + * Class: org_terarkdb_SkipListMemTableConfig * Method: newMemTableFactoryHandle0 * Signature: (J)J */ -jlong Java_org_rocksdb_SkipListMemTableConfig_newMemTableFactoryHandle0( +jlong Java_org_terarkdb_SkipListMemTableConfig_newMemTableFactoryHandle0( JNIEnv* env, jobject /*jobj*/, jlong jlookahead) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(jlookahead); if (s.ok()) { diff --git a/java/rocksjni/merge_operator.cc b/java/rocksjni/merge_operator.cc index ec7a1790f8..f72fb42aaa 100644 --- a/java/rocksjni/merge_operator.cc +++ b/java/rocksjni/merge_operator.cc @@ -12,9 +12,9 @@ #include #include -#include "include/org_rocksdb_StringAppendOperator.h" -#include "include/org_rocksdb_StringAppendOperatorWithVariableDelimitor.h" -#include "include/org_rocksdb_UInt64AddOperator.h" +#include "include/org_terarkdb_StringAppendOperator.h" +#include "include/org_terarkdb_StringAppendOperatorWithVariableDelimitor.h" +#include "include/org_terarkdb_UInt64AddOperator.h" #include "rocksdb/db.h" #include "rocksdb/memtablerep.h" #include "rocksdb/merge_operator.h" @@ -26,11 +26,11 @@ #include "utilities/merge_operators.h" /* - * Class: org_rocksdb_StringAppendOperator + * Class: org_terarkdb_StringAppendOperator * Method: newSharedStringAppendOperator * Signature: (C)J */ -jlong Java_org_rocksdb_StringAppendOperator_newSharedStringAppendOperator( +jlong Java_org_terarkdb_StringAppendOperator_newSharedStringAppendOperator( JNIEnv* /*env*/, jclass /*jclazz*/, jchar jdelim) { auto* sptr_string_append_op = new std::shared_ptr( TERARKDB_NAMESPACE::MergeOperators::CreateStringAppendOperator((char)jdelim)); @@ -38,11 +38,11 @@ jlong Java_org_rocksdb_StringAppendOperator_newSharedStringAppendOperator( } /* - * Class: org_rocksdb_StringAppendOperator + * Class: org_terarkdb_StringAppendOperator * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_StringAppendOperator_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_StringAppendOperator_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_string_append_op = @@ -52,11 +52,11 @@ void Java_org_rocksdb_StringAppendOperator_disposeInternal(JNIEnv* /*env*/, /* - * Class: org_rocksdb_StringAppendOperatorWithVariableDelimitor + * Class: org_terarkdb_StringAppendOperatorWithVariableDelimitor * Method: newSharedStringAppendTESTOperator * Signature: ([B)J */ -jlong Java_org_rocksdb_StringAppendOperatorWithVariableDelimitor_newSharedStringAppendTESTOperator( +jlong Java_org_terarkdb_StringAppendOperatorWithVariableDelimitor_newSharedStringAppendTESTOperator( JNIEnv* env, jclass /*jclazz*/, jbyteArray jdelim) { jboolean has_exception = JNI_FALSE; std::string delim = TERARKDB_NAMESPACE::JniUtil::byteString( @@ -74,11 +74,11 @@ jlong Java_org_rocksdb_StringAppendOperatorWithVariableDelimitor_newSharedString } /* - * Class: org_rocksdb_StringAppendOperatorWithVariableDelimitor + * Class: org_terarkdb_StringAppendOperatorWithVariableDelimitor * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_StringAppendOperatorWithVariableDelimitor_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_StringAppendOperatorWithVariableDelimitor_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_string_append_test_op = @@ -87,11 +87,11 @@ void Java_org_rocksdb_StringAppendOperatorWithVariableDelimitor_disposeInternal( } /* - * Class: org_rocksdb_UInt64AddOperator + * Class: org_terarkdb_UInt64AddOperator * Method: newSharedUInt64AddOperator * Signature: ()J */ -jlong Java_org_rocksdb_UInt64AddOperator_newSharedUInt64AddOperator( +jlong Java_org_terarkdb_UInt64AddOperator_newSharedUInt64AddOperator( JNIEnv* /*env*/, jclass /*jclazz*/) { auto* sptr_uint64_add_op = new std::shared_ptr( TERARKDB_NAMESPACE::MergeOperators::CreateUInt64AddOperator()); @@ -99,11 +99,11 @@ jlong Java_org_rocksdb_UInt64AddOperator_newSharedUInt64AddOperator( } /* - * Class: org_rocksdb_UInt64AddOperator + * Class: org_terarkdb_UInt64AddOperator * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_UInt64AddOperator_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_UInt64AddOperator_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_uint64_add_op = diff --git a/java/rocksjni/native_comparator_wrapper_test.cc b/java/rocksjni/native_comparator_wrapper_test.cc index 2cb4c7a87c..23ebfb458d 100644 --- a/java/rocksjni/native_comparator_wrapper_test.cc +++ b/java/rocksjni/native_comparator_wrapper_test.cc @@ -7,7 +7,7 @@ #include -#include "include/org_rocksdb_NativeComparatorWrapperTest_NativeStringComparatorWrapper.h" +#include "include/org_terarkdb_NativeComparatorWrapperTest_NativeStringComparatorWrapper.h" #include "rocksdb/comparator.h" #include "rocksdb/slice.h" #include "rocksdb/terark_namespace.h" @@ -33,11 +33,11 @@ class NativeComparatorWrapperTestStringComparator : public Comparator { } // namespace TERARKDB_NAMESPACE /* - * Class: org_rocksdb_NativeComparatorWrapperTest_NativeStringComparatorWrapper + * Class: org_terarkdb_NativeComparatorWrapperTest_NativeStringComparatorWrapper * Method: newStringComparator * Signature: ()J */ -jlong Java_org_rocksdb_NativeComparatorWrapperTest_00024NativeStringComparatorWrapper_newStringComparator( +jlong Java_org_terarkdb_NativeComparatorWrapperTest_00024NativeStringComparatorWrapper_newStringComparator( JNIEnv* /*env*/, jobject /*jobj*/) { auto* comparator = new TERARKDB_NAMESPACE::NativeComparatorWrapperTestStringComparator(); diff --git a/java/rocksjni/optimistic_transaction_db.cc b/java/rocksjni/optimistic_transaction_db.cc index 958e8a5c79..5086f8354a 100644 --- a/java/rocksjni/optimistic_transaction_db.cc +++ b/java/rocksjni/optimistic_transaction_db.cc @@ -8,7 +8,7 @@ #include -#include "include/org_rocksdb_OptimisticTransactionDB.h" +#include "include/org_terarkdb_OptimisticTransactionDB.h" #include "rocksdb/options.h" #include "rocksdb/utilities/optimistic_transaction_db.h" @@ -17,11 +17,11 @@ #include "rocksjni/portal.h" /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: open * Signature: (JLjava/lang/String;)J */ -jlong Java_org_rocksdb_OptimisticTransactionDB_open__JLjava_lang_String_2( +jlong Java_org_terarkdb_OptimisticTransactionDB_open__JLjava_lang_String_2( JNIEnv* env, jclass /*jcls*/, jlong joptions_handle, jstring jdb_path) { const char* db_path = env->GetStringUTFChars(jdb_path, nullptr); if (db_path == nullptr) { @@ -44,12 +44,12 @@ jlong Java_org_rocksdb_OptimisticTransactionDB_open__JLjava_lang_String_2( } /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: open * Signature: (JLjava/lang/String;[[B[J)[J */ jlongArray -Java_org_rocksdb_OptimisticTransactionDB_open__JLjava_lang_String_2_3_3B_3J( +Java_org_terarkdb_OptimisticTransactionDB_open__JLjava_lang_String_2_3_3B_3J( JNIEnv* env, jclass /*jcls*/, jlong jdb_options_handle, jstring jdb_path, jobjectArray jcolumn_names, jlongArray jcolumn_options_handles) { const char* db_path = env->GetStringUTFChars(jdb_path, nullptr); @@ -151,11 +151,11 @@ Java_org_rocksdb_OptimisticTransactionDB_open__JLjava_lang_String_2_3_3B_3J( } /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: beginTransaction * Signature: (JJ)J */ -jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction__JJ( +jlong Java_org_terarkdb_OptimisticTransactionDB_beginTransaction__JJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle) { auto* optimistic_txn_db = @@ -168,11 +168,11 @@ jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction__JJ( } /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: beginTransaction * Signature: (JJJ)J */ -jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction__JJJ( +jlong Java_org_terarkdb_OptimisticTransactionDB_beginTransaction__JJJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle, jlong joptimistic_txn_options_handle) { auto* optimistic_txn_db = @@ -188,11 +188,11 @@ jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction__JJJ( } /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: beginTransaction_withOld * Signature: (JJJ)J */ -jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction_1withOld__JJJ( +jlong Java_org_terarkdb_OptimisticTransactionDB_beginTransaction_1withOld__JJJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle, jlong jold_txn_handle) { auto* optimistic_txn_db = @@ -213,11 +213,11 @@ jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction_1withOld__JJJ( } /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: beginTransaction_withOld * Signature: (JJJJ)J */ -jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction_1withOld__JJJJ( +jlong Java_org_terarkdb_OptimisticTransactionDB_beginTransaction_1withOld__JJJJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle, jlong joptimistic_txn_options_handle, jlong jold_txn_handle) { @@ -241,11 +241,11 @@ jlong Java_org_rocksdb_OptimisticTransactionDB_beginTransaction_1withOld__JJJJ( } /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: getBaseDB * Signature: (J)J */ -jlong Java_org_rocksdb_OptimisticTransactionDB_getBaseDB(JNIEnv* /*env*/, +jlong Java_org_terarkdb_OptimisticTransactionDB_getBaseDB(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* optimistic_txn_db = @@ -254,11 +254,11 @@ jlong Java_org_rocksdb_OptimisticTransactionDB_getBaseDB(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_OptimisticTransactionDB + * Class: org_terarkdb_OptimisticTransactionDB * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_OptimisticTransactionDB_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_OptimisticTransactionDB_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); diff --git a/java/rocksjni/optimistic_transaction_options.cc b/java/rocksjni/optimistic_transaction_options.cc index 909512b097..dae8b32d18 100644 --- a/java/rocksjni/optimistic_transaction_options.cc +++ b/java/rocksjni/optimistic_transaction_options.cc @@ -8,17 +8,17 @@ #include -#include "include/org_rocksdb_OptimisticTransactionOptions.h" +#include "include/org_terarkdb_OptimisticTransactionOptions.h" #include "rocksdb/comparator.h" #include "rocksdb/utilities/optimistic_transaction_db.h" /* - * Class: org_rocksdb_OptimisticTransactionOptions + * Class: org_terarkdb_OptimisticTransactionOptions * Method: newOptimisticTransactionOptions * Signature: ()J */ -jlong Java_org_rocksdb_OptimisticTransactionOptions_newOptimisticTransactionOptions( +jlong Java_org_terarkdb_OptimisticTransactionOptions_newOptimisticTransactionOptions( JNIEnv* /*env*/, jclass /*jcls*/) { TERARKDB_NAMESPACE::OptimisticTransactionOptions* opts = new TERARKDB_NAMESPACE::OptimisticTransactionOptions(); @@ -26,11 +26,11 @@ jlong Java_org_rocksdb_OptimisticTransactionOptions_newOptimisticTransactionOpti } /* - * Class: org_rocksdb_OptimisticTransactionOptions + * Class: org_terarkdb_OptimisticTransactionOptions * Method: isSetSnapshot * Signature: (J)Z */ -jboolean Java_org_rocksdb_OptimisticTransactionOptions_isSetSnapshot( +jboolean Java_org_terarkdb_OptimisticTransactionOptions_isSetSnapshot( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -38,11 +38,11 @@ jboolean Java_org_rocksdb_OptimisticTransactionOptions_isSetSnapshot( } /* - * Class: org_rocksdb_OptimisticTransactionOptions + * Class: org_terarkdb_OptimisticTransactionOptions * Method: setSetSnapshot * Signature: (JZ)V */ -void Java_org_rocksdb_OptimisticTransactionOptions_setSetSnapshot( +void Java_org_terarkdb_OptimisticTransactionOptions_setSetSnapshot( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jset_snapshot) { auto* opts = reinterpret_cast(jhandle); @@ -50,11 +50,11 @@ void Java_org_rocksdb_OptimisticTransactionOptions_setSetSnapshot( } /* - * Class: org_rocksdb_OptimisticTransactionOptions + * Class: org_terarkdb_OptimisticTransactionOptions * Method: setComparator * Signature: (JJ)V */ -void Java_org_rocksdb_OptimisticTransactionOptions_setComparator( +void Java_org_terarkdb_OptimisticTransactionOptions_setComparator( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcomparator_handle) { auto* opts = @@ -63,11 +63,11 @@ void Java_org_rocksdb_OptimisticTransactionOptions_setComparator( } /* - * Class: org_rocksdb_OptimisticTransactionOptions + * Class: org_terarkdb_OptimisticTransactionOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_OptimisticTransactionOptions_disposeInternal( +void Java_org_terarkdb_OptimisticTransactionOptions_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); } diff --git a/java/rocksjni/options.cc b/java/rocksjni/options.cc index d8c853694c..e2fbd95dd7 100644 --- a/java/rocksjni/options.cc +++ b/java/rocksjni/options.cc @@ -15,13 +15,13 @@ #include #include -#include "include/org_rocksdb_ColumnFamilyOptions.h" -#include "include/org_rocksdb_ComparatorOptions.h" -#include "include/org_rocksdb_DBOptions.h" -#include "include/org_rocksdb_FlushOptions.h" -#include "include/org_rocksdb_Options.h" -#include "include/org_rocksdb_ReadOptions.h" -#include "include/org_rocksdb_WriteOptions.h" +#include "include/org_terarkdb_ColumnFamilyOptions.h" +#include "include/org_terarkdb_ComparatorOptions.h" +#include "include/org_terarkdb_DBOptions.h" +#include "include/org_terarkdb_FlushOptions.h" +#include "include/org_terarkdb_Options.h" +#include "include/org_terarkdb_ReadOptions.h" +#include "include/org_terarkdb_WriteOptions.h" #include "rocksdb/comparator.h" #include "rocksdb/convenience.h" #include "rocksdb/db.h" @@ -38,21 +38,21 @@ #include "utilities/merge_operators.h" /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: newOptions * Signature: ()J */ -jlong Java_org_rocksdb_Options_newOptions__(JNIEnv* /*env*/, jclass /*jcls*/) { +jlong Java_org_terarkdb_Options_newOptions__(JNIEnv* /*env*/, jclass /*jcls*/) { auto* op = new TERARKDB_NAMESPACE::Options(); return reinterpret_cast(op); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: newOptions * Signature: (JJ)J */ -jlong Java_org_rocksdb_Options_newOptions__JJ(JNIEnv* /*env*/, jclass /*jcls*/, +jlong Java_org_terarkdb_Options_newOptions__JJ(JNIEnv* /*env*/, jclass /*jcls*/, jlong jdboptions, jlong jcfoptions) { auto* dbOpt = @@ -65,11 +65,11 @@ jlong Java_org_rocksdb_Options_newOptions__JJ(JNIEnv* /*env*/, jclass /*jcls*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: copyOptions * Signature: (J)J */ -jlong Java_org_rocksdb_Options_copyOptions(JNIEnv* /*env*/, jclass /*jcls*/, +jlong Java_org_terarkdb_Options_copyOptions(JNIEnv* /*env*/, jclass /*jcls*/, jlong jhandle) { auto new_opt = new TERARKDB_NAMESPACE::Options( *(reinterpret_cast(jhandle))); @@ -77,11 +77,11 @@ jlong Java_org_rocksdb_Options_copyOptions(JNIEnv* /*env*/, jclass /*jcls*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_Options_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* op = reinterpret_cast(handle); assert(op != nullptr); @@ -89,11 +89,11 @@ void Java_org_rocksdb_Options_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setIncreaseParallelism * Signature: (JI)V */ -void Java_org_rocksdb_Options_setIncreaseParallelism(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setIncreaseParallelism(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint totalThreads) { @@ -102,11 +102,11 @@ void Java_org_rocksdb_Options_setIncreaseParallelism(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCreateIfMissing * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setCreateIfMissing(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setCreateIfMissing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { reinterpret_cast(jhandle)->create_if_missing = @@ -114,11 +114,11 @@ void Java_org_rocksdb_Options_setCreateIfMissing(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: createIfMissing * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_createIfMissing(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_createIfMissing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -126,11 +126,11 @@ jboolean Java_org_rocksdb_Options_createIfMissing(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCreateMissingColumnFamilies * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setCreateMissingColumnFamilies(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setCreateMissingColumnFamilies(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { @@ -139,11 +139,11 @@ void Java_org_rocksdb_Options_setCreateMissingColumnFamilies(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: createMissingColumnFamilies * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_createMissingColumnFamilies(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_createMissingColumnFamilies(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -151,11 +151,11 @@ jboolean Java_org_rocksdb_Options_createMissingColumnFamilies(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setComparatorHandle * Signature: (JI)V */ -void Java_org_rocksdb_Options_setComparatorHandle__JI(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setComparatorHandle__JI(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint builtinComparator) { @@ -172,11 +172,11 @@ void Java_org_rocksdb_Options_setComparatorHandle__JI(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setComparatorHandle * Signature: (JJB)V */ -void Java_org_rocksdb_Options_setComparatorHandle__JJB(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setComparatorHandle__JJB(JNIEnv* /*env*/, jobject /*jobj*/, jlong jopt_handle, jlong jcomparator_handle, @@ -207,11 +207,11 @@ void Java_org_rocksdb_Options_setComparatorHandle__JJB(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMergeOperatorName * Signature: (JJjava/lang/String)V */ -void Java_org_rocksdb_Options_setMergeOperatorName(JNIEnv* env, +void Java_org_terarkdb_Options_setMergeOperatorName(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jop_name) { @@ -229,11 +229,11 @@ void Java_org_rocksdb_Options_setMergeOperatorName(JNIEnv* env, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMergeOperator * Signature: (JJjava/lang/String)V */ -void Java_org_rocksdb_Options_setMergeOperator(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setMergeOperator(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong mergeOperatorHandle) { reinterpret_cast(jhandle)->merge_operator = @@ -242,11 +242,11 @@ void Java_org_rocksdb_Options_setMergeOperator(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWriteBufferSize * Signature: (JJ)I */ -void Java_org_rocksdb_Options_setWriteBufferSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setWriteBufferSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jwrite_buffer_size) { TERARKDB_NAMESPACE::Status s = @@ -260,11 +260,11 @@ void Java_org_rocksdb_Options_setWriteBufferSize(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWriteBufferManager * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setWriteBufferManager( +void Java_org_terarkdb_Options_setWriteBufferManager( JNIEnv* /*env*/, jobject /*jobj*/, jlong joptions_handle, jlong jwrite_buffer_manager_handle) { auto* write_buffer_manager = reinterpret_cast< @@ -275,11 +275,11 @@ void Java_org_rocksdb_Options_setWriteBufferManager( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: writeBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_writeBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_writeBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -287,11 +287,11 @@ jlong Java_org_rocksdb_Options_writeBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxWriteBufferNumber * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxWriteBufferNumber( +void Java_org_terarkdb_Options_setMaxWriteBufferNumber( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_write_buffer_number) { reinterpret_cast(jhandle) @@ -299,11 +299,11 @@ void Java_org_rocksdb_Options_setMaxWriteBufferNumber( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setStatistics * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setStatistics(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setStatistics(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jstatistics_handle) { auto* opt = reinterpret_cast(jhandle); @@ -314,11 +314,11 @@ void Java_org_rocksdb_Options_setStatistics(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: statistics * Signature: (J)J */ -jlong Java_org_rocksdb_Options_statistics(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_statistics(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); std::shared_ptr sptr = opt->statistics; @@ -332,11 +332,11 @@ jlong Java_org_rocksdb_Options_statistics(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxWriteBufferNumber * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxWriteBufferNumber(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_maxWriteBufferNumber(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -344,11 +344,11 @@ jint Java_org_rocksdb_Options_maxWriteBufferNumber(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: errorIfExists * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_errorIfExists(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_errorIfExists(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -356,11 +356,11 @@ jboolean Java_org_rocksdb_Options_errorIfExists(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setErrorIfExists * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setErrorIfExists(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setErrorIfExists(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean error_if_exists) { reinterpret_cast(jhandle)->error_if_exists = @@ -368,11 +368,11 @@ void Java_org_rocksdb_Options_setErrorIfExists(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: paranoidChecks * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_paranoidChecks(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_paranoidChecks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -380,11 +380,11 @@ jboolean Java_org_rocksdb_Options_paranoidChecks(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setParanoidChecks * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setParanoidChecks(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setParanoidChecks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean paranoid_checks) { reinterpret_cast(jhandle)->paranoid_checks = @@ -392,22 +392,22 @@ void Java_org_rocksdb_Options_setParanoidChecks(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setEnv * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setEnv(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setEnv(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jenv) { reinterpret_cast(jhandle)->env = reinterpret_cast(jenv); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxTotalWalSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMaxTotalWalSize(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setMaxTotalWalSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_total_wal_size) { @@ -416,11 +416,11 @@ void Java_org_rocksdb_Options_setMaxTotalWalSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxTotalWalSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_maxTotalWalSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_maxTotalWalSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -428,22 +428,22 @@ jlong Java_org_rocksdb_Options_maxTotalWalSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxOpenFiles * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, +jint Java_org_terarkdb_Options_maxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_open_files; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxOpenFiles * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setMaxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_open_files) { reinterpret_cast(jhandle)->max_open_files = @@ -451,11 +451,11 @@ void Java_org_rocksdb_Options_setMaxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxFileOpeningThreads * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxFileOpeningThreads( +void Java_org_terarkdb_Options_setMaxFileOpeningThreads( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_file_opening_threads) { reinterpret_cast(jhandle) @@ -463,11 +463,11 @@ void Java_org_rocksdb_Options_setMaxFileOpeningThreads( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxFileOpeningThreads * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxFileOpeningThreads(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_maxFileOpeningThreads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -475,32 +475,32 @@ jint Java_org_rocksdb_Options_maxFileOpeningThreads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: useFsync * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_useFsync(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_Options_useFsync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle)->use_fsync; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setUseFsync * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setUseFsync(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setUseFsync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_fsync) { reinterpret_cast(jhandle)->use_fsync = static_cast(use_fsync); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setDbPaths * Signature: (J[Ljava/lang/String;[J)V */ -void Java_org_rocksdb_Options_setDbPaths(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setDbPaths(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jpaths, jlongArray jtarget_sizes) { std::vector db_paths; @@ -542,22 +542,22 @@ void Java_org_rocksdb_Options_setDbPaths(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: dbPathsLen * Signature: (J)J */ -jlong Java_org_rocksdb_Options_dbPathsLen(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_dbPathsLen(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->db_paths.size()); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: dbPaths * Signature: (J[Ljava/lang/String;[J)V */ -void Java_org_rocksdb_Options_dbPaths(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_dbPaths(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jpaths, jlongArray jtarget_sizes) { jlong* ptr_jtarget_size = env->GetLongArrayElements(jtarget_sizes, nullptr); @@ -592,11 +592,11 @@ void Java_org_rocksdb_Options_dbPaths(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: dbLogDir * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_Options_dbLogDir(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_Options_dbLogDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { return env->NewStringUTF( reinterpret_cast(jhandle) @@ -604,11 +604,11 @@ jstring Java_org_rocksdb_Options_dbLogDir(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setDbLogDir * Signature: (JLjava/lang/String)V */ -void Java_org_rocksdb_Options_setDbLogDir(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setDbLogDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jdb_log_dir) { const char* log_dir = env->GetStringUTFChars(jdb_log_dir, nullptr); if (log_dir == nullptr) { @@ -621,22 +621,22 @@ void Java_org_rocksdb_Options_setDbLogDir(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: walDir * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_Options_walDir(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_Options_walDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { return env->NewStringUTF( reinterpret_cast(jhandle)->wal_dir.c_str()); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWalDir * Signature: (JLjava/lang/String)V */ -void Java_org_rocksdb_Options_setWalDir(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setWalDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jwal_dir) { const char* wal_dir = env->GetStringUTFChars(jwal_dir, nullptr); if (wal_dir == nullptr) { @@ -649,11 +649,11 @@ void Java_org_rocksdb_Options_setWalDir(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: deleteObsoleteFilesPeriodMicros * Signature: (J)J */ -jlong Java_org_rocksdb_Options_deleteObsoleteFilesPeriodMicros(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_deleteObsoleteFilesPeriodMicros(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -661,22 +661,22 @@ jlong Java_org_rocksdb_Options_deleteObsoleteFilesPeriodMicros(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setDeleteObsoleteFilesPeriodMicros * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setDeleteObsoleteFilesPeriodMicros( +void Java_org_terarkdb_Options_setDeleteObsoleteFilesPeriodMicros( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong micros) { reinterpret_cast(jhandle) ->delete_obsolete_files_period_micros = static_cast(micros); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setBaseBackgroundCompactions * Signature: (JI)V */ -void Java_org_rocksdb_Options_setBaseBackgroundCompactions(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setBaseBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max) { @@ -685,11 +685,11 @@ void Java_org_rocksdb_Options_setBaseBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: baseBackgroundCompactions * Signature: (J)I */ -jint Java_org_rocksdb_Options_baseBackgroundCompactions(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_baseBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -697,11 +697,11 @@ jint Java_org_rocksdb_Options_baseBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxBackgroundCompactions * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxBackgroundCompactions(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_maxBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -709,11 +709,11 @@ jint Java_org_rocksdb_Options_maxBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxBackgroundCompactions * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxBackgroundCompactions(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setMaxBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max) { @@ -722,11 +722,11 @@ void Java_org_rocksdb_Options_setMaxBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxSubcompactions * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxSubcompactions(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setMaxSubcompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max) { reinterpret_cast(jhandle)->max_subcompactions @@ -735,22 +735,22 @@ void Java_org_rocksdb_Options_setMaxSubcompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxSubcompactions * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxSubcompactions(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_maxSubcompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return 0; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxBackgroundFlushes * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxBackgroundFlushes(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_maxBackgroundFlushes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -758,11 +758,11 @@ jint Java_org_rocksdb_Options_maxBackgroundFlushes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxBackgroundFlushes * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxBackgroundFlushes( +void Java_org_terarkdb_Options_setMaxBackgroundFlushes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_background_flushes) { reinterpret_cast(jhandle) @@ -770,11 +770,11 @@ void Java_org_rocksdb_Options_setMaxBackgroundFlushes( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxBackgroundJobs * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxBackgroundJobs(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_maxBackgroundJobs(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -782,11 +782,11 @@ jint Java_org_rocksdb_Options_maxBackgroundJobs(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxBackgroundJobs * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxBackgroundJobs(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setMaxBackgroundJobs(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_background_jobs) { @@ -795,22 +795,22 @@ void Java_org_rocksdb_Options_setMaxBackgroundJobs(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxLogFileSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_maxLogFileSize(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_maxLogFileSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_log_file_size; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxLogFileSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMaxLogFileSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setMaxLogFileSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong max_log_file_size) { TERARKDB_NAMESPACE::Status s = @@ -824,11 +824,11 @@ void Java_org_rocksdb_Options_setMaxLogFileSize(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: logFileTimeToRoll * Signature: (J)J */ -jlong Java_org_rocksdb_Options_logFileTimeToRoll(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_logFileTimeToRoll(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -836,11 +836,11 @@ jlong Java_org_rocksdb_Options_logFileTimeToRoll(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLogFileTimeToRoll * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setLogFileTimeToRoll( +void Java_org_terarkdb_Options_setLogFileTimeToRoll( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong log_file_time_to_roll) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(log_file_time_to_roll); @@ -853,22 +853,22 @@ void Java_org_rocksdb_Options_setLogFileTimeToRoll( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: keepLogFileNum * Signature: (J)J */ -jlong Java_org_rocksdb_Options_keepLogFileNum(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_keepLogFileNum(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->keep_log_file_num; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setKeepLogFileNum * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setKeepLogFileNum(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setKeepLogFileNum(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong keep_log_file_num) { TERARKDB_NAMESPACE::Status s = @@ -882,11 +882,11 @@ void Java_org_rocksdb_Options_setKeepLogFileNum(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: recycleLogFileNum * Signature: (J)J */ -jlong Java_org_rocksdb_Options_recycleLogFileNum(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_recycleLogFileNum(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -894,11 +894,11 @@ jlong Java_org_rocksdb_Options_recycleLogFileNum(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setRecycleLogFileNum * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setRecycleLogFileNum(JNIEnv* env, +void Java_org_terarkdb_Options_setRecycleLogFileNum(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong recycle_log_file_num) { @@ -913,11 +913,11 @@ void Java_org_rocksdb_Options_setRecycleLogFileNum(JNIEnv* env, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxManifestFileSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_maxManifestFileSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_maxManifestFileSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -928,7 +928,7 @@ jlong Java_org_rocksdb_Options_maxManifestFileSize(JNIEnv* /*env*/, * Method: memTableFactoryName * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_Options_memTableFactoryName(JNIEnv* env, +jstring Java_org_terarkdb_Options_memTableFactoryName(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -947,11 +947,11 @@ jstring Java_org_rocksdb_Options_memTableFactoryName(JNIEnv* env, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxManifestFileSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMaxManifestFileSize( +void Java_org_terarkdb_Options_setMaxManifestFileSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong max_manifest_file_size) { reinterpret_cast(jhandle) @@ -962,7 +962,7 @@ void Java_org_rocksdb_Options_setMaxManifestFileSize( * Method: setMemTableFactory * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMemTableFactory(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setMemTableFactory(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jfactory_handle) { @@ -973,11 +973,11 @@ void Java_org_rocksdb_Options_setMemTableFactory(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setRateLimiter * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setRateLimiter(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setRateLimiter(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrate_limiter_handle) { std::shared_ptr* pRateLimiter = @@ -988,11 +988,11 @@ void Java_org_rocksdb_Options_setRateLimiter(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setSstFileManager * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setSstFileManager( +void Java_org_terarkdb_Options_setSstFileManager( JNIEnv* /*env*/, jobject /*job*/, jlong jhandle, jlong jsst_file_manager_handle) { auto* sptr_sst_file_manager = @@ -1003,11 +1003,11 @@ void Java_org_rocksdb_Options_setSstFileManager( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLogger * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setLogger(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setLogger(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jlogger_handle) { std::shared_ptr* pLogger = reinterpret_cast*>( @@ -1016,33 +1016,33 @@ void Java_org_rocksdb_Options_setLogger(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setInfoLogLevel * Signature: (JB)V */ -void Java_org_rocksdb_Options_setInfoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setInfoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jlog_level) { reinterpret_cast(jhandle)->info_log_level = static_cast(jlog_level); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: infoLogLevel * Signature: (J)B */ -jbyte Java_org_rocksdb_Options_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, +jbyte Java_org_terarkdb_Options_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return static_cast( reinterpret_cast(jhandle)->info_log_level); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: tableCacheNumshardbits * Signature: (J)I */ -jint Java_org_rocksdb_Options_tableCacheNumshardbits(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_tableCacheNumshardbits(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1050,11 +1050,11 @@ jint Java_org_rocksdb_Options_tableCacheNumshardbits(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setTableCacheNumshardbits * Signature: (JI)V */ -void Java_org_rocksdb_Options_setTableCacheNumshardbits( +void Java_org_terarkdb_Options_setTableCacheNumshardbits( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint table_cache_numshardbits) { reinterpret_cast(jhandle) @@ -1065,7 +1065,7 @@ void Java_org_rocksdb_Options_setTableCacheNumshardbits( * Method: useFixedLengthPrefixExtractor * Signature: (JI)V */ -void Java_org_rocksdb_Options_useFixedLengthPrefixExtractor( +void Java_org_terarkdb_Options_useFixedLengthPrefixExtractor( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jprefix_length) { reinterpret_cast(jhandle) ->prefix_extractor.reset(TERARKDB_NAMESPACE::NewFixedPrefixTransform( @@ -1076,7 +1076,7 @@ void Java_org_rocksdb_Options_useFixedLengthPrefixExtractor( * Method: useCappedPrefixExtractor * Signature: (JI)V */ -void Java_org_rocksdb_Options_useCappedPrefixExtractor(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_useCappedPrefixExtractor(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jprefix_length) { @@ -1086,22 +1086,22 @@ void Java_org_rocksdb_Options_useCappedPrefixExtractor(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: walTtlSeconds * Signature: (J)J */ -jlong Java_org_rocksdb_Options_walTtlSeconds(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_walTtlSeconds(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->WAL_ttl_seconds; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWalTtlSeconds * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setWalTtlSeconds(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setWalTtlSeconds(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong WAL_ttl_seconds) { reinterpret_cast(jhandle)->WAL_ttl_seconds = @@ -1109,22 +1109,22 @@ void Java_org_rocksdb_Options_setWalTtlSeconds(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: walTtlSeconds * Signature: (J)J */ -jlong Java_org_rocksdb_Options_walSizeLimitMB(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_walSizeLimitMB(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->WAL_size_limit_MB; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWalSizeLimitMB * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setWalSizeLimitMB(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setWalSizeLimitMB(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong WAL_size_limit_MB) { reinterpret_cast(jhandle)->WAL_size_limit_MB = @@ -1132,11 +1132,11 @@ void Java_org_rocksdb_Options_setWalSizeLimitMB(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: manifestPreallocationSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_manifestPreallocationSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_manifestPreallocationSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1144,11 +1144,11 @@ jlong Java_org_rocksdb_Options_manifestPreallocationSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setManifestPreallocationSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setManifestPreallocationSize( +void Java_org_terarkdb_Options_setManifestPreallocationSize( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong preallocation_size) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(preallocation_size); @@ -1164,7 +1164,7 @@ void Java_org_rocksdb_Options_setManifestPreallocationSize( * Method: setTableFactory * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setTableFactory(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setTableFactory(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jfactory_handle) { reinterpret_cast(jhandle)->table_factory.reset( @@ -1172,11 +1172,11 @@ void Java_org_rocksdb_Options_setTableFactory(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: allowMmapReads * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_allowMmapReads(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_allowMmapReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1184,11 +1184,11 @@ jboolean Java_org_rocksdb_Options_allowMmapReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAllowMmapReads * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAllowMmapReads(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setAllowMmapReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow_mmap_reads) { reinterpret_cast(jhandle)->allow_mmap_reads = @@ -1196,11 +1196,11 @@ void Java_org_rocksdb_Options_setAllowMmapReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: allowMmapWrites * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_allowMmapWrites(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_allowMmapWrites(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1208,11 +1208,11 @@ jboolean Java_org_rocksdb_Options_allowMmapWrites(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAllowMmapWrites * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAllowMmapWrites(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setAllowMmapWrites(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow_mmap_writes) { @@ -1221,11 +1221,11 @@ void Java_org_rocksdb_Options_setAllowMmapWrites(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: useDirectReads * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_useDirectReads(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_useDirectReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1233,11 +1233,11 @@ jboolean Java_org_rocksdb_Options_useDirectReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setUseDirectReads * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setUseDirectReads(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setUseDirectReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_direct_reads) { reinterpret_cast(jhandle)->use_direct_reads = @@ -1245,22 +1245,22 @@ void Java_org_rocksdb_Options_setUseDirectReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: useDirectIoForFlushAndCompaction * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_useDirectIoForFlushAndCompaction( +jboolean Java_org_terarkdb_Options_useDirectIoForFlushAndCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->use_direct_io_for_flush_and_compaction; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setUseDirectIoForFlushAndCompaction * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setUseDirectIoForFlushAndCompaction( +void Java_org_terarkdb_Options_setUseDirectIoForFlushAndCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_direct_io_for_flush_and_compaction) { reinterpret_cast(jhandle) @@ -1269,11 +1269,11 @@ void Java_org_rocksdb_Options_setUseDirectIoForFlushAndCompaction( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAllowFAllocate * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAllowFAllocate(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setAllowFAllocate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jallow_fallocate) { reinterpret_cast(jhandle)->allow_fallocate = @@ -1281,11 +1281,11 @@ void Java_org_rocksdb_Options_setAllowFAllocate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: allowFAllocate * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_allowFAllocate(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_allowFAllocate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1293,11 +1293,11 @@ jboolean Java_org_rocksdb_Options_allowFAllocate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: isFdCloseOnExec * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_isFdCloseOnExec(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_isFdCloseOnExec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1305,11 +1305,11 @@ jboolean Java_org_rocksdb_Options_isFdCloseOnExec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setIsFdCloseOnExec * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setIsFdCloseOnExec(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setIsFdCloseOnExec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean is_fd_close_on_exec) { @@ -1318,11 +1318,11 @@ void Java_org_rocksdb_Options_setIsFdCloseOnExec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: statsDumpPeriodSec * Signature: (J)I */ -jint Java_org_rocksdb_Options_statsDumpPeriodSec(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_statsDumpPeriodSec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1330,11 +1330,11 @@ jint Java_org_rocksdb_Options_statsDumpPeriodSec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setStatsDumpPeriodSec * Signature: (JI)V */ -void Java_org_rocksdb_Options_setStatsDumpPeriodSec( +void Java_org_terarkdb_Options_setStatsDumpPeriodSec( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint stats_dump_period_sec) { reinterpret_cast(jhandle) @@ -1342,11 +1342,11 @@ void Java_org_rocksdb_Options_setStatsDumpPeriodSec( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: adviseRandomOnOpen * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_adviseRandomOnOpen(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_adviseRandomOnOpen(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1354,11 +1354,11 @@ jboolean Java_org_rocksdb_Options_adviseRandomOnOpen(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAdviseRandomOnOpen * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAdviseRandomOnOpen( +void Java_org_terarkdb_Options_setAdviseRandomOnOpen( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean advise_random_on_open) { reinterpret_cast(jhandle) @@ -1366,11 +1366,11 @@ void Java_org_rocksdb_Options_setAdviseRandomOnOpen( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setDbWriteBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setDbWriteBufferSize( +void Java_org_terarkdb_Options_setDbWriteBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jdb_write_buffer_size) { auto* opt = reinterpret_cast(jhandle); @@ -1378,11 +1378,11 @@ void Java_org_rocksdb_Options_setDbWriteBufferSize( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: dbWriteBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_dbWriteBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_dbWriteBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1390,11 +1390,11 @@ jlong Java_org_rocksdb_Options_dbWriteBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAccessHintOnCompactionStart * Signature: (JB)V */ -void Java_org_rocksdb_Options_setAccessHintOnCompactionStart( +void Java_org_terarkdb_Options_setAccessHintOnCompactionStart( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jaccess_hint_value) { auto* opt = reinterpret_cast(jhandle); @@ -1403,11 +1403,11 @@ void Java_org_rocksdb_Options_setAccessHintOnCompactionStart( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: accessHintOnCompactionStart * Signature: (J)B */ -jbyte Java_org_rocksdb_Options_accessHintOnCompactionStart(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_Options_accessHintOnCompactionStart(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1416,11 +1416,11 @@ jbyte Java_org_rocksdb_Options_accessHintOnCompactionStart(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setNewTableReaderForCompactionInputs * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setNewTableReaderForCompactionInputs( +void Java_org_terarkdb_Options_setNewTableReaderForCompactionInputs( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jnew_table_reader_for_compaction_inputs) { auto* opt = reinterpret_cast(jhandle); @@ -1429,22 +1429,22 @@ void Java_org_rocksdb_Options_setNewTableReaderForCompactionInputs( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: newTableReaderForCompactionInputs * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_newTableReaderForCompactionInputs( +jboolean Java_org_terarkdb_Options_newTableReaderForCompactionInputs( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->new_table_reader_for_compaction_inputs); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCompactionReadaheadSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setCompactionReadaheadSize( +void Java_org_terarkdb_Options_setCompactionReadaheadSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcompaction_readahead_size) { auto* opt = reinterpret_cast(jhandle); @@ -1453,11 +1453,11 @@ void Java_org_rocksdb_Options_setCompactionReadaheadSize( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: compactionReadaheadSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_compactionReadaheadSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_compactionReadaheadSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1465,11 +1465,11 @@ jlong Java_org_rocksdb_Options_compactionReadaheadSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setRandomAccessMaxBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setRandomAccessMaxBufferSize( +void Java_org_terarkdb_Options_setRandomAccessMaxBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrandom_access_max_buffer_size) { auto* opt = reinterpret_cast(jhandle); @@ -1478,11 +1478,11 @@ void Java_org_rocksdb_Options_setRandomAccessMaxBufferSize( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: randomAccessMaxBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_randomAccessMaxBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_randomAccessMaxBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1490,11 +1490,11 @@ jlong Java_org_rocksdb_Options_randomAccessMaxBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWritableFileMaxBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setWritableFileMaxBufferSize( +void Java_org_terarkdb_Options_setWritableFileMaxBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwritable_file_max_buffer_size) { auto* opt = reinterpret_cast(jhandle); @@ -1503,11 +1503,11 @@ void Java_org_rocksdb_Options_setWritableFileMaxBufferSize( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: writableFileMaxBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_writableFileMaxBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_writableFileMaxBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1515,11 +1515,11 @@ jlong Java_org_rocksdb_Options_writableFileMaxBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: useAdaptiveMutex * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_useAdaptiveMutex(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_useAdaptiveMutex(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1527,11 +1527,11 @@ jboolean Java_org_rocksdb_Options_useAdaptiveMutex(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setUseAdaptiveMutex * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setUseAdaptiveMutex(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setUseAdaptiveMutex(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_adaptive_mutex) { @@ -1540,22 +1540,22 @@ void Java_org_rocksdb_Options_setUseAdaptiveMutex(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: bytesPerSync * Signature: (J)J */ -jlong Java_org_rocksdb_Options_bytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_bytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->bytes_per_sync; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setBytesPerSync * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong bytes_per_sync) { reinterpret_cast(jhandle)->bytes_per_sync = @@ -1563,11 +1563,11 @@ void Java_org_rocksdb_Options_setBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWalBytesPerSync * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setWalBytesPerSync(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setWalBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwal_bytes_per_sync) { @@ -1576,11 +1576,11 @@ void Java_org_rocksdb_Options_setWalBytesPerSync(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: walBytesPerSync * Signature: (J)J */ -jlong Java_org_rocksdb_Options_walBytesPerSync(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_walBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1588,11 +1588,11 @@ jlong Java_org_rocksdb_Options_walBytesPerSync(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setEnableThreadTracking * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setEnableThreadTracking( +void Java_org_terarkdb_Options_setEnableThreadTracking( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jenable_thread_tracking) { auto* opt = reinterpret_cast(jhandle); @@ -1600,11 +1600,11 @@ void Java_org_rocksdb_Options_setEnableThreadTracking( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: enableThreadTracking * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_enableThreadTracking(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_enableThreadTracking(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1612,11 +1612,11 @@ jboolean Java_org_rocksdb_Options_enableThreadTracking(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setDelayedWriteRate * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setDelayedWriteRate(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setDelayedWriteRate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jdelayed_write_rate) { @@ -1625,11 +1625,11 @@ void Java_org_rocksdb_Options_setDelayedWriteRate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: delayedWriteRate * Signature: (J)J */ -jlong Java_org_rocksdb_Options_delayedWriteRate(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_delayedWriteRate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1637,11 +1637,11 @@ jlong Java_org_rocksdb_Options_delayedWriteRate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAllowConcurrentMemtableWrite * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAllowConcurrentMemtableWrite(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setAllowConcurrentMemtableWrite(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow) { @@ -1650,11 +1650,11 @@ void Java_org_rocksdb_Options_setAllowConcurrentMemtableWrite(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: allowConcurrentMemtableWrite * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_allowConcurrentMemtableWrite(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_allowConcurrentMemtableWrite(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1662,33 +1662,33 @@ jboolean Java_org_rocksdb_Options_allowConcurrentMemtableWrite(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setEnableWriteThreadAdaptiveYield * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setEnableWriteThreadAdaptiveYield( +void Java_org_terarkdb_Options_setEnableWriteThreadAdaptiveYield( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean yield) { reinterpret_cast(jhandle) ->enable_write_thread_adaptive_yield = static_cast(yield); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: enableWriteThreadAdaptiveYield * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_enableWriteThreadAdaptiveYield( +jboolean Java_org_terarkdb_Options_enableWriteThreadAdaptiveYield( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->enable_write_thread_adaptive_yield; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWriteThreadMaxYieldUsec * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setWriteThreadMaxYieldUsec(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setWriteThreadMaxYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong max) { @@ -1697,11 +1697,11 @@ void Java_org_rocksdb_Options_setWriteThreadMaxYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: writeThreadMaxYieldUsec * Signature: (J)J */ -jlong Java_org_rocksdb_Options_writeThreadMaxYieldUsec(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_writeThreadMaxYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1709,11 +1709,11 @@ jlong Java_org_rocksdb_Options_writeThreadMaxYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWriteThreadSlowYieldUsec * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setWriteThreadSlowYieldUsec(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setWriteThreadSlowYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong slow) { @@ -1722,11 +1722,11 @@ void Java_org_rocksdb_Options_setWriteThreadSlowYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: writeThreadSlowYieldUsec * Signature: (J)J */ -jlong Java_org_rocksdb_Options_writeThreadSlowYieldUsec(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_writeThreadSlowYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1734,11 +1734,11 @@ jlong Java_org_rocksdb_Options_writeThreadSlowYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setSkipStatsUpdateOnDbOpen * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setSkipStatsUpdateOnDbOpen( +void Java_org_terarkdb_Options_setSkipStatsUpdateOnDbOpen( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jskip_stats_update_on_db_open) { auto* opt = reinterpret_cast(jhandle); @@ -1747,11 +1747,11 @@ void Java_org_rocksdb_Options_setSkipStatsUpdateOnDbOpen( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: skipStatsUpdateOnDbOpen * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_skipStatsUpdateOnDbOpen(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_skipStatsUpdateOnDbOpen(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1759,11 +1759,11 @@ jboolean Java_org_rocksdb_Options_skipStatsUpdateOnDbOpen(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setWalRecoveryMode * Signature: (JB)V */ -void Java_org_rocksdb_Options_setWalRecoveryMode( +void Java_org_terarkdb_Options_setWalRecoveryMode( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jwal_recovery_mode_value) { auto* opt = reinterpret_cast(jhandle); @@ -1773,11 +1773,11 @@ void Java_org_rocksdb_Options_setWalRecoveryMode( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: walRecoveryMode * Signature: (J)B */ -jbyte Java_org_rocksdb_Options_walRecoveryMode(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_Options_walRecoveryMode(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1786,33 +1786,33 @@ jbyte Java_org_rocksdb_Options_walRecoveryMode(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAllow2pc * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAllow2pc(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setAllow2pc(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jallow_2pc) { auto* opt = reinterpret_cast(jhandle); opt->allow_2pc = static_cast(jallow_2pc); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: allow2pc * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_allow2pc(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_Options_allow2pc(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->allow_2pc); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCheckPointFakeFlush * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setCheckPointFakeFlush( +void Java_org_terarkdb_Options_setCheckPointFakeFlush( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jcheck_point_fake_flush) { auto* opt = reinterpret_cast(jhandle); @@ -1820,11 +1820,11 @@ void Java_org_rocksdb_Options_setCheckPointFakeFlush( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: checkPointFakeFlush * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_checkPointFakeFlush(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_checkPointFakeFlush(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1832,11 +1832,11 @@ jboolean Java_org_rocksdb_Options_checkPointFakeFlush(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setRowCache * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setRowCache(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setRowCache(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrow_cache_handle) { auto* opt = reinterpret_cast(jhandle); @@ -1847,11 +1847,11 @@ void Java_org_rocksdb_Options_setRowCache(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setFailIfOptionsFileError * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setFailIfOptionsFileError( +void Java_org_terarkdb_Options_setFailIfOptionsFileError( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jfail_if_options_file_error) { auto* opt = reinterpret_cast(jhandle); @@ -1860,11 +1860,11 @@ void Java_org_rocksdb_Options_setFailIfOptionsFileError( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: failIfOptionsFileError * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_failIfOptionsFileError(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_failIfOptionsFileError(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1872,11 +1872,11 @@ jboolean Java_org_rocksdb_Options_failIfOptionsFileError(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setDumpMallocStats * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setDumpMallocStats(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setDumpMallocStats(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jdump_malloc_stats) { @@ -1885,11 +1885,11 @@ void Java_org_rocksdb_Options_setDumpMallocStats(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: dumpMallocStats * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_dumpMallocStats(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_dumpMallocStats(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1897,11 +1897,11 @@ jboolean Java_org_rocksdb_Options_dumpMallocStats(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAvoidFlushDuringRecovery * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAvoidFlushDuringRecovery( +void Java_org_terarkdb_Options_setAvoidFlushDuringRecovery( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean javoid_flush_during_recovery) { auto* opt = reinterpret_cast(jhandle); @@ -1910,11 +1910,11 @@ void Java_org_rocksdb_Options_setAvoidFlushDuringRecovery( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: avoidFlushDuringRecovery * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_avoidFlushDuringRecovery(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_avoidFlushDuringRecovery(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1922,11 +1922,11 @@ jboolean Java_org_rocksdb_Options_avoidFlushDuringRecovery(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setAvoidFlushDuringShutdown * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setAvoidFlushDuringShutdown( +void Java_org_terarkdb_Options_setAvoidFlushDuringShutdown( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean javoid_flush_during_shutdown) { auto* opt = reinterpret_cast(jhandle); @@ -1935,11 +1935,11 @@ void Java_org_rocksdb_Options_setAvoidFlushDuringShutdown( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: avoidFlushDuringShutdown * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_avoidFlushDuringShutdown(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_avoidFlushDuringShutdown(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -1950,7 +1950,7 @@ jboolean Java_org_rocksdb_Options_avoidFlushDuringShutdown(JNIEnv* /*env*/, * Method: tableFactoryName * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_Options_tableFactoryName(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_Options_tableFactoryName(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); TERARKDB_NAMESPACE::TableFactory* tf = opt->table_factory.get(); @@ -1963,11 +1963,11 @@ jstring Java_org_rocksdb_Options_tableFactoryName(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: minWriteBufferNumberToMerge * Signature: (J)I */ -jint Java_org_rocksdb_Options_minWriteBufferNumberToMerge(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_minWriteBufferNumberToMerge(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1975,11 +1975,11 @@ jint Java_org_rocksdb_Options_minWriteBufferNumberToMerge(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMinWriteBufferNumberToMerge * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMinWriteBufferNumberToMerge( +void Java_org_terarkdb_Options_setMinWriteBufferNumberToMerge( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmin_write_buffer_number_to_merge) { reinterpret_cast(jhandle) @@ -1987,11 +1987,11 @@ void Java_org_rocksdb_Options_setMinWriteBufferNumberToMerge( static_cast(jmin_write_buffer_number_to_merge); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxWriteBufferNumberToMaintain * Signature: (J)I */ -jint Java_org_rocksdb_Options_maxWriteBufferNumberToMaintain(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_maxWriteBufferNumberToMaintain(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -1999,11 +1999,11 @@ jint Java_org_rocksdb_Options_maxWriteBufferNumberToMaintain(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxWriteBufferNumberToMaintain * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxWriteBufferNumberToMaintain( +void Java_org_terarkdb_Options_setMaxWriteBufferNumberToMaintain( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_write_buffer_number_to_maintain) { reinterpret_cast(jhandle) @@ -2012,11 +2012,11 @@ void Java_org_rocksdb_Options_setMaxWriteBufferNumberToMaintain( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCompressionType * Signature: (JB)V */ -void Java_org_rocksdb_Options_setCompressionType( +void Java_org_terarkdb_Options_setCompressionType( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jcompression_type_value) { auto* opts = reinterpret_cast(jhandle); @@ -2026,11 +2026,11 @@ void Java_org_rocksdb_Options_setCompressionType( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: compressionType * Signature: (J)B */ -jbyte Java_org_rocksdb_Options_compressionType(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_Options_compressionType(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -2118,11 +2118,11 @@ jbyteArray rocksdb_compression_list_helper( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCompressionPerLevel * Signature: (J[B)V */ -void Java_org_rocksdb_Options_setCompressionPerLevel( +void Java_org_terarkdb_Options_setCompressionPerLevel( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jcompressionLevels) { auto uptr_compression_levels = @@ -2136,11 +2136,11 @@ void Java_org_rocksdb_Options_setCompressionPerLevel( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: compressionPerLevel * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_Options_compressionPerLevel(JNIEnv* env, +jbyteArray Java_org_terarkdb_Options_compressionPerLevel(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); @@ -2148,11 +2148,11 @@ jbyteArray Java_org_rocksdb_Options_compressionPerLevel(JNIEnv* env, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setBottommostCompressionType * Signature: (JB)V */ -void Java_org_rocksdb_Options_setBottommostCompressionType( +void Java_org_terarkdb_Options_setBottommostCompressionType( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jcompression_type_value) { auto* options = reinterpret_cast(jhandle); @@ -2162,11 +2162,11 @@ void Java_org_rocksdb_Options_setBottommostCompressionType( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: bottommostCompressionType * Signature: (J)B */ -jbyte Java_org_rocksdb_Options_bottommostCompressionType(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_Options_bottommostCompressionType(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* options = reinterpret_cast(jhandle); @@ -2175,11 +2175,11 @@ jbyte Java_org_rocksdb_Options_bottommostCompressionType(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setBottommostCompressionOptions * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setBottommostCompressionOptions( +void Java_org_terarkdb_Options_setBottommostCompressionOptions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jbottommost_compression_options_handle) { auto* options = reinterpret_cast(jhandle); @@ -2190,11 +2190,11 @@ void Java_org_rocksdb_Options_setBottommostCompressionOptions( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCompressionOptions * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setCompressionOptions( +void Java_org_terarkdb_Options_setCompressionOptions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcompression_options_handle) { auto* options = reinterpret_cast(jhandle); @@ -2205,11 +2205,11 @@ void Java_org_rocksdb_Options_setCompressionOptions( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCompactionStyle * Signature: (JB)V */ -void Java_org_rocksdb_Options_setCompactionStyle(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setCompactionStyle(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte compaction_style) { @@ -2218,11 +2218,11 @@ void Java_org_rocksdb_Options_setCompactionStyle(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: compactionStyle * Signature: (J)B */ -jbyte Java_org_rocksdb_Options_compactionStyle(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_Options_compactionStyle(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2230,43 +2230,43 @@ jbyte Java_org_rocksdb_Options_compactionStyle(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: numLevels * Signature: (J)I */ -jint Java_org_rocksdb_Options_numLevels(JNIEnv* /*env*/, jobject /*jobj*/, +jint Java_org_terarkdb_Options_numLevels(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle)->num_levels; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setNumLevels * Signature: (JI)V */ -void Java_org_rocksdb_Options_setNumLevels(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Options_setNumLevels(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jnum_levels) { reinterpret_cast(jhandle)->num_levels = static_cast(jnum_levels); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: levelZeroFileNumCompactionTrigger * Signature: (J)I */ -jint Java_org_rocksdb_Options_levelZeroFileNumCompactionTrigger( +jint Java_org_terarkdb_Options_levelZeroFileNumCompactionTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level0_file_num_compaction_trigger; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLevelZeroFileNumCompactionTrigger * Signature: (JI)V */ -void Java_org_rocksdb_Options_setLevelZeroFileNumCompactionTrigger( +void Java_org_terarkdb_Options_setLevelZeroFileNumCompactionTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_file_num_compaction_trigger) { reinterpret_cast(jhandle) @@ -2275,11 +2275,11 @@ void Java_org_rocksdb_Options_setLevelZeroFileNumCompactionTrigger( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: levelZeroSlowdownWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_Options_levelZeroSlowdownWritesTrigger(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_levelZeroSlowdownWritesTrigger(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2287,11 +2287,11 @@ jint Java_org_rocksdb_Options_levelZeroSlowdownWritesTrigger(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLevelSlowdownWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_Options_setLevelZeroSlowdownWritesTrigger( +void Java_org_terarkdb_Options_setLevelZeroSlowdownWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_slowdown_writes_trigger) { reinterpret_cast(jhandle) @@ -2300,11 +2300,11 @@ void Java_org_rocksdb_Options_setLevelZeroSlowdownWritesTrigger( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: levelZeroStopWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_Options_levelZeroStopWritesTrigger(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_levelZeroStopWritesTrigger(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2312,11 +2312,11 @@ jint Java_org_rocksdb_Options_levelZeroStopWritesTrigger(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLevelStopWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_Options_setLevelZeroStopWritesTrigger( +void Java_org_terarkdb_Options_setLevelZeroStopWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_stop_writes_trigger) { reinterpret_cast(jhandle) @@ -2325,11 +2325,11 @@ void Java_org_rocksdb_Options_setLevelZeroStopWritesTrigger( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: targetFileSizeBase * Signature: (J)J */ -jlong Java_org_rocksdb_Options_targetFileSizeBase(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_targetFileSizeBase(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2337,11 +2337,11 @@ jlong Java_org_rocksdb_Options_targetFileSizeBase(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setTargetFileSizeBase * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setTargetFileSizeBase( +void Java_org_terarkdb_Options_setTargetFileSizeBase( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jtarget_file_size_base) { reinterpret_cast(jhandle) @@ -2349,11 +2349,11 @@ void Java_org_rocksdb_Options_setTargetFileSizeBase( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: targetFileSizeMultiplier * Signature: (J)I */ -jint Java_org_rocksdb_Options_targetFileSizeMultiplier(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_targetFileSizeMultiplier(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2361,11 +2361,11 @@ jint Java_org_rocksdb_Options_targetFileSizeMultiplier(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setTargetFileSizeMultiplier * Signature: (JI)V */ -void Java_org_rocksdb_Options_setTargetFileSizeMultiplier( +void Java_org_terarkdb_Options_setTargetFileSizeMultiplier( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jtarget_file_size_multiplier) { reinterpret_cast(jhandle) @@ -2374,11 +2374,11 @@ void Java_org_rocksdb_Options_setTargetFileSizeMultiplier( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxBytesForLevelBase * Signature: (J)J */ -jlong Java_org_rocksdb_Options_maxBytesForLevelBase(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_maxBytesForLevelBase(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2386,11 +2386,11 @@ jlong Java_org_rocksdb_Options_maxBytesForLevelBase(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxBytesForLevelBase * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMaxBytesForLevelBase( +void Java_org_terarkdb_Options_setMaxBytesForLevelBase( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_bytes_for_level_base) { reinterpret_cast(jhandle) @@ -2399,22 +2399,22 @@ void Java_org_rocksdb_Options_setMaxBytesForLevelBase( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: levelCompactionDynamicLevelBytes * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_levelCompactionDynamicLevelBytes( +jboolean Java_org_terarkdb_Options_levelCompactionDynamicLevelBytes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level_compaction_dynamic_level_bytes; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLevelCompactionDynamicLevelBytes * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setLevelCompactionDynamicLevelBytes( +void Java_org_terarkdb_Options_setLevelCompactionDynamicLevelBytes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jenable_dynamic_level_bytes) { reinterpret_cast(jhandle) @@ -2422,11 +2422,11 @@ void Java_org_rocksdb_Options_setLevelCompactionDynamicLevelBytes( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxBytesForLevelMultiplier * Signature: (J)D */ -jdouble Java_org_rocksdb_Options_maxBytesForLevelMultiplier(JNIEnv* /*env*/, +jdouble Java_org_terarkdb_Options_maxBytesForLevelMultiplier(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2434,11 +2434,11 @@ jdouble Java_org_rocksdb_Options_maxBytesForLevelMultiplier(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxBytesForLevelMultiplier * Signature: (JD)V */ -void Java_org_rocksdb_Options_setMaxBytesForLevelMultiplier( +void Java_org_terarkdb_Options_setMaxBytesForLevelMultiplier( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jdouble jmax_bytes_for_level_multiplier) { reinterpret_cast(jhandle) @@ -2447,11 +2447,11 @@ void Java_org_rocksdb_Options_setMaxBytesForLevelMultiplier( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxCompactionBytes * Signature: (J)I */ -jlong Java_org_rocksdb_Options_maxCompactionBytes(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_maxCompactionBytes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return static_cast( @@ -2460,11 +2460,11 @@ jlong Java_org_rocksdb_Options_maxCompactionBytes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxCompactionBytes * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMaxCompactionBytes( +void Java_org_terarkdb_Options_setMaxCompactionBytes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_compaction_bytes) { reinterpret_cast(jhandle) @@ -2472,22 +2472,22 @@ void Java_org_rocksdb_Options_setMaxCompactionBytes( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: arenaBlockSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_arenaBlockSize(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_arenaBlockSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->arena_block_size; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setArenaBlockSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setArenaBlockSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setArenaBlockSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jarena_block_size) { TERARKDB_NAMESPACE::Status s = @@ -2501,11 +2501,11 @@ void Java_org_rocksdb_Options_setArenaBlockSize(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setTargetBlobFileSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setTargetBlobFileSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setTargetBlobFileSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jtarget_blob_file_size) { TERARKDB_NAMESPACE::Status s = @@ -2520,22 +2520,22 @@ void Java_org_rocksdb_Options_setTargetBlobFileSize(JNIEnv* env, jobject /*jobj* /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: targetBlobFileSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_targetBlobFileSize(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_targetBlobFileSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->target_blob_file_size; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setBlobSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setBlobSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setBlobSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jblob_size) { TERARKDB_NAMESPACE::Status s = @@ -2550,22 +2550,22 @@ void Java_org_rocksdb_Options_setBlobSize(JNIEnv* env, jobject /*jobj*/, /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: blobSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_blobSize(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Options_blobSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->blob_size; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setBlobGcRatio * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setBlobGcRatio(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Options_setBlobGcRatio(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jdouble jblob_gc_ratio) { reinterpret_cast(jhandle)->blob_gc_ratio = @@ -2573,21 +2573,21 @@ void Java_org_rocksdb_Options_setBlobGcRatio(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: blobGcRatio * Signature: (J)J */ -jdouble Java_org_rocksdb_Options_blobGcRatio(JNIEnv* /*env*/, jobject /*jobj*/, +jdouble Java_org_terarkdb_Options_blobGcRatio(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle)->blob_gc_ratio; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: disableAutoCompactions * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_disableAutoCompactions(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_disableAutoCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2595,11 +2595,11 @@ jboolean Java_org_rocksdb_Options_disableAutoCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setDisableAutoCompactions * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setDisableAutoCompactions( +void Java_org_terarkdb_Options_setDisableAutoCompactions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jdisable_auto_compactions) { reinterpret_cast(jhandle) @@ -2607,11 +2607,11 @@ void Java_org_rocksdb_Options_setDisableAutoCompactions( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxSequentialSkipInIterations * Signature: (J)J */ -jlong Java_org_rocksdb_Options_maxSequentialSkipInIterations(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_maxSequentialSkipInIterations(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2619,11 +2619,11 @@ jlong Java_org_rocksdb_Options_maxSequentialSkipInIterations(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxSequentialSkipInIterations * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMaxSequentialSkipInIterations( +void Java_org_terarkdb_Options_setMaxSequentialSkipInIterations( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_sequential_skip_in_iterations) { reinterpret_cast(jhandle) @@ -2632,11 +2632,11 @@ void Java_org_rocksdb_Options_setMaxSequentialSkipInIterations( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: inplaceUpdateSupport * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_inplaceUpdateSupport(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_inplaceUpdateSupport(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2644,11 +2644,11 @@ jboolean Java_org_rocksdb_Options_inplaceUpdateSupport(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setInplaceUpdateSupport * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setInplaceUpdateSupport( +void Java_org_terarkdb_Options_setInplaceUpdateSupport( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jinplace_update_support) { reinterpret_cast(jhandle) @@ -2656,11 +2656,11 @@ void Java_org_rocksdb_Options_setInplaceUpdateSupport( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: inplaceUpdateNumLocks * Signature: (J)J */ -jlong Java_org_rocksdb_Options_inplaceUpdateNumLocks(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_inplaceUpdateNumLocks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2668,11 +2668,11 @@ jlong Java_org_rocksdb_Options_inplaceUpdateNumLocks(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setInplaceUpdateNumLocks * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setInplaceUpdateNumLocks( +void Java_org_terarkdb_Options_setInplaceUpdateNumLocks( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jinplace_update_num_locks) { TERARKDB_NAMESPACE::Status s = @@ -2686,11 +2686,11 @@ void Java_org_rocksdb_Options_setInplaceUpdateNumLocks( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: memtablePrefixBloomSizeRatio * Signature: (J)I */ -jdouble Java_org_rocksdb_Options_memtablePrefixBloomSizeRatio(JNIEnv* /*env*/, +jdouble Java_org_terarkdb_Options_memtablePrefixBloomSizeRatio(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2698,11 +2698,11 @@ jdouble Java_org_rocksdb_Options_memtablePrefixBloomSizeRatio(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMemtablePrefixBloomSizeRatio * Signature: (JI)V */ -void Java_org_rocksdb_Options_setMemtablePrefixBloomSizeRatio( +void Java_org_terarkdb_Options_setMemtablePrefixBloomSizeRatio( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jdouble jmemtable_prefix_bloom_size_ratio) { reinterpret_cast(jhandle) @@ -2711,22 +2711,22 @@ void Java_org_rocksdb_Options_setMemtablePrefixBloomSizeRatio( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: bloomLocality * Signature: (J)I */ -jint Java_org_rocksdb_Options_bloomLocality(JNIEnv* /*env*/, jobject /*jobj*/, +jint Java_org_terarkdb_Options_bloomLocality(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->bloom_locality; } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setBloomLocality * Signature: (JI)V */ -void Java_org_rocksdb_Options_setBloomLocality(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setBloomLocality(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jbloom_locality) { reinterpret_cast(jhandle)->bloom_locality = @@ -2734,11 +2734,11 @@ void Java_org_rocksdb_Options_setBloomLocality(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxSuccessiveMerges * Signature: (J)J */ -jlong Java_org_rocksdb_Options_maxSuccessiveMerges(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_maxSuccessiveMerges(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2746,11 +2746,11 @@ jlong Java_org_rocksdb_Options_maxSuccessiveMerges(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxSuccessiveMerges * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMaxSuccessiveMerges( +void Java_org_terarkdb_Options_setMaxSuccessiveMerges( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jmax_successive_merges) { TERARKDB_NAMESPACE::Status s = @@ -2764,11 +2764,11 @@ void Java_org_rocksdb_Options_setMaxSuccessiveMerges( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: optimizeFiltersForHits * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_optimizeFiltersForHits(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_optimizeFiltersForHits(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2776,11 +2776,11 @@ jboolean Java_org_rocksdb_Options_optimizeFiltersForHits(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setOptimizeFiltersForHits * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setOptimizeFiltersForHits( +void Java_org_terarkdb_Options_setOptimizeFiltersForHits( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean joptimize_filters_for_hits) { reinterpret_cast(jhandle) @@ -2789,11 +2789,11 @@ void Java_org_rocksdb_Options_setOptimizeFiltersForHits( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: optimizeRangeDeletion * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_optimizeRangeDeletion(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_optimizeRangeDeletion(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2801,11 +2801,11 @@ jboolean Java_org_rocksdb_Options_optimizeRangeDeletion(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setOptimizeRangeDeletion * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setOptimizeRangeDeletion( +void Java_org_terarkdb_Options_setOptimizeRangeDeletion( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean joptimize_range_deletion) { reinterpret_cast(jhandle) @@ -2813,22 +2813,22 @@ void Java_org_rocksdb_Options_setOptimizeRangeDeletion( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: optimizeForSmallDb * Signature: (J)V */ -void Java_org_rocksdb_Options_optimizeForSmallDb(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_optimizeForSmallDb(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { reinterpret_cast(jhandle)->OptimizeForSmallDb(); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: optimizeForPointLookup * Signature: (JJ)V */ -void Java_org_rocksdb_Options_optimizeForPointLookup( +void Java_org_terarkdb_Options_optimizeForPointLookup( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong block_cache_size_mb) { reinterpret_cast(jhandle) @@ -2836,11 +2836,11 @@ void Java_org_rocksdb_Options_optimizeForPointLookup( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: optimizeLevelStyleCompaction * Signature: (JJ)V */ -void Java_org_rocksdb_Options_optimizeLevelStyleCompaction( +void Java_org_terarkdb_Options_optimizeLevelStyleCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong memtable_memory_budget) { reinterpret_cast(jhandle) @@ -2848,11 +2848,11 @@ void Java_org_rocksdb_Options_optimizeLevelStyleCompaction( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: optimizeUniversalStyleCompaction * Signature: (JJ)V */ -void Java_org_rocksdb_Options_optimizeUniversalStyleCompaction( +void Java_org_terarkdb_Options_optimizeUniversalStyleCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong memtable_memory_budget) { reinterpret_cast(jhandle) @@ -2860,22 +2860,22 @@ void Java_org_rocksdb_Options_optimizeUniversalStyleCompaction( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: prepareForBulkLoad * Signature: (J)V */ -void Java_org_rocksdb_Options_prepareForBulkLoad(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_prepareForBulkLoad(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { reinterpret_cast(jhandle)->PrepareForBulkLoad(); } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: memtableHugePageSize * Signature: (J)J */ -jlong Java_org_rocksdb_Options_memtableHugePageSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_memtableHugePageSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2883,11 +2883,11 @@ jlong Java_org_rocksdb_Options_memtableHugePageSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMemtableHugePageSize * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setMemtableHugePageSize( +void Java_org_terarkdb_Options_setMemtableHugePageSize( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jmemtable_huge_page_size) { TERARKDB_NAMESPACE::Status s = @@ -2901,11 +2901,11 @@ void Java_org_rocksdb_Options_setMemtableHugePageSize( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: softPendingCompactionBytesLimit * Signature: (J)J */ -jlong Java_org_rocksdb_Options_softPendingCompactionBytesLimit(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_softPendingCompactionBytesLimit(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2913,11 +2913,11 @@ jlong Java_org_rocksdb_Options_softPendingCompactionBytesLimit(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setSoftPendingCompactionBytesLimit * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setSoftPendingCompactionBytesLimit( +void Java_org_terarkdb_Options_setSoftPendingCompactionBytesLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jsoft_pending_compaction_bytes_limit) { reinterpret_cast(jhandle) @@ -2926,11 +2926,11 @@ void Java_org_rocksdb_Options_setSoftPendingCompactionBytesLimit( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: softHardCompactionBytesLimit * Signature: (J)J */ -jlong Java_org_rocksdb_Options_hardPendingCompactionBytesLimit(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Options_hardPendingCompactionBytesLimit(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2938,11 +2938,11 @@ jlong Java_org_rocksdb_Options_hardPendingCompactionBytesLimit(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setHardPendingCompactionBytesLimit * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setHardPendingCompactionBytesLimit( +void Java_org_terarkdb_Options_setHardPendingCompactionBytesLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jhard_pending_compaction_bytes_limit) { reinterpret_cast(jhandle) @@ -2951,11 +2951,11 @@ void Java_org_rocksdb_Options_setHardPendingCompactionBytesLimit( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: level0FileNumCompactionTrigger * Signature: (J)I */ -jint Java_org_rocksdb_Options_level0FileNumCompactionTrigger(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_level0FileNumCompactionTrigger(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2963,11 +2963,11 @@ jint Java_org_rocksdb_Options_level0FileNumCompactionTrigger(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLevel0FileNumCompactionTrigger * Signature: (JI)V */ -void Java_org_rocksdb_Options_setLevel0FileNumCompactionTrigger( +void Java_org_terarkdb_Options_setLevel0FileNumCompactionTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_file_num_compaction_trigger) { reinterpret_cast(jhandle) @@ -2976,11 +2976,11 @@ void Java_org_rocksdb_Options_setLevel0FileNumCompactionTrigger( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: level0SlowdownWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_Options_level0SlowdownWritesTrigger(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_level0SlowdownWritesTrigger(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -2988,11 +2988,11 @@ jint Java_org_rocksdb_Options_level0SlowdownWritesTrigger(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLevel0SlowdownWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_Options_setLevel0SlowdownWritesTrigger( +void Java_org_terarkdb_Options_setLevel0SlowdownWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_slowdown_writes_trigger) { reinterpret_cast(jhandle) @@ -3001,11 +3001,11 @@ void Java_org_rocksdb_Options_setLevel0SlowdownWritesTrigger( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: level0StopWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_Options_level0StopWritesTrigger(JNIEnv* /*env*/, +jint Java_org_terarkdb_Options_level0StopWritesTrigger(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -3013,11 +3013,11 @@ jint Java_org_rocksdb_Options_level0StopWritesTrigger(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setLevel0StopWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_Options_setLevel0StopWritesTrigger( +void Java_org_terarkdb_Options_setLevel0StopWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_stop_writes_trigger) { reinterpret_cast(jhandle) @@ -3026,11 +3026,11 @@ void Java_org_rocksdb_Options_setLevel0StopWritesTrigger( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: maxBytesForLevelMultiplierAdditional * Signature: (J)[I */ -jintArray Java_org_rocksdb_Options_maxBytesForLevelMultiplierAdditional( +jintArray Java_org_terarkdb_Options_maxBytesForLevelMultiplierAdditional( JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto mbflma = reinterpret_cast(jhandle) ->max_bytes_for_level_multiplier_additional; @@ -3064,11 +3064,11 @@ jintArray Java_org_rocksdb_Options_maxBytesForLevelMultiplierAdditional( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setMaxBytesForLevelMultiplierAdditional * Signature: (J[I)V */ -void Java_org_rocksdb_Options_setMaxBytesForLevelMultiplierAdditional( +void Java_org_terarkdb_Options_setMaxBytesForLevelMultiplierAdditional( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jintArray jmax_bytes_for_level_multiplier_additional) { jsize len = env->GetArrayLength(jmax_bytes_for_level_multiplier_additional); @@ -3091,11 +3091,11 @@ void Java_org_rocksdb_Options_setMaxBytesForLevelMultiplierAdditional( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: paranoidFileChecks * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_paranoidFileChecks(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_paranoidFileChecks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -3103,11 +3103,11 @@ jboolean Java_org_rocksdb_Options_paranoidFileChecks(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setParanoidFileChecks * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setParanoidFileChecks( +void Java_org_terarkdb_Options_setParanoidFileChecks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jparanoid_file_checks) { reinterpret_cast(jhandle) @@ -3115,11 +3115,11 @@ void Java_org_rocksdb_Options_setParanoidFileChecks( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCompactionPriority * Signature: (JB)V */ -void Java_org_rocksdb_Options_setCompactionPriority( +void Java_org_terarkdb_Options_setCompactionPriority( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jcompaction_priority_value) { auto* opts = reinterpret_cast(jhandle); @@ -3129,11 +3129,11 @@ void Java_org_rocksdb_Options_setCompactionPriority( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: compactionPriority * Signature: (J)B */ -jbyte Java_org_rocksdb_Options_compactionPriority(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_Options_compactionPriority(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -3142,11 +3142,11 @@ jbyte Java_org_rocksdb_Options_compactionPriority(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setReportBgIoStats * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setReportBgIoStats(JNIEnv* /*env*/, +void Java_org_terarkdb_Options_setReportBgIoStats(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jreport_bg_io_stats) { @@ -3155,11 +3155,11 @@ void Java_org_rocksdb_Options_setReportBgIoStats(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: reportBgIoStats * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_reportBgIoStats(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_reportBgIoStats(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -3167,11 +3167,11 @@ jboolean Java_org_rocksdb_Options_reportBgIoStats(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setCompactionOptionsUniversal * Signature: (JJ)V */ -void Java_org_rocksdb_Options_setCompactionOptionsUniversal( +void Java_org_terarkdb_Options_setCompactionOptionsUniversal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcompaction_options_universal_handle) { auto* opts = reinterpret_cast(jhandle); @@ -3182,11 +3182,11 @@ void Java_org_rocksdb_Options_setCompactionOptionsUniversal( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: setForceConsistencyChecks * Signature: (JZ)V */ -void Java_org_rocksdb_Options_setForceConsistencyChecks( +void Java_org_terarkdb_Options_setForceConsistencyChecks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jforce_consistency_checks) { auto* opts = reinterpret_cast(jhandle); @@ -3194,11 +3194,11 @@ void Java_org_rocksdb_Options_setForceConsistencyChecks( } /* - * Class: org_rocksdb_Options + * Class: org_terarkdb_Options * Method: forceConsistencyChecks * Signature: (J)Z */ -jboolean Java_org_rocksdb_Options_forceConsistencyChecks(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Options_forceConsistencyChecks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -3209,22 +3209,22 @@ jboolean Java_org_rocksdb_Options_forceConsistencyChecks(JNIEnv* /*env*/, // TERARKDB_NAMESPACE::ColumnFamilyOptions /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: newColumnFamilyOptions * Signature: ()J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_newColumnFamilyOptions( +jlong Java_org_terarkdb_ColumnFamilyOptions_newColumnFamilyOptions( JNIEnv* /*env*/, jclass /*jcls*/) { auto* op = new TERARKDB_NAMESPACE::ColumnFamilyOptions(); return reinterpret_cast(op); } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: copyColumnFamilyOptions * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_copyColumnFamilyOptions( +jlong Java_org_terarkdb_ColumnFamilyOptions_copyColumnFamilyOptions( JNIEnv* /*env*/, jclass /*jcls*/, jlong jhandle) { auto new_opt = new TERARKDB_NAMESPACE::ColumnFamilyOptions( *(reinterpret_cast(jhandle))); @@ -3232,11 +3232,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_copyColumnFamilyOptions( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: getColumnFamilyOptionsFromProps * Signature: (Ljava/util/String;)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_getColumnFamilyOptionsFromProps( +jlong Java_org_terarkdb_ColumnFamilyOptions_getColumnFamilyOptionsFromProps( JNIEnv* env, jclass /*jclazz*/, jstring jopt_string) { const char* opt_string = env->GetStringUTFChars(jopt_string, nullptr); if (opt_string == nullptr) { @@ -3264,11 +3264,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_getColumnFamilyOptionsFromProps( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_ColumnFamilyOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_ColumnFamilyOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* cfo = @@ -3278,11 +3278,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: optimizeForSmallDb * Signature: (J)V */ -void Java_org_rocksdb_ColumnFamilyOptions_optimizeForSmallDb(JNIEnv* /*env*/, +void Java_org_terarkdb_ColumnFamilyOptions_optimizeForSmallDb(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { reinterpret_cast(jhandle) @@ -3290,11 +3290,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_optimizeForSmallDb(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: optimizeForPointLookup * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_optimizeForPointLookup( +void Java_org_terarkdb_ColumnFamilyOptions_optimizeForPointLookup( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong block_cache_size_mb) { reinterpret_cast(jhandle) @@ -3302,11 +3302,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_optimizeForPointLookup( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: optimizeLevelStyleCompaction * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_optimizeLevelStyleCompaction( +void Java_org_terarkdb_ColumnFamilyOptions_optimizeLevelStyleCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong memtable_memory_budget) { reinterpret_cast(jhandle) @@ -3314,11 +3314,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_optimizeLevelStyleCompaction( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: optimizeUniversalStyleCompaction * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_optimizeUniversalStyleCompaction( +void Java_org_terarkdb_ColumnFamilyOptions_optimizeUniversalStyleCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong memtable_memory_budget) { reinterpret_cast(jhandle) @@ -3326,11 +3326,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_optimizeUniversalStyleCompaction( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setComparatorHandle * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setComparatorHandle__JI( +void Java_org_terarkdb_ColumnFamilyOptions_setComparatorHandle__JI( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint builtinComparator) { switch (builtinComparator) { case 1: @@ -3345,11 +3345,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setComparatorHandle__JI( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setComparatorHandle * Signature: (JJB)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setComparatorHandle__JJB( +void Java_org_terarkdb_ColumnFamilyOptions_setComparatorHandle__JJB( JNIEnv* /*env*/, jobject /*jobj*/, jlong jopt_handle, jlong jcomparator_handle, jbyte jcomparator_type) { TERARKDB_NAMESPACE::Comparator* comparator = nullptr; @@ -3380,11 +3380,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setComparatorHandle__JJB( /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxSubcompactions * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxSubcompactions(JNIEnv* env, +void Java_org_terarkdb_ColumnFamilyOptions_setMaxSubcompactions(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jint max) { TERARKDB_NAMESPACE::Status s = @@ -3398,22 +3398,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxSubcompactions(JNIEnv* env, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxSubcompactions * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_maxSubcompactions(JNIEnv* /*env*/, +jint Java_org_terarkdb_ColumnFamilyOptions_maxSubcompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_subcompactions; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setTargetBlobFileSize * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setTargetBlobFileSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_ColumnFamilyOptions_setTargetBlobFileSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jtarget_blob_file_size) { TERARKDB_NAMESPACE::Status s = @@ -3427,21 +3427,21 @@ void Java_org_rocksdb_ColumnFamilyOptions_setTargetBlobFileSize(JNIEnv* env, job } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: targetBlobFileSize * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_targetBlobFileSize(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_ColumnFamilyOptions_targetBlobFileSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->target_blob_file_size; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setBlobSize * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setBlobSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_ColumnFamilyOptions_setBlobSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jblob_size) { TERARKDB_NAMESPACE::Status s = @@ -3455,33 +3455,33 @@ void Java_org_rocksdb_ColumnFamilyOptions_setBlobSize(JNIEnv* env, jobject /*job } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: blobGcRatio * Signature: (J)J */ -jdouble Java_org_rocksdb_ColumnFamilyOptions_blobGcRatio(JNIEnv* /*env*/, +jdouble Java_org_terarkdb_ColumnFamilyOptions_blobGcRatio(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->blob_gc_ratio; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setBlobGcRatio * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setBlobGcRatio( +void Java_org_terarkdb_ColumnFamilyOptions_setBlobGcRatio( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jdouble jblob_gc_ratio) { reinterpret_cast(jhandle) ->blob_gc_ratio = static_cast(jblob_gc_ratio); } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: blobSize * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_blobSize(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_ColumnFamilyOptions_blobSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->blob_size; @@ -3489,11 +3489,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_blobSize(JNIEnv* /*env*/, jobject /*j /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMergeOperatorName * Signature: (JJjava/lang/String)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMergeOperatorName( +void Java_org_terarkdb_ColumnFamilyOptions_setMergeOperatorName( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jop_name) { auto* options = reinterpret_cast(jhandle); @@ -3509,11 +3509,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMergeOperatorName( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMergeOperator * Signature: (JJjava/lang/String)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMergeOperator( +void Java_org_terarkdb_ColumnFamilyOptions_setMergeOperator( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong mergeOperatorHandle) { reinterpret_cast(jhandle) @@ -3523,11 +3523,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMergeOperator( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompactionFilterHandle * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setCompactionFilterHandle( +void Java_org_terarkdb_ColumnFamilyOptions_setCompactionFilterHandle( JNIEnv* /*env*/, jobject /*jobj*/, jlong jopt_handle, jlong jcompactionfilter_handle) { reinterpret_cast(jopt_handle) @@ -3538,12 +3538,12 @@ void Java_org_rocksdb_ColumnFamilyOptions_setCompactionFilterHandle( #define FLINK /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompactionFilterFactoryHandle * Signature: (JJ)V */ void JNICALL -Java_org_rocksdb_ColumnFamilyOptions_setCompactionFilterFactoryHandle( +Java_org_terarkdb_ColumnFamilyOptions_setCompactionFilterFactoryHandle( JNIEnv* /*env*/, jobject /*jobj*/, jlong jopt_handle, jlong jcompactionfilterfactory_handle) { auto* cff_factory = reinterpret_cast< @@ -3563,11 +3563,11 @@ Java_org_rocksdb_ColumnFamilyOptions_setCompactionFilterFactoryHandle( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setWriteBufferSize * Signature: (JJ)I */ -void Java_org_rocksdb_ColumnFamilyOptions_setWriteBufferSize( +void Java_org_terarkdb_ColumnFamilyOptions_setWriteBufferSize( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jwrite_buffer_size) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(jwrite_buffer_size); @@ -3580,11 +3580,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setWriteBufferSize( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: writeBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_writeBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ColumnFamilyOptions_writeBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -3592,11 +3592,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_writeBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxWriteBufferNumber * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxWriteBufferNumber( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxWriteBufferNumber( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_write_buffer_number) { reinterpret_cast(jhandle) @@ -3604,11 +3604,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxWriteBufferNumber( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxWriteBufferNumber * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_maxWriteBufferNumber(JNIEnv* /*env*/, +jint Java_org_terarkdb_ColumnFamilyOptions_maxWriteBufferNumber(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -3619,7 +3619,7 @@ jint Java_org_rocksdb_ColumnFamilyOptions_maxWriteBufferNumber(JNIEnv* /*env*/, * Method: setMemTableFactory * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMemTableFactory( +void Java_org_terarkdb_ColumnFamilyOptions_setMemTableFactory( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jfactory_handle) { reinterpret_cast(jhandle) ->memtable_factory.reset( @@ -3628,11 +3628,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMemTableFactory( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: memTableFactoryName * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_ColumnFamilyOptions_memTableFactoryName( +jstring Java_org_terarkdb_ColumnFamilyOptions_memTableFactoryName( JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -3654,7 +3654,7 @@ jstring Java_org_rocksdb_ColumnFamilyOptions_memTableFactoryName( * Method: useFixedLengthPrefixExtractor * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_useFixedLengthPrefixExtractor( +void Java_org_terarkdb_ColumnFamilyOptions_useFixedLengthPrefixExtractor( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jprefix_length) { reinterpret_cast(jhandle) ->prefix_extractor.reset(TERARKDB_NAMESPACE::NewFixedPrefixTransform( @@ -3665,7 +3665,7 @@ void Java_org_rocksdb_ColumnFamilyOptions_useFixedLengthPrefixExtractor( * Method: useCappedPrefixExtractor * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_useCappedPrefixExtractor( +void Java_org_terarkdb_ColumnFamilyOptions_useCappedPrefixExtractor( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jprefix_length) { reinterpret_cast(jhandle) ->prefix_extractor.reset(TERARKDB_NAMESPACE::NewCappedPrefixTransform( @@ -3676,7 +3676,7 @@ void Java_org_rocksdb_ColumnFamilyOptions_useCappedPrefixExtractor( * Method: setTableFactory * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setTableFactory( +void Java_org_terarkdb_ColumnFamilyOptions_setTableFactory( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jfactory_handle) { reinterpret_cast(jhandle) ->table_factory.reset( @@ -3687,7 +3687,7 @@ void Java_org_rocksdb_ColumnFamilyOptions_setTableFactory( * Method: tableFactoryName * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_ColumnFamilyOptions_tableFactoryName(JNIEnv* env, +jstring Java_org_terarkdb_ColumnFamilyOptions_tableFactoryName(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* opt = @@ -3702,22 +3702,22 @@ jstring Java_org_rocksdb_ColumnFamilyOptions_tableFactoryName(JNIEnv* env, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: minWriteBufferNumberToMerge * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_minWriteBufferNumberToMerge( +jint Java_org_terarkdb_ColumnFamilyOptions_minWriteBufferNumberToMerge( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->min_write_buffer_number_to_merge; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMinWriteBufferNumberToMerge * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMinWriteBufferNumberToMerge( +void Java_org_terarkdb_ColumnFamilyOptions_setMinWriteBufferNumberToMerge( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmin_write_buffer_number_to_merge) { reinterpret_cast(jhandle) @@ -3726,22 +3726,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMinWriteBufferNumberToMerge( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxWriteBufferNumberToMaintain * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_maxWriteBufferNumberToMaintain( +jint Java_org_terarkdb_ColumnFamilyOptions_maxWriteBufferNumberToMaintain( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_write_buffer_number_to_maintain; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxWriteBufferNumberToMaintain * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxWriteBufferNumberToMaintain( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxWriteBufferNumberToMaintain( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_write_buffer_number_to_maintain) { reinterpret_cast(jhandle) @@ -3750,11 +3750,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxWriteBufferNumberToMaintain( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompressionType * Signature: (JB)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setCompressionType( +void Java_org_terarkdb_ColumnFamilyOptions_setCompressionType( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jcompression_type_value) { auto* cf_opts = @@ -3765,11 +3765,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setCompressionType( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: compressionType * Signature: (J)B */ -jbyte Java_org_rocksdb_ColumnFamilyOptions_compressionType(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_ColumnFamilyOptions_compressionType(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* cf_opts = @@ -3779,11 +3779,11 @@ jbyte Java_org_rocksdb_ColumnFamilyOptions_compressionType(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompressionPerLevel * Signature: (J[B)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setCompressionPerLevel( +void Java_org_terarkdb_ColumnFamilyOptions_setCompressionPerLevel( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jcompressionLevels) { auto* options = @@ -3798,11 +3798,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setCompressionPerLevel( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: compressionPerLevel * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_ColumnFamilyOptions_compressionPerLevel( +jbyteArray Java_org_terarkdb_ColumnFamilyOptions_compressionPerLevel( JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* cf_options = reinterpret_cast(jhandle); @@ -3811,11 +3811,11 @@ jbyteArray Java_org_rocksdb_ColumnFamilyOptions_compressionPerLevel( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setBottommostCompressionType * Signature: (JB)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setBottommostCompressionType( +void Java_org_terarkdb_ColumnFamilyOptions_setBottommostCompressionType( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jcompression_type_value) { auto* cf_options = @@ -3826,11 +3826,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setBottommostCompressionType( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: bottommostCompressionType * Signature: (J)B */ -jbyte Java_org_rocksdb_ColumnFamilyOptions_bottommostCompressionType( +jbyte Java_org_terarkdb_ColumnFamilyOptions_bottommostCompressionType( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* cf_options = reinterpret_cast(jhandle); @@ -3838,11 +3838,11 @@ jbyte Java_org_rocksdb_ColumnFamilyOptions_bottommostCompressionType( cf_options->bottommost_compression); } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setBottommostCompressionOptions * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setBottommostCompressionOptions( +void Java_org_terarkdb_ColumnFamilyOptions_setBottommostCompressionOptions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jbottommost_compression_options_handle) { auto* cf_options = @@ -3854,11 +3854,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setBottommostCompressionOptions( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompressionOptions * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setCompressionOptions( +void Java_org_terarkdb_ColumnFamilyOptions_setCompressionOptions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcompression_options_handle) { auto* cf_options = @@ -3870,11 +3870,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setCompressionOptions( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompactionStyle * Signature: (JB)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setCompactionStyle( +void Java_org_terarkdb_ColumnFamilyOptions_setCompactionStyle( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte compaction_style) { reinterpret_cast(jhandle) ->compaction_style = @@ -3882,11 +3882,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setCompactionStyle( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: compactionStyle * Signature: (J)B */ -jbyte Java_org_rocksdb_ColumnFamilyOptions_compactionStyle(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_ColumnFamilyOptions_compactionStyle(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -3894,11 +3894,11 @@ jbyte Java_org_rocksdb_ColumnFamilyOptions_compactionStyle(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: numLevels * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_numLevels(JNIEnv* /*env*/, +jint Java_org_terarkdb_ColumnFamilyOptions_numLevels(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -3906,11 +3906,11 @@ jint Java_org_rocksdb_ColumnFamilyOptions_numLevels(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setNumLevels * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setNumLevels(JNIEnv* /*env*/, +void Java_org_terarkdb_ColumnFamilyOptions_setNumLevels(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jnum_levels) { @@ -3919,22 +3919,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setNumLevels(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: levelZeroFileNumCompactionTrigger * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_levelZeroFileNumCompactionTrigger( +jint Java_org_terarkdb_ColumnFamilyOptions_levelZeroFileNumCompactionTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level0_file_num_compaction_trigger; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setLevelZeroFileNumCompactionTrigger * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setLevelZeroFileNumCompactionTrigger( +void Java_org_terarkdb_ColumnFamilyOptions_setLevelZeroFileNumCompactionTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_file_num_compaction_trigger) { reinterpret_cast(jhandle) @@ -3943,22 +3943,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setLevelZeroFileNumCompactionTrigger( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: levelZeroSlowdownWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_levelZeroSlowdownWritesTrigger( +jint Java_org_terarkdb_ColumnFamilyOptions_levelZeroSlowdownWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level0_slowdown_writes_trigger; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setLevelSlowdownWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setLevelZeroSlowdownWritesTrigger( +void Java_org_terarkdb_ColumnFamilyOptions_setLevelZeroSlowdownWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_slowdown_writes_trigger) { reinterpret_cast(jhandle) @@ -3967,22 +3967,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setLevelZeroSlowdownWritesTrigger( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: levelZeroStopWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_levelZeroStopWritesTrigger( +jint Java_org_terarkdb_ColumnFamilyOptions_levelZeroStopWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level0_stop_writes_trigger; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setLevelStopWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setLevelZeroStopWritesTrigger( +void Java_org_terarkdb_ColumnFamilyOptions_setLevelZeroStopWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_stop_writes_trigger) { reinterpret_cast(jhandle) @@ -3991,11 +3991,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setLevelZeroStopWritesTrigger( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: targetFileSizeBase * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_targetFileSizeBase(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ColumnFamilyOptions_targetFileSizeBase(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -4003,11 +4003,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_targetFileSizeBase(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setTargetFileSizeBase * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setTargetFileSizeBase( +void Java_org_terarkdb_ColumnFamilyOptions_setTargetFileSizeBase( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jtarget_file_size_base) { reinterpret_cast(jhandle) @@ -4015,22 +4015,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setTargetFileSizeBase( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: targetFileSizeMultiplier * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_targetFileSizeMultiplier( +jint Java_org_terarkdb_ColumnFamilyOptions_targetFileSizeMultiplier( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->target_file_size_multiplier; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setTargetFileSizeMultiplier * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setTargetFileSizeMultiplier( +void Java_org_terarkdb_ColumnFamilyOptions_setTargetFileSizeMultiplier( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jtarget_file_size_multiplier) { reinterpret_cast(jhandle) @@ -4039,22 +4039,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setTargetFileSizeMultiplier( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxBytesForLevelBase * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_maxBytesForLevelBase( +jlong Java_org_terarkdb_ColumnFamilyOptions_maxBytesForLevelBase( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_bytes_for_level_base; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxBytesForLevelBase * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxBytesForLevelBase( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxBytesForLevelBase( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_bytes_for_level_base) { reinterpret_cast(jhandle) @@ -4063,22 +4063,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxBytesForLevelBase( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: levelCompactionDynamicLevelBytes * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_levelCompactionDynamicLevelBytes( +jboolean Java_org_terarkdb_ColumnFamilyOptions_levelCompactionDynamicLevelBytes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level_compaction_dynamic_level_bytes; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setLevelCompactionDynamicLevelBytes * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setLevelCompactionDynamicLevelBytes( +void Java_org_terarkdb_ColumnFamilyOptions_setLevelCompactionDynamicLevelBytes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jenable_dynamic_level_bytes) { reinterpret_cast(jhandle) @@ -4086,22 +4086,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setLevelCompactionDynamicLevelBytes( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxBytesForLevelMultiplier * Signature: (J)D */ -jdouble Java_org_rocksdb_ColumnFamilyOptions_maxBytesForLevelMultiplier( +jdouble Java_org_terarkdb_ColumnFamilyOptions_maxBytesForLevelMultiplier( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_bytes_for_level_multiplier; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxBytesForLevelMultiplier * Signature: (JD)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxBytesForLevelMultiplier( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxBytesForLevelMultiplier( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jdouble jmax_bytes_for_level_multiplier) { reinterpret_cast(jhandle) @@ -4110,11 +4110,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxBytesForLevelMultiplier( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxCompactionBytes * Signature: (J)I */ -jlong Java_org_rocksdb_ColumnFamilyOptions_maxCompactionBytes(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ColumnFamilyOptions_maxCompactionBytes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return static_cast( @@ -4123,11 +4123,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_maxCompactionBytes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxCompactionBytes * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxCompactionBytes( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxCompactionBytes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_compaction_bytes) { reinterpret_cast(jhandle) @@ -4135,11 +4135,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxCompactionBytes( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: arenaBlockSize * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_arenaBlockSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ColumnFamilyOptions_arenaBlockSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -4147,11 +4147,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_arenaBlockSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setArenaBlockSize * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setArenaBlockSize( +void Java_org_terarkdb_ColumnFamilyOptions_setArenaBlockSize( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jarena_block_size) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(jarena_block_size); @@ -4164,22 +4164,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setArenaBlockSize( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: disableAutoCompactions * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_disableAutoCompactions( +jboolean Java_org_terarkdb_ColumnFamilyOptions_disableAutoCompactions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->disable_auto_compactions; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setDisableAutoCompactions * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setDisableAutoCompactions( +void Java_org_terarkdb_ColumnFamilyOptions_setDisableAutoCompactions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jdisable_auto_compactions) { reinterpret_cast(jhandle) @@ -4187,22 +4187,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setDisableAutoCompactions( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxSequentialSkipInIterations * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_maxSequentialSkipInIterations( +jlong Java_org_terarkdb_ColumnFamilyOptions_maxSequentialSkipInIterations( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_sequential_skip_in_iterations; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxSequentialSkipInIterations * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxSequentialSkipInIterations( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxSequentialSkipInIterations( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_sequential_skip_in_iterations) { reinterpret_cast(jhandle) @@ -4211,22 +4211,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxSequentialSkipInIterations( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: inplaceUpdateSupport * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_inplaceUpdateSupport( +jboolean Java_org_terarkdb_ColumnFamilyOptions_inplaceUpdateSupport( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->inplace_update_support; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setInplaceUpdateSupport * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setInplaceUpdateSupport( +void Java_org_terarkdb_ColumnFamilyOptions_setInplaceUpdateSupport( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jinplace_update_support) { reinterpret_cast(jhandle) @@ -4234,22 +4234,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setInplaceUpdateSupport( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: inplaceUpdateNumLocks * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_inplaceUpdateNumLocks( +jlong Java_org_terarkdb_ColumnFamilyOptions_inplaceUpdateNumLocks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->inplace_update_num_locks; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setInplaceUpdateNumLocks * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setInplaceUpdateNumLocks( +void Java_org_terarkdb_ColumnFamilyOptions_setInplaceUpdateNumLocks( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jinplace_update_num_locks) { TERARKDB_NAMESPACE::Status s = @@ -4263,22 +4263,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setInplaceUpdateNumLocks( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: memtablePrefixBloomSizeRatio * Signature: (J)I */ -jdouble Java_org_rocksdb_ColumnFamilyOptions_memtablePrefixBloomSizeRatio( +jdouble Java_org_terarkdb_ColumnFamilyOptions_memtablePrefixBloomSizeRatio( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->memtable_prefix_bloom_size_ratio; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMemtablePrefixBloomSizeRatio * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMemtablePrefixBloomSizeRatio( +void Java_org_terarkdb_ColumnFamilyOptions_setMemtablePrefixBloomSizeRatio( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jdouble jmemtable_prefix_bloom_size_ratio) { reinterpret_cast(jhandle) @@ -4287,11 +4287,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMemtablePrefixBloomSizeRatio( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: bloomLocality * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_bloomLocality(JNIEnv* /*env*/, +jint Java_org_terarkdb_ColumnFamilyOptions_bloomLocality(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -4299,22 +4299,22 @@ jint Java_org_rocksdb_ColumnFamilyOptions_bloomLocality(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setBloomLocality * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setBloomLocality( +void Java_org_terarkdb_ColumnFamilyOptions_setBloomLocality( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jbloom_locality) { reinterpret_cast(jhandle) ->bloom_locality = static_cast(jbloom_locality); } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxSuccessiveMerges * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_maxSuccessiveMerges(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ColumnFamilyOptions_maxSuccessiveMerges(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -4322,11 +4322,11 @@ jlong Java_org_rocksdb_ColumnFamilyOptions_maxSuccessiveMerges(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxSuccessiveMerges * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxSuccessiveMerges( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxSuccessiveMerges( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jmax_successive_merges) { TERARKDB_NAMESPACE::Status s = @@ -4340,22 +4340,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxSuccessiveMerges( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: optimizeFiltersForHits * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_optimizeFiltersForHits( +jboolean Java_org_terarkdb_ColumnFamilyOptions_optimizeFiltersForHits( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->optimize_filters_for_hits; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setOptimizeFiltersForHits * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setOptimizeFiltersForHits( +void Java_org_terarkdb_ColumnFamilyOptions_setOptimizeFiltersForHits( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean joptimize_filters_for_hits) { reinterpret_cast(jhandle) @@ -4364,22 +4364,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setOptimizeFiltersForHits( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: optimizeRangeDeletion * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_optimizeRangeDeletion( +jboolean Java_org_terarkdb_ColumnFamilyOptions_optimizeRangeDeletion( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->optimize_range_deletion; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setOptimizeRangeDeletion * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setOptimizeRangeDeletion( +void Java_org_terarkdb_ColumnFamilyOptions_setOptimizeRangeDeletion( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean joptimize_range_deletion) { reinterpret_cast(jhandle) @@ -4387,22 +4387,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setOptimizeRangeDeletion( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: memtableHugePageSize * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_memtableHugePageSize( +jlong Java_org_terarkdb_ColumnFamilyOptions_memtableHugePageSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->memtable_huge_page_size; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMemtableHugePageSize * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMemtableHugePageSize( +void Java_org_terarkdb_ColumnFamilyOptions_setMemtableHugePageSize( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jmemtable_huge_page_size) { TERARKDB_NAMESPACE::Status s = @@ -4416,22 +4416,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMemtableHugePageSize( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: softPendingCompactionBytesLimit * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_softPendingCompactionBytesLimit( +jlong Java_org_terarkdb_ColumnFamilyOptions_softPendingCompactionBytesLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->soft_pending_compaction_bytes_limit; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setSoftPendingCompactionBytesLimit * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setSoftPendingCompactionBytesLimit( +void Java_org_terarkdb_ColumnFamilyOptions_setSoftPendingCompactionBytesLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jsoft_pending_compaction_bytes_limit) { reinterpret_cast(jhandle) @@ -4440,22 +4440,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setSoftPendingCompactionBytesLimit( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: softHardCompactionBytesLimit * Signature: (J)J */ -jlong Java_org_rocksdb_ColumnFamilyOptions_hardPendingCompactionBytesLimit( +jlong Java_org_terarkdb_ColumnFamilyOptions_hardPendingCompactionBytesLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->hard_pending_compaction_bytes_limit; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setHardPendingCompactionBytesLimit * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setHardPendingCompactionBytesLimit( +void Java_org_terarkdb_ColumnFamilyOptions_setHardPendingCompactionBytesLimit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jhard_pending_compaction_bytes_limit) { reinterpret_cast(jhandle) @@ -4464,22 +4464,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setHardPendingCompactionBytesLimit( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: level0FileNumCompactionTrigger * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_level0FileNumCompactionTrigger( +jint Java_org_terarkdb_ColumnFamilyOptions_level0FileNumCompactionTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level0_file_num_compaction_trigger; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setLevel0FileNumCompactionTrigger * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setLevel0FileNumCompactionTrigger( +void Java_org_terarkdb_ColumnFamilyOptions_setLevel0FileNumCompactionTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_file_num_compaction_trigger) { reinterpret_cast(jhandle) @@ -4488,22 +4488,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setLevel0FileNumCompactionTrigger( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: level0SlowdownWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_level0SlowdownWritesTrigger( +jint Java_org_terarkdb_ColumnFamilyOptions_level0SlowdownWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level0_slowdown_writes_trigger; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setLevel0SlowdownWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setLevel0SlowdownWritesTrigger( +void Java_org_terarkdb_ColumnFamilyOptions_setLevel0SlowdownWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_slowdown_writes_trigger) { reinterpret_cast(jhandle) @@ -4512,22 +4512,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setLevel0SlowdownWritesTrigger( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: level0StopWritesTrigger * Signature: (J)I */ -jint Java_org_rocksdb_ColumnFamilyOptions_level0StopWritesTrigger( +jint Java_org_terarkdb_ColumnFamilyOptions_level0StopWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->level0_stop_writes_trigger; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setLevel0StopWritesTrigger * Signature: (JI)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setLevel0StopWritesTrigger( +void Java_org_terarkdb_ColumnFamilyOptions_setLevel0StopWritesTrigger( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jlevel0_stop_writes_trigger) { reinterpret_cast(jhandle) @@ -4536,12 +4536,12 @@ void Java_org_rocksdb_ColumnFamilyOptions_setLevel0StopWritesTrigger( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: maxBytesForLevelMultiplierAdditional * Signature: (J)[I */ jintArray -Java_org_rocksdb_ColumnFamilyOptions_maxBytesForLevelMultiplierAdditional( +Java_org_terarkdb_ColumnFamilyOptions_maxBytesForLevelMultiplierAdditional( JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto mbflma = reinterpret_cast(jhandle) @@ -4575,11 +4575,11 @@ Java_org_rocksdb_ColumnFamilyOptions_maxBytesForLevelMultiplierAdditional( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setMaxBytesForLevelMultiplierAdditional * Signature: (J[I)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setMaxBytesForLevelMultiplierAdditional( +void Java_org_terarkdb_ColumnFamilyOptions_setMaxBytesForLevelMultiplierAdditional( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jintArray jmax_bytes_for_level_multiplier_additional) { jsize len = env->GetArrayLength(jmax_bytes_for_level_multiplier_additional); @@ -4603,22 +4603,22 @@ void Java_org_rocksdb_ColumnFamilyOptions_setMaxBytesForLevelMultiplierAdditiona } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: paranoidFileChecks * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_paranoidFileChecks( +jboolean Java_org_terarkdb_ColumnFamilyOptions_paranoidFileChecks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->paranoid_file_checks; } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setParanoidFileChecks * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setParanoidFileChecks( +void Java_org_terarkdb_ColumnFamilyOptions_setParanoidFileChecks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jparanoid_file_checks) { reinterpret_cast(jhandle) @@ -4626,11 +4626,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setParanoidFileChecks( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompactionPriority * Signature: (JB)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setCompactionPriority( +void Java_org_terarkdb_ColumnFamilyOptions_setCompactionPriority( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jcompaction_priority_value) { auto* cf_opts = @@ -4641,11 +4641,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setCompactionPriority( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: compactionPriority * Signature: (J)B */ -jbyte Java_org_rocksdb_ColumnFamilyOptions_compactionPriority(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_ColumnFamilyOptions_compactionPriority(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* cf_opts = @@ -4655,11 +4655,11 @@ jbyte Java_org_rocksdb_ColumnFamilyOptions_compactionPriority(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setReportBgIoStats * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setReportBgIoStats( +void Java_org_terarkdb_ColumnFamilyOptions_setReportBgIoStats( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jreport_bg_io_stats) { auto* cf_opts = @@ -4668,11 +4668,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setReportBgIoStats( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: reportBgIoStats * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_reportBgIoStats(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_ColumnFamilyOptions_reportBgIoStats(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* cf_opts = @@ -4681,11 +4681,11 @@ jboolean Java_org_rocksdb_ColumnFamilyOptions_reportBgIoStats(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setCompactionOptionsUniversal * Signature: (JJ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setCompactionOptionsUniversal( +void Java_org_terarkdb_ColumnFamilyOptions_setCompactionOptionsUniversal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcompaction_options_universal_handle) { auto* cf_opts = @@ -4697,11 +4697,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setCompactionOptionsUniversal( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: setForceConsistencyChecks * Signature: (JZ)V */ -void Java_org_rocksdb_ColumnFamilyOptions_setForceConsistencyChecks( +void Java_org_terarkdb_ColumnFamilyOptions_setForceConsistencyChecks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jforce_consistency_checks) { auto* cf_opts = @@ -4711,11 +4711,11 @@ void Java_org_rocksdb_ColumnFamilyOptions_setForceConsistencyChecks( } /* - * Class: org_rocksdb_ColumnFamilyOptions + * Class: org_terarkdb_ColumnFamilyOptions * Method: forceConsistencyChecks * Signature: (J)Z */ -jboolean Java_org_rocksdb_ColumnFamilyOptions_forceConsistencyChecks( +jboolean Java_org_terarkdb_ColumnFamilyOptions_forceConsistencyChecks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* cf_opts = reinterpret_cast(jhandle); @@ -4725,11 +4725,11 @@ jboolean Java_org_rocksdb_ColumnFamilyOptions_forceConsistencyChecks( ///////////////////////////////////////////////////////////////////// // TERARKDB_NAMESPACE::DBOptions /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setCheckPointFakeFlush * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setCheckPointFakeFlush( +void Java_org_terarkdb_DBOptions_setCheckPointFakeFlush( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jcheck_point_fake_flush) { auto* opt = reinterpret_cast(jhandle); @@ -4737,11 +4737,11 @@ void Java_org_rocksdb_DBOptions_setCheckPointFakeFlush( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: checkPointFakeFlush * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_checkPointFakeFlush(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_checkPointFakeFlush(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -4749,22 +4749,22 @@ jboolean Java_org_rocksdb_DBOptions_checkPointFakeFlush(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: newDBOptions * Signature: ()J */ -jlong Java_org_rocksdb_DBOptions_newDBOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_newDBOptions(JNIEnv* /*env*/, jclass /*jcls*/) { auto* dbop = new TERARKDB_NAMESPACE::DBOptions(); return reinterpret_cast(dbop); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: copyDBOptions * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_copyDBOptions(JNIEnv* /*env*/, jclass /*jcls*/, +jlong Java_org_terarkdb_DBOptions_copyDBOptions(JNIEnv* /*env*/, jclass /*jcls*/, jlong jhandle) { auto new_opt = new TERARKDB_NAMESPACE::DBOptions( *(reinterpret_cast(jhandle))); @@ -4772,11 +4772,11 @@ jlong Java_org_rocksdb_DBOptions_copyDBOptions(JNIEnv* /*env*/, jclass /*jcls*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: getDBOptionsFromProps * Signature: (Ljava/util/String;)J */ -jlong Java_org_rocksdb_DBOptions_getDBOptionsFromProps(JNIEnv* env, +jlong Java_org_terarkdb_DBOptions_getDBOptionsFromProps(JNIEnv* env, jclass /*jclazz*/, jstring jopt_string) { const char* opt_string = env->GetStringUTFChars(jopt_string, nullptr); @@ -4805,11 +4805,11 @@ jlong Java_org_rocksdb_DBOptions_getDBOptionsFromProps(JNIEnv* env, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_DBOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* dbo = reinterpret_cast(handle); @@ -4818,11 +4818,11 @@ void Java_org_rocksdb_DBOptions_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: optimizeForSmallDb * Signature: (J)V */ -void Java_org_rocksdb_DBOptions_optimizeForSmallDb(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_optimizeForSmallDb(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { reinterpret_cast(jhandle) @@ -4830,22 +4830,22 @@ void Java_org_rocksdb_DBOptions_optimizeForSmallDb(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setEnv * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setEnv(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setEnv(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jenv_handle) { reinterpret_cast(jhandle)->env = reinterpret_cast(jenv_handle); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setIncreaseParallelism * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setIncreaseParallelism(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setIncreaseParallelism(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint totalThreads) { @@ -4854,11 +4854,11 @@ void Java_org_rocksdb_DBOptions_setIncreaseParallelism(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setCreateIfMissing * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setCreateIfMissing(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setCreateIfMissing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { @@ -4867,11 +4867,11 @@ void Java_org_rocksdb_DBOptions_setCreateIfMissing(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: createIfMissing * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_createIfMissing(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_createIfMissing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -4879,11 +4879,11 @@ jboolean Java_org_rocksdb_DBOptions_createIfMissing(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setCreateMissingColumnFamilies * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setCreateMissingColumnFamilies(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setCreateMissingColumnFamilies(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean flag) { @@ -4892,22 +4892,22 @@ void Java_org_rocksdb_DBOptions_setCreateMissingColumnFamilies(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: createMissingColumnFamilies * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_createMissingColumnFamilies( +jboolean Java_org_terarkdb_DBOptions_createMissingColumnFamilies( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->create_missing_column_families; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setErrorIfExists * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setErrorIfExists(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setErrorIfExists(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean error_if_exists) { @@ -4916,11 +4916,11 @@ void Java_org_rocksdb_DBOptions_setErrorIfExists(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: errorIfExists * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_errorIfExists(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_errorIfExists(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -4928,11 +4928,11 @@ jboolean Java_org_rocksdb_DBOptions_errorIfExists(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setParanoidChecks * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setParanoidChecks(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setParanoidChecks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean paranoid_checks) { @@ -4941,11 +4941,11 @@ void Java_org_rocksdb_DBOptions_setParanoidChecks(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: paranoidChecks * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_paranoidChecks(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_paranoidChecks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -4953,11 +4953,11 @@ jboolean Java_org_rocksdb_DBOptions_paranoidChecks(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setRateLimiter * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setRateLimiter(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setRateLimiter(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrate_limiter_handle) { std::shared_ptr* pRateLimiter = @@ -4968,11 +4968,11 @@ void Java_org_rocksdb_DBOptions_setRateLimiter(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setSstFileManager * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setSstFileManager( +void Java_org_terarkdb_DBOptions_setSstFileManager( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jsst_file_manager_handle) { auto* sptr_sst_file_manager = @@ -4983,11 +4983,11 @@ void Java_org_rocksdb_DBOptions_setSstFileManager( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setLogger * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setLogger(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setLogger(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jlogger_handle) { std::shared_ptr* pLogger = reinterpret_cast*>( @@ -4997,11 +4997,11 @@ void Java_org_rocksdb_DBOptions_setLogger(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setInfoLogLevel * Signature: (JB)V */ -void Java_org_rocksdb_DBOptions_setInfoLogLevel(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setInfoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jlog_level) { reinterpret_cast(jhandle)->info_log_level = @@ -5009,11 +5009,11 @@ void Java_org_rocksdb_DBOptions_setInfoLogLevel(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: infoLogLevel * Signature: (J)B */ -jbyte Java_org_rocksdb_DBOptions_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, +jbyte Java_org_terarkdb_DBOptions_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return static_cast( reinterpret_cast(jhandle) @@ -5021,11 +5021,11 @@ jbyte Java_org_rocksdb_DBOptions_infoLogLevel(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxTotalWalSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setMaxTotalWalSize(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setMaxTotalWalSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_total_wal_size) { @@ -5034,11 +5034,11 @@ void Java_org_rocksdb_DBOptions_setMaxTotalWalSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxTotalWalSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_maxTotalWalSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_maxTotalWalSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5046,11 +5046,11 @@ jlong Java_org_rocksdb_DBOptions_maxTotalWalSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxOpenFiles * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setMaxOpenFiles(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setMaxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_open_files) { reinterpret_cast(jhandle)->max_open_files = @@ -5058,22 +5058,22 @@ void Java_org_rocksdb_DBOptions_setMaxOpenFiles(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxOpenFiles * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_maxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, +jint Java_org_terarkdb_DBOptions_maxOpenFiles(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->max_open_files; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxFileOpeningThreads * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setMaxFileOpeningThreads( +void Java_org_terarkdb_DBOptions_setMaxFileOpeningThreads( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jmax_file_opening_threads) { reinterpret_cast(jhandle) @@ -5081,11 +5081,11 @@ void Java_org_rocksdb_DBOptions_setMaxFileOpeningThreads( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxFileOpeningThreads * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_maxFileOpeningThreads(JNIEnv* /*env*/, +jint Java_org_terarkdb_DBOptions_maxFileOpeningThreads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -5093,11 +5093,11 @@ jint Java_org_rocksdb_DBOptions_maxFileOpeningThreads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setStatistics * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setStatistics(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setStatistics(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jstatistics_handle) { auto* opt = reinterpret_cast(jhandle); @@ -5108,11 +5108,11 @@ void Java_org_rocksdb_DBOptions_setStatistics(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: statistics * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_statistics(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_DBOptions_statistics(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); std::shared_ptr sptr = opt->statistics; @@ -5126,32 +5126,32 @@ jlong Java_org_rocksdb_DBOptions_statistics(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setUseFsync * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setUseFsync(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setUseFsync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_fsync) { reinterpret_cast(jhandle)->use_fsync = static_cast(use_fsync); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: useFsync * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_useFsync(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_DBOptions_useFsync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle)->use_fsync; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setDbPaths * Signature: (J[Ljava/lang/String;[J)V */ -void Java_org_rocksdb_DBOptions_setDbPaths(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setDbPaths(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jpaths, jlongArray jtarget_sizes) { std::vector db_paths; @@ -5193,22 +5193,22 @@ void Java_org_rocksdb_DBOptions_setDbPaths(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: dbPathsLen * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_dbPathsLen(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_DBOptions_dbPathsLen(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->db_paths.size()); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: dbPaths * Signature: (J[Ljava/lang/String;[J)V */ -void Java_org_rocksdb_DBOptions_dbPaths(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_dbPaths(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jpaths, jlongArray jtarget_sizes) { jlong* ptr_jtarget_size = env->GetLongArrayElements(jtarget_sizes, nullptr); @@ -5243,11 +5243,11 @@ void Java_org_rocksdb_DBOptions_dbPaths(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setDbLogDir * Signature: (JLjava/lang/String)V */ -void Java_org_rocksdb_DBOptions_setDbLogDir(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setDbLogDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jdb_log_dir) { const char* log_dir = env->GetStringUTFChars(jdb_log_dir, nullptr); @@ -5262,11 +5262,11 @@ void Java_org_rocksdb_DBOptions_setDbLogDir(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: dbLogDir * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_DBOptions_dbLogDir(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_DBOptions_dbLogDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { return env->NewStringUTF( reinterpret_cast(jhandle) @@ -5274,11 +5274,11 @@ jstring Java_org_rocksdb_DBOptions_dbLogDir(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWalDir * Signature: (JLjava/lang/String)V */ -void Java_org_rocksdb_DBOptions_setWalDir(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setWalDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jwal_dir) { const char* wal_dir = env->GetStringUTFChars(jwal_dir, 0); reinterpret_cast(jhandle)->wal_dir.assign( @@ -5287,11 +5287,11 @@ void Java_org_rocksdb_DBOptions_setWalDir(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: walDir * Signature: (J)Ljava/lang/String */ -jstring Java_org_rocksdb_DBOptions_walDir(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_DBOptions_walDir(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { return env->NewStringUTF( reinterpret_cast(jhandle) @@ -5299,33 +5299,33 @@ jstring Java_org_rocksdb_DBOptions_walDir(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setDeleteObsoleteFilesPeriodMicros * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setDeleteObsoleteFilesPeriodMicros( +void Java_org_terarkdb_DBOptions_setDeleteObsoleteFilesPeriodMicros( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong micros) { reinterpret_cast(jhandle) ->delete_obsolete_files_period_micros = static_cast(micros); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: deleteObsoleteFilesPeriodMicros * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_deleteObsoleteFilesPeriodMicros( +jlong Java_org_terarkdb_DBOptions_deleteObsoleteFilesPeriodMicros( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->delete_obsolete_files_period_micros; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setBaseBackgroundCompactions * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setBaseBackgroundCompactions(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setBaseBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max) { @@ -5334,11 +5334,11 @@ void Java_org_rocksdb_DBOptions_setBaseBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: baseBackgroundCompactions * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_baseBackgroundCompactions(JNIEnv* /*env*/, +jint Java_org_terarkdb_DBOptions_baseBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5346,11 +5346,11 @@ jint Java_org_rocksdb_DBOptions_baseBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxBackgroundCompactions * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setMaxBackgroundCompactions(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setMaxBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max) { @@ -5359,11 +5359,11 @@ void Java_org_rocksdb_DBOptions_setMaxBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxBackgroundCompactions * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_maxBackgroundCompactions(JNIEnv* /*env*/, +jint Java_org_terarkdb_DBOptions_maxBackgroundCompactions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5371,11 +5371,11 @@ jint Java_org_rocksdb_DBOptions_maxBackgroundCompactions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxBackgroundFlushes * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setMaxBackgroundFlushes( +void Java_org_terarkdb_DBOptions_setMaxBackgroundFlushes( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_background_flushes) { reinterpret_cast(jhandle) @@ -5383,11 +5383,11 @@ void Java_org_rocksdb_DBOptions_setMaxBackgroundFlushes( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxBackgroundFlushes * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_maxBackgroundFlushes(JNIEnv* /*env*/, +jint Java_org_terarkdb_DBOptions_maxBackgroundFlushes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5395,11 +5395,11 @@ jint Java_org_rocksdb_DBOptions_maxBackgroundFlushes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxBackgroundJobs * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setMaxBackgroundJobs(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setMaxBackgroundJobs(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint max_background_jobs) { @@ -5408,11 +5408,11 @@ void Java_org_rocksdb_DBOptions_setMaxBackgroundJobs(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxBackgroundJobs * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_maxBackgroundJobs(JNIEnv* /*env*/, +jint Java_org_terarkdb_DBOptions_maxBackgroundJobs(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5420,11 +5420,11 @@ jint Java_org_rocksdb_DBOptions_maxBackgroundJobs(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxLogFileSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setMaxLogFileSize(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setMaxLogFileSize(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong max_log_file_size) { TERARKDB_NAMESPACE::Status s = @@ -5438,11 +5438,11 @@ void Java_org_rocksdb_DBOptions_setMaxLogFileSize(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxLogFileSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_maxLogFileSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_maxLogFileSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5450,11 +5450,11 @@ jlong Java_org_rocksdb_DBOptions_maxLogFileSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setLogFileTimeToRoll * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setLogFileTimeToRoll( +void Java_org_terarkdb_DBOptions_setLogFileTimeToRoll( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong log_file_time_to_roll) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(log_file_time_to_roll); @@ -5467,11 +5467,11 @@ void Java_org_rocksdb_DBOptions_setLogFileTimeToRoll( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: logFileTimeToRoll * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_logFileTimeToRoll(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_logFileTimeToRoll(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5479,11 +5479,11 @@ jlong Java_org_rocksdb_DBOptions_logFileTimeToRoll(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setKeepLogFileNum * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setKeepLogFileNum(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setKeepLogFileNum(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong keep_log_file_num) { TERARKDB_NAMESPACE::Status s = @@ -5497,11 +5497,11 @@ void Java_org_rocksdb_DBOptions_setKeepLogFileNum(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: keepLogFileNum * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_keepLogFileNum(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_keepLogFileNum(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5509,11 +5509,11 @@ jlong Java_org_rocksdb_DBOptions_keepLogFileNum(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setRecycleLogFileNum * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setRecycleLogFileNum( +void Java_org_terarkdb_DBOptions_setRecycleLogFileNum( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong recycle_log_file_num) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(recycle_log_file_num); @@ -5526,11 +5526,11 @@ void Java_org_rocksdb_DBOptions_setRecycleLogFileNum( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: recycleLogFileNum * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_recycleLogFileNum(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_recycleLogFileNum(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5538,11 +5538,11 @@ jlong Java_org_rocksdb_DBOptions_recycleLogFileNum(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setMaxManifestFileSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setMaxManifestFileSize( +void Java_org_terarkdb_DBOptions_setMaxManifestFileSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong max_manifest_file_size) { reinterpret_cast(jhandle) @@ -5550,11 +5550,11 @@ void Java_org_rocksdb_DBOptions_setMaxManifestFileSize( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: maxManifestFileSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_maxManifestFileSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_maxManifestFileSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5562,11 +5562,11 @@ jlong Java_org_rocksdb_DBOptions_maxManifestFileSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setTableCacheNumshardbits * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setTableCacheNumshardbits( +void Java_org_terarkdb_DBOptions_setTableCacheNumshardbits( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint table_cache_numshardbits) { reinterpret_cast(jhandle) @@ -5574,11 +5574,11 @@ void Java_org_rocksdb_DBOptions_setTableCacheNumshardbits( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: tableCacheNumshardbits * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_tableCacheNumshardbits(JNIEnv* /*env*/, +jint Java_org_terarkdb_DBOptions_tableCacheNumshardbits(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5586,11 +5586,11 @@ jint Java_org_rocksdb_DBOptions_tableCacheNumshardbits(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWalTtlSeconds * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setWalTtlSeconds(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setWalTtlSeconds(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong WAL_ttl_seconds) { @@ -5599,11 +5599,11 @@ void Java_org_rocksdb_DBOptions_setWalTtlSeconds(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: walTtlSeconds * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_walTtlSeconds(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_walTtlSeconds(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5611,11 +5611,11 @@ jlong Java_org_rocksdb_DBOptions_walTtlSeconds(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWalSizeLimitMB * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setWalSizeLimitMB(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setWalSizeLimitMB(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong WAL_size_limit_MB) { @@ -5624,11 +5624,11 @@ void Java_org_rocksdb_DBOptions_setWalSizeLimitMB(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: walTtlSeconds * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_walSizeLimitMB(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_walSizeLimitMB(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5636,11 +5636,11 @@ jlong Java_org_rocksdb_DBOptions_walSizeLimitMB(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setManifestPreallocationSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setManifestPreallocationSize( +void Java_org_terarkdb_DBOptions_setManifestPreallocationSize( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong preallocation_size) { TERARKDB_NAMESPACE::Status s = TERARKDB_NAMESPACE::check_if_jlong_fits_size_t(preallocation_size); @@ -5653,11 +5653,11 @@ void Java_org_rocksdb_DBOptions_setManifestPreallocationSize( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: manifestPreallocationSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_manifestPreallocationSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_manifestPreallocationSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5665,11 +5665,11 @@ jlong Java_org_rocksdb_DBOptions_manifestPreallocationSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: useDirectReads * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_useDirectReads(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_useDirectReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5677,11 +5677,11 @@ jboolean Java_org_rocksdb_DBOptions_useDirectReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setUseDirectReads * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setUseDirectReads(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setUseDirectReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_direct_reads) { @@ -5690,22 +5690,22 @@ void Java_org_rocksdb_DBOptions_setUseDirectReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: useDirectIoForFlushAndCompaction * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_useDirectIoForFlushAndCompaction( +jboolean Java_org_terarkdb_DBOptions_useDirectIoForFlushAndCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->use_direct_io_for_flush_and_compaction; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setUseDirectReads * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setUseDirectIoForFlushAndCompaction( +void Java_org_terarkdb_DBOptions_setUseDirectIoForFlushAndCompaction( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_direct_io_for_flush_and_compaction) { reinterpret_cast(jhandle) @@ -5714,11 +5714,11 @@ void Java_org_rocksdb_DBOptions_setUseDirectIoForFlushAndCompaction( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAllowFAllocate * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAllowFAllocate(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setAllowFAllocate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jallow_fallocate) { @@ -5727,11 +5727,11 @@ void Java_org_rocksdb_DBOptions_setAllowFAllocate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: allowFAllocate * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_allowFAllocate(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_allowFAllocate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -5739,11 +5739,11 @@ jboolean Java_org_rocksdb_DBOptions_allowFAllocate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAllowMmapReads * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAllowMmapReads(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setAllowMmapReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow_mmap_reads) { @@ -5752,11 +5752,11 @@ void Java_org_rocksdb_DBOptions_setAllowMmapReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: allowMmapReads * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_allowMmapReads(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_allowMmapReads(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5764,11 +5764,11 @@ jboolean Java_org_rocksdb_DBOptions_allowMmapReads(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAllowMmapWrites * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAllowMmapWrites(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setAllowMmapWrites(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow_mmap_writes) { @@ -5777,11 +5777,11 @@ void Java_org_rocksdb_DBOptions_setAllowMmapWrites(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: allowMmapWrites * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_allowMmapWrites(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_allowMmapWrites(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5789,11 +5789,11 @@ jboolean Java_org_rocksdb_DBOptions_allowMmapWrites(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setIsFdCloseOnExec * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setIsFdCloseOnExec( +void Java_org_terarkdb_DBOptions_setIsFdCloseOnExec( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean is_fd_close_on_exec) { reinterpret_cast(jhandle) @@ -5801,11 +5801,11 @@ void Java_org_rocksdb_DBOptions_setIsFdCloseOnExec( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: isFdCloseOnExec * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_isFdCloseOnExec(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_isFdCloseOnExec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5813,11 +5813,11 @@ jboolean Java_org_rocksdb_DBOptions_isFdCloseOnExec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setStatsDumpPeriodSec * Signature: (JI)V */ -void Java_org_rocksdb_DBOptions_setStatsDumpPeriodSec( +void Java_org_terarkdb_DBOptions_setStatsDumpPeriodSec( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint stats_dump_period_sec) { reinterpret_cast(jhandle) @@ -5825,11 +5825,11 @@ void Java_org_rocksdb_DBOptions_setStatsDumpPeriodSec( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: statsDumpPeriodSec * Signature: (J)I */ -jint Java_org_rocksdb_DBOptions_statsDumpPeriodSec(JNIEnv* /*env*/, +jint Java_org_terarkdb_DBOptions_statsDumpPeriodSec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5837,11 +5837,11 @@ jint Java_org_rocksdb_DBOptions_statsDumpPeriodSec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAdviseRandomOnOpen * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAdviseRandomOnOpen( +void Java_org_terarkdb_DBOptions_setAdviseRandomOnOpen( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean advise_random_on_open) { reinterpret_cast(jhandle) @@ -5849,11 +5849,11 @@ void Java_org_rocksdb_DBOptions_setAdviseRandomOnOpen( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: adviseRandomOnOpen * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_adviseRandomOnOpen(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_adviseRandomOnOpen(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -5861,11 +5861,11 @@ jboolean Java_org_rocksdb_DBOptions_adviseRandomOnOpen(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setDbWriteBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setDbWriteBufferSize( +void Java_org_terarkdb_DBOptions_setDbWriteBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jdb_write_buffer_size) { auto* opt = reinterpret_cast(jhandle); @@ -5873,11 +5873,11 @@ void Java_org_rocksdb_DBOptions_setDbWriteBufferSize( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWriteBufferManager * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setWriteBufferManager( +void Java_org_terarkdb_DBOptions_setWriteBufferManager( JNIEnv* /*env*/, jobject /*jobj*/, jlong jdb_options_handle, jlong jwrite_buffer_manager_handle) { auto* write_buffer_manager = reinterpret_cast< @@ -5888,11 +5888,11 @@ void Java_org_rocksdb_DBOptions_setWriteBufferManager( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: dbWriteBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_dbWriteBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_dbWriteBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -5900,11 +5900,11 @@ jlong Java_org_rocksdb_DBOptions_dbWriteBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAccessHintOnCompactionStart * Signature: (JB)V */ -void Java_org_rocksdb_DBOptions_setAccessHintOnCompactionStart( +void Java_org_terarkdb_DBOptions_setAccessHintOnCompactionStart( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jaccess_hint_value) { auto* opt = reinterpret_cast(jhandle); @@ -5913,11 +5913,11 @@ void Java_org_rocksdb_DBOptions_setAccessHintOnCompactionStart( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: accessHintOnCompactionStart * Signature: (J)B */ -jbyte Java_org_rocksdb_DBOptions_accessHintOnCompactionStart(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_DBOptions_accessHintOnCompactionStart(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -5926,11 +5926,11 @@ jbyte Java_org_rocksdb_DBOptions_accessHintOnCompactionStart(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setNewTableReaderForCompactionInputs * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setNewTableReaderForCompactionInputs( +void Java_org_terarkdb_DBOptions_setNewTableReaderForCompactionInputs( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jnew_table_reader_for_compaction_inputs) { auto* opt = reinterpret_cast(jhandle); @@ -5939,22 +5939,22 @@ void Java_org_rocksdb_DBOptions_setNewTableReaderForCompactionInputs( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: newTableReaderForCompactionInputs * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_newTableReaderForCompactionInputs( +jboolean Java_org_terarkdb_DBOptions_newTableReaderForCompactionInputs( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->new_table_reader_for_compaction_inputs); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setCompactionReadaheadSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setCompactionReadaheadSize( +void Java_org_terarkdb_DBOptions_setCompactionReadaheadSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcompaction_readahead_size) { auto* opt = reinterpret_cast(jhandle); @@ -5963,11 +5963,11 @@ void Java_org_rocksdb_DBOptions_setCompactionReadaheadSize( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: compactionReadaheadSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_compactionReadaheadSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_compactionReadaheadSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -5975,11 +5975,11 @@ jlong Java_org_rocksdb_DBOptions_compactionReadaheadSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setRandomAccessMaxBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setRandomAccessMaxBufferSize( +void Java_org_terarkdb_DBOptions_setRandomAccessMaxBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrandom_access_max_buffer_size) { auto* opt = reinterpret_cast(jhandle); @@ -5988,11 +5988,11 @@ void Java_org_rocksdb_DBOptions_setRandomAccessMaxBufferSize( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: randomAccessMaxBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_randomAccessMaxBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_randomAccessMaxBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6000,11 +6000,11 @@ jlong Java_org_rocksdb_DBOptions_randomAccessMaxBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWritableFileMaxBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setWritableFileMaxBufferSize( +void Java_org_terarkdb_DBOptions_setWritableFileMaxBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwritable_file_max_buffer_size) { auto* opt = reinterpret_cast(jhandle); @@ -6013,11 +6013,11 @@ void Java_org_rocksdb_DBOptions_setWritableFileMaxBufferSize( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: writableFileMaxBufferSize * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_writableFileMaxBufferSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_writableFileMaxBufferSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6025,11 +6025,11 @@ jlong Java_org_rocksdb_DBOptions_writableFileMaxBufferSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setUseAdaptiveMutex * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setUseAdaptiveMutex( +void Java_org_terarkdb_DBOptions_setUseAdaptiveMutex( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean use_adaptive_mutex) { reinterpret_cast(jhandle) @@ -6037,11 +6037,11 @@ void Java_org_rocksdb_DBOptions_setUseAdaptiveMutex( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: useAdaptiveMutex * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_useAdaptiveMutex(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_useAdaptiveMutex(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6049,11 +6049,11 @@ jboolean Java_org_rocksdb_DBOptions_useAdaptiveMutex(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setBytesPerSync * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setBytesPerSync(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong bytes_per_sync) { reinterpret_cast(jhandle)->bytes_per_sync = @@ -6061,22 +6061,22 @@ void Java_org_rocksdb_DBOptions_setBytesPerSync(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: bytesPerSync * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_bytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_DBOptions_bytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->bytes_per_sync; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWalBytesPerSync * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setWalBytesPerSync(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setWalBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwal_bytes_per_sync) { @@ -6085,11 +6085,11 @@ void Java_org_rocksdb_DBOptions_setWalBytesPerSync(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: walBytesPerSync * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_walBytesPerSync(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_walBytesPerSync(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6097,11 +6097,11 @@ jlong Java_org_rocksdb_DBOptions_walBytesPerSync(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setEnableThreadTracking * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setEnableThreadTracking( +void Java_org_terarkdb_DBOptions_setEnableThreadTracking( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jenable_thread_tracking) { auto* opt = reinterpret_cast(jhandle); @@ -6109,11 +6109,11 @@ void Java_org_rocksdb_DBOptions_setEnableThreadTracking( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: enableThreadTracking * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_enableThreadTracking(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_enableThreadTracking(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6121,11 +6121,11 @@ jboolean Java_org_rocksdb_DBOptions_enableThreadTracking(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setDelayedWriteRate * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setDelayedWriteRate(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setDelayedWriteRate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jdelayed_write_rate) { @@ -6134,11 +6134,11 @@ void Java_org_rocksdb_DBOptions_setDelayedWriteRate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: delayedWriteRate * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_delayedWriteRate(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_delayedWriteRate(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6146,55 +6146,55 @@ jlong Java_org_rocksdb_DBOptions_delayedWriteRate(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAllowConcurrentMemtableWrite * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAllowConcurrentMemtableWrite( +void Java_org_terarkdb_DBOptions_setAllowConcurrentMemtableWrite( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean allow) { reinterpret_cast(jhandle) ->allow_concurrent_memtable_write = static_cast(allow); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: allowConcurrentMemtableWrite * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_allowConcurrentMemtableWrite( +jboolean Java_org_terarkdb_DBOptions_allowConcurrentMemtableWrite( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->allow_concurrent_memtable_write; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setEnableWriteThreadAdaptiveYield * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setEnableWriteThreadAdaptiveYield( +void Java_org_terarkdb_DBOptions_setEnableWriteThreadAdaptiveYield( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean yield) { reinterpret_cast(jhandle) ->enable_write_thread_adaptive_yield = static_cast(yield); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: enableWriteThreadAdaptiveYield * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_enableWriteThreadAdaptiveYield( +jboolean Java_org_terarkdb_DBOptions_enableWriteThreadAdaptiveYield( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) ->enable_write_thread_adaptive_yield; } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWriteThreadMaxYieldUsec * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setWriteThreadMaxYieldUsec(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setWriteThreadMaxYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong max) { @@ -6203,11 +6203,11 @@ void Java_org_rocksdb_DBOptions_setWriteThreadMaxYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: writeThreadMaxYieldUsec * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_writeThreadMaxYieldUsec(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_writeThreadMaxYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6215,11 +6215,11 @@ jlong Java_org_rocksdb_DBOptions_writeThreadMaxYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWriteThreadSlowYieldUsec * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setWriteThreadSlowYieldUsec(JNIEnv* /*env*/, +void Java_org_terarkdb_DBOptions_setWriteThreadSlowYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong slow) { @@ -6228,11 +6228,11 @@ void Java_org_rocksdb_DBOptions_setWriteThreadSlowYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: writeThreadSlowYieldUsec * Signature: (J)J */ -jlong Java_org_rocksdb_DBOptions_writeThreadSlowYieldUsec(JNIEnv* /*env*/, +jlong Java_org_terarkdb_DBOptions_writeThreadSlowYieldUsec(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6240,11 +6240,11 @@ jlong Java_org_rocksdb_DBOptions_writeThreadSlowYieldUsec(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setSkipStatsUpdateOnDbOpen * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setSkipStatsUpdateOnDbOpen( +void Java_org_terarkdb_DBOptions_setSkipStatsUpdateOnDbOpen( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jskip_stats_update_on_db_open) { auto* opt = reinterpret_cast(jhandle); @@ -6253,11 +6253,11 @@ void Java_org_rocksdb_DBOptions_setSkipStatsUpdateOnDbOpen( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: skipStatsUpdateOnDbOpen * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_skipStatsUpdateOnDbOpen(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_skipStatsUpdateOnDbOpen(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6265,11 +6265,11 @@ jboolean Java_org_rocksdb_DBOptions_skipStatsUpdateOnDbOpen(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setWalRecoveryMode * Signature: (JB)V */ -void Java_org_rocksdb_DBOptions_setWalRecoveryMode( +void Java_org_terarkdb_DBOptions_setWalRecoveryMode( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jwal_recovery_mode_value) { auto* opt = reinterpret_cast(jhandle); @@ -6279,11 +6279,11 @@ void Java_org_rocksdb_DBOptions_setWalRecoveryMode( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: walRecoveryMode * Signature: (J)B */ -jbyte Java_org_rocksdb_DBOptions_walRecoveryMode(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_DBOptions_walRecoveryMode(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6292,11 +6292,11 @@ jbyte Java_org_rocksdb_DBOptions_walRecoveryMode(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAllow2pc * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAllow2pc(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setAllow2pc(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jallow_2pc) { auto* opt = reinterpret_cast(jhandle); @@ -6304,22 +6304,22 @@ void Java_org_rocksdb_DBOptions_setAllow2pc(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: allow2pc * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_allow2pc(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_DBOptions_allow2pc(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->allow_2pc); } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setRowCache * Signature: (JJ)V */ -void Java_org_rocksdb_DBOptions_setRowCache(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_DBOptions_setRowCache(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jrow_cache_handle) { auto* opt = reinterpret_cast(jhandle); @@ -6330,11 +6330,11 @@ void Java_org_rocksdb_DBOptions_setRowCache(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setFailIfOptionsFileError * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setFailIfOptionsFileError( +void Java_org_terarkdb_DBOptions_setFailIfOptionsFileError( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jfail_if_options_file_error) { auto* opt = reinterpret_cast(jhandle); @@ -6343,11 +6343,11 @@ void Java_org_rocksdb_DBOptions_setFailIfOptionsFileError( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: failIfOptionsFileError * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_failIfOptionsFileError(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_failIfOptionsFileError(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6355,11 +6355,11 @@ jboolean Java_org_rocksdb_DBOptions_failIfOptionsFileError(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setDumpMallocStats * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setDumpMallocStats( +void Java_org_terarkdb_DBOptions_setDumpMallocStats( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jdump_malloc_stats) { auto* opt = reinterpret_cast(jhandle); @@ -6367,11 +6367,11 @@ void Java_org_rocksdb_DBOptions_setDumpMallocStats( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: dumpMallocStats * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_dumpMallocStats(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_dumpMallocStats(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6379,11 +6379,11 @@ jboolean Java_org_rocksdb_DBOptions_dumpMallocStats(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAvoidFlushDuringRecovery * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAvoidFlushDuringRecovery( +void Java_org_terarkdb_DBOptions_setAvoidFlushDuringRecovery( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean javoid_flush_during_recovery) { auto* opt = reinterpret_cast(jhandle); @@ -6392,11 +6392,11 @@ void Java_org_rocksdb_DBOptions_setAvoidFlushDuringRecovery( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: avoidFlushDuringRecovery * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_avoidFlushDuringRecovery(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_avoidFlushDuringRecovery(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6404,11 +6404,11 @@ jboolean Java_org_rocksdb_DBOptions_avoidFlushDuringRecovery(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: setAvoidFlushDuringShutdown * Signature: (JZ)V */ -void Java_org_rocksdb_DBOptions_setAvoidFlushDuringShutdown( +void Java_org_terarkdb_DBOptions_setAvoidFlushDuringShutdown( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean javoid_flush_during_shutdown) { auto* opt = reinterpret_cast(jhandle); @@ -6417,11 +6417,11 @@ void Java_org_rocksdb_DBOptions_setAvoidFlushDuringShutdown( } /* - * Class: org_rocksdb_DBOptions + * Class: org_terarkdb_DBOptions * Method: avoidFlushDuringShutdown * Signature: (J)Z */ -jboolean Java_org_rocksdb_DBOptions_avoidFlushDuringShutdown(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_DBOptions_avoidFlushDuringShutdown(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6432,22 +6432,22 @@ jboolean Java_org_rocksdb_DBOptions_avoidFlushDuringShutdown(JNIEnv* /*env*/, // TERARKDB_NAMESPACE::WriteOptions /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: newWriteOptions * Signature: ()J */ -jlong Java_org_rocksdb_WriteOptions_newWriteOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_WriteOptions_newWriteOptions(JNIEnv* /*env*/, jclass /*jcls*/) { auto* op = new TERARKDB_NAMESPACE::WriteOptions(); return reinterpret_cast(op); } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: copyWriteOptions * Signature: (J)J */ -jlong Java_org_rocksdb_WriteOptions_copyWriteOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_WriteOptions_copyWriteOptions(JNIEnv* /*env*/, jclass /*jcls*/, jlong jhandle) { auto new_opt = new TERARKDB_NAMESPACE::WriteOptions( @@ -6456,11 +6456,11 @@ jlong Java_org_rocksdb_WriteOptions_copyWriteOptions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: disposeInternal * Signature: ()V */ -void Java_org_rocksdb_WriteOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle) { auto* write_options = @@ -6470,33 +6470,33 @@ void Java_org_rocksdb_WriteOptions_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: setSync * Signature: (JZ)V */ -void Java_org_rocksdb_WriteOptions_setSync(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteOptions_setSync(JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle, jboolean jflag) { reinterpret_cast(jhandle)->sync = jflag; } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: sync * Signature: (J)Z */ -jboolean Java_org_rocksdb_WriteOptions_sync(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_WriteOptions_sync(JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle) { return reinterpret_cast(jhandle)->sync; } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: setDisableWAL * Signature: (JZ)V */ -void Java_org_rocksdb_WriteOptions_setDisableWAL(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteOptions_setDisableWAL(JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle, jboolean jflag) { @@ -6505,11 +6505,11 @@ void Java_org_rocksdb_WriteOptions_setDisableWAL(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: disableWAL * Signature: (J)Z */ -jboolean Java_org_rocksdb_WriteOptions_disableWAL(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_WriteOptions_disableWAL(JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6517,11 +6517,11 @@ jboolean Java_org_rocksdb_WriteOptions_disableWAL(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: setIgnoreMissingColumnFamilies * Signature: (JZ)V */ -void Java_org_rocksdb_WriteOptions_setIgnoreMissingColumnFamilies( +void Java_org_terarkdb_WriteOptions_setIgnoreMissingColumnFamilies( JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle, jboolean jignore_missing_column_families) { reinterpret_cast(jhandle) @@ -6530,22 +6530,22 @@ void Java_org_rocksdb_WriteOptions_setIgnoreMissingColumnFamilies( } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: ignoreMissingColumnFamilies * Signature: (J)Z */ -jboolean Java_org_rocksdb_WriteOptions_ignoreMissingColumnFamilies( +jboolean Java_org_terarkdb_WriteOptions_ignoreMissingColumnFamilies( JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle) { return reinterpret_cast(jhandle) ->ignore_missing_column_families; } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: setNoSlowdown * Signature: (JZ)V */ -void Java_org_rocksdb_WriteOptions_setNoSlowdown(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteOptions_setNoSlowdown(JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle, jboolean jno_slowdown) { @@ -6554,11 +6554,11 @@ void Java_org_rocksdb_WriteOptions_setNoSlowdown(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteOptions + * Class: org_terarkdb_WriteOptions * Method: noSlowdown * Signature: (J)Z */ -jboolean Java_org_rocksdb_WriteOptions_noSlowdown(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_WriteOptions_noSlowdown(JNIEnv* /*env*/, jobject /*jwrite_options*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6569,22 +6569,22 @@ jboolean Java_org_rocksdb_WriteOptions_noSlowdown(JNIEnv* /*env*/, // TERARKDB_NAMESPACE::ReadOptions /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: newReadOptions * Signature: ()J */ -jlong Java_org_rocksdb_ReadOptions_newReadOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ReadOptions_newReadOptions(JNIEnv* /*env*/, jclass /*jcls*/) { auto* read_options = new TERARKDB_NAMESPACE::ReadOptions(); return reinterpret_cast(read_options); } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: copyReadOptions * Signature: (J)J */ -jlong Java_org_rocksdb_ReadOptions_copyReadOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ReadOptions_copyReadOptions(JNIEnv* /*env*/, jclass /*jcls*/, jlong jhandle) { auto new_opt = new TERARKDB_NAMESPACE::ReadOptions( @@ -6593,11 +6593,11 @@ jlong Java_org_rocksdb_ReadOptions_copyReadOptions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_ReadOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_ReadOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* read_options = @@ -6607,11 +6607,11 @@ void Java_org_rocksdb_ReadOptions_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setVerifyChecksums * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setVerifyChecksums( +void Java_org_terarkdb_ReadOptions_setVerifyChecksums( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jverify_checksums) { reinterpret_cast(jhandle) @@ -6619,11 +6619,11 @@ void Java_org_rocksdb_ReadOptions_setVerifyChecksums( } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: verifyChecksums * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_verifyChecksums(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_ReadOptions_verifyChecksums(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6631,11 +6631,11 @@ jboolean Java_org_rocksdb_ReadOptions_verifyChecksums(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setFillCache * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setFillCache(JNIEnv* /*env*/, +void Java_org_terarkdb_ReadOptions_setFillCache(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jfill_cache) { reinterpret_cast(jhandle)->fill_cache = @@ -6643,11 +6643,11 @@ void Java_org_rocksdb_ReadOptions_setFillCache(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: fillCache * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_fillCache(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_ReadOptions_fillCache(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6655,53 +6655,53 @@ jboolean Java_org_rocksdb_ReadOptions_fillCache(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setTailing * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setTailing(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_ReadOptions_setTailing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jtailing) { reinterpret_cast(jhandle)->tailing = static_cast(jtailing); } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: tailing * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_tailing(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_ReadOptions_tailing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle)->tailing; } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: managed * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_managed(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_ReadOptions_managed(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle)->managed; } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setManaged * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setManaged(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_ReadOptions_setManaged(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jmanaged) { reinterpret_cast(jhandle)->managed = static_cast(jmanaged); } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: totalOrderSeek * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_totalOrderSeek(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_ReadOptions_totalOrderSeek(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6709,11 +6709,11 @@ jboolean Java_org_rocksdb_ReadOptions_totalOrderSeek(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setTotalOrderSeek * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setTotalOrderSeek( +void Java_org_terarkdb_ReadOptions_setTotalOrderSeek( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jtotal_order_seek) { reinterpret_cast(jhandle) @@ -6721,11 +6721,11 @@ void Java_org_rocksdb_ReadOptions_setTotalOrderSeek( } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: prefixSameAsStart * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_prefixSameAsStart(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_ReadOptions_prefixSameAsStart(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle) @@ -6733,11 +6733,11 @@ jboolean Java_org_rocksdb_ReadOptions_prefixSameAsStart(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setPrefixSameAsStart * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setPrefixSameAsStart( +void Java_org_terarkdb_ReadOptions_setPrefixSameAsStart( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jprefix_same_as_start) { reinterpret_cast(jhandle) @@ -6745,11 +6745,11 @@ void Java_org_rocksdb_ReadOptions_setPrefixSameAsStart( } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: pinData * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_pinData(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_ReadOptions_pinData(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { // return // reinterpret_cast(jhandle)->pin_data; @@ -6757,11 +6757,11 @@ jboolean Java_org_rocksdb_ReadOptions_pinData(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setPinData * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setPinData(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_ReadOptions_setPinData(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jpin_data) { // reinterpret_cast(jhandle)->pin_data = @@ -6769,22 +6769,22 @@ void Java_org_rocksdb_ReadOptions_setPinData(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: backgroundPurgeOnIteratorCleanup * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_backgroundPurgeOnIteratorCleanup( +jboolean Java_org_terarkdb_ReadOptions_backgroundPurgeOnIteratorCleanup( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); return static_cast(opt->background_purge_on_iterator_cleanup); } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setBackgroundPurgeOnIteratorCleanup * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setBackgroundPurgeOnIteratorCleanup( +void Java_org_terarkdb_ReadOptions_setBackgroundPurgeOnIteratorCleanup( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jbackground_purge_on_iterator_cleanup) { auto* opt = reinterpret_cast(jhandle); @@ -6793,11 +6793,11 @@ void Java_org_rocksdb_ReadOptions_setBackgroundPurgeOnIteratorCleanup( } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: readaheadSize * Signature: (J)J */ -jlong Java_org_rocksdb_ReadOptions_readaheadSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ReadOptions_readaheadSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6805,11 +6805,11 @@ jlong Java_org_rocksdb_ReadOptions_readaheadSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setReadaheadSize * Signature: (JJ)V */ -void Java_org_rocksdb_ReadOptions_setReadaheadSize(JNIEnv* /*env*/, +void Java_org_terarkdb_ReadOptions_setReadaheadSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jreadahead_size) { @@ -6818,11 +6818,11 @@ void Java_org_rocksdb_ReadOptions_setReadaheadSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: ignoreRangeDeletions * Signature: (J)Z */ -jboolean Java_org_rocksdb_ReadOptions_ignoreRangeDeletions(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_ReadOptions_ignoreRangeDeletions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opt = reinterpret_cast(jhandle); @@ -6830,11 +6830,11 @@ jboolean Java_org_rocksdb_ReadOptions_ignoreRangeDeletions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setIgnoreRangeDeletions * Signature: (JZ)V */ -void Java_org_rocksdb_ReadOptions_setIgnoreRangeDeletions( +void Java_org_terarkdb_ReadOptions_setIgnoreRangeDeletions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jignore_range_deletions) { auto* opt = reinterpret_cast(jhandle); @@ -6842,22 +6842,22 @@ void Java_org_rocksdb_ReadOptions_setIgnoreRangeDeletions( } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setSnapshot * Signature: (JJ)V */ -void Java_org_rocksdb_ReadOptions_setSnapshot(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_ReadOptions_setSnapshot(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jsnapshot) { reinterpret_cast(jhandle)->snapshot = reinterpret_cast(jsnapshot); } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: snapshot * Signature: (J)J */ -jlong Java_org_rocksdb_ReadOptions_snapshot(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_ReadOptions_snapshot(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto& snapshot = reinterpret_cast(jhandle)->snapshot; @@ -6865,33 +6865,33 @@ jlong Java_org_rocksdb_ReadOptions_snapshot(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: readTier * Signature: (J)B */ -jbyte Java_org_rocksdb_ReadOptions_readTier(JNIEnv* /*env*/, jobject /*jobj*/, +jbyte Java_org_terarkdb_ReadOptions_readTier(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return static_cast( reinterpret_cast(jhandle)->read_tier); } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setReadTier * Signature: (JB)V */ -void Java_org_rocksdb_ReadOptions_setReadTier(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_ReadOptions_setReadTier(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jread_tier) { reinterpret_cast(jhandle)->read_tier = static_cast(jread_tier); } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setIterateUpperBound * Signature: (JJ)I */ -void Java_org_rocksdb_ReadOptions_setIterateUpperBound( +void Java_org_terarkdb_ReadOptions_setIterateUpperBound( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jupper_bound_slice_handle) { reinterpret_cast(jhandle) @@ -6900,11 +6900,11 @@ void Java_org_rocksdb_ReadOptions_setIterateUpperBound( } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: iterateUpperBound * Signature: (J)J */ -jlong Java_org_rocksdb_ReadOptions_iterateUpperBound(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ReadOptions_iterateUpperBound(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto& upper_bound_slice_handle = @@ -6914,11 +6914,11 @@ jlong Java_org_rocksdb_ReadOptions_iterateUpperBound(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: setIterateLowerBound * Signature: (JJ)I */ -void Java_org_rocksdb_ReadOptions_setIterateLowerBound( +void Java_org_terarkdb_ReadOptions_setIterateLowerBound( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jlower_bound_slice_handle) { reinterpret_cast(jhandle) @@ -6927,11 +6927,11 @@ void Java_org_rocksdb_ReadOptions_setIterateLowerBound( } /* - * Class: org_rocksdb_ReadOptions + * Class: org_terarkdb_ReadOptions * Method: iterateLowerBound * Signature: (J)J */ -jlong Java_org_rocksdb_ReadOptions_iterateLowerBound(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ReadOptions_iterateLowerBound(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto& lower_bound_slice_handle = @@ -6944,22 +6944,22 @@ jlong Java_org_rocksdb_ReadOptions_iterateLowerBound(JNIEnv* /*env*/, // TERARKDB_NAMESPACE::ComparatorOptions /* - * Class: org_rocksdb_ComparatorOptions + * Class: org_terarkdb_ComparatorOptions * Method: newComparatorOptions * Signature: ()J */ -jlong Java_org_rocksdb_ComparatorOptions_newComparatorOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_ComparatorOptions_newComparatorOptions(JNIEnv* /*env*/, jclass /*jcls*/) { auto* comparator_opt = new TERARKDB_NAMESPACE::ComparatorJniCallbackOptions(); return reinterpret_cast(comparator_opt); } /* - * Class: org_rocksdb_ComparatorOptions + * Class: org_terarkdb_ComparatorOptions * Method: useAdaptiveMutex * Signature: (J)Z */ -jboolean Java_org_rocksdb_ComparatorOptions_useAdaptiveMutex(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_ComparatorOptions_useAdaptiveMutex(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast( @@ -6968,11 +6968,11 @@ jboolean Java_org_rocksdb_ComparatorOptions_useAdaptiveMutex(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_ComparatorOptions + * Class: org_terarkdb_ComparatorOptions * Method: setUseAdaptiveMutex * Signature: (JZ)V */ -void Java_org_rocksdb_ComparatorOptions_setUseAdaptiveMutex( +void Java_org_terarkdb_ComparatorOptions_setUseAdaptiveMutex( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean juse_adaptive_mutex) { reinterpret_cast(jhandle) @@ -6980,11 +6980,11 @@ void Java_org_rocksdb_ComparatorOptions_setUseAdaptiveMutex( } /* - * Class: org_rocksdb_ComparatorOptions + * Class: org_terarkdb_ComparatorOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_ComparatorOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_ComparatorOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* comparator_opt = @@ -6998,22 +6998,22 @@ void Java_org_rocksdb_ComparatorOptions_disposeInternal(JNIEnv* /*env*/, // TERARKDB_NAMESPACE::FlushOptions /* - * Class: org_rocksdb_FlushOptions + * Class: org_terarkdb_FlushOptions * Method: newFlushOptions * Signature: ()J */ -jlong Java_org_rocksdb_FlushOptions_newFlushOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_FlushOptions_newFlushOptions(JNIEnv* /*env*/, jclass /*jcls*/) { auto* flush_opt = new TERARKDB_NAMESPACE::FlushOptions(); return reinterpret_cast(flush_opt); } /* - * Class: org_rocksdb_FlushOptions + * Class: org_terarkdb_FlushOptions * Method: setWaitForFlush * Signature: (JZ)V */ -void Java_org_rocksdb_FlushOptions_setWaitForFlush(JNIEnv* /*env*/, +void Java_org_terarkdb_FlushOptions_setWaitForFlush(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jwait) { @@ -7022,22 +7022,22 @@ void Java_org_rocksdb_FlushOptions_setWaitForFlush(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_FlushOptions + * Class: org_terarkdb_FlushOptions * Method: waitForFlush * Signature: (J)Z */ -jboolean Java_org_rocksdb_FlushOptions_waitForFlush(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_FlushOptions_waitForFlush(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { return reinterpret_cast(jhandle)->wait; } /* - * Class: org_rocksdb_FlushOptions + * Class: org_terarkdb_FlushOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_FlushOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_FlushOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* flush_opt = diff --git a/java/rocksjni/options_util.cc b/java/rocksjni/options_util.cc index 8b4e30535b..ec682a5840 100644 --- a/java/rocksjni/options_util.cc +++ b/java/rocksjni/options_util.cc @@ -8,7 +8,7 @@ #include -#include "include/org_rocksdb_OptionsUtil.h" +#include "include/org_terarkdb_OptionsUtil.h" #include "rocksdb/db.h" #include "rocksdb/env.h" @@ -49,11 +49,11 @@ void build_column_family_descriptor_list( } /* - * Class: org_rocksdb_OptionsUtil + * Class: org_terarkdb_OptionsUtil * Method: loadLatestOptions * Signature: (Ljava/lang/String;JLjava/util/List;Z)V */ -void Java_org_rocksdb_OptionsUtil_loadLatestOptions( +void Java_org_terarkdb_OptionsUtil_loadLatestOptions( JNIEnv* env, jclass /*jcls*/, jstring jdbpath, jlong jenv_handle, jlong jdb_opts_handle, jobject jcfds, jboolean ignore_unknown_options) { const char* db_path = env->GetStringUTFChars(jdbpath, nullptr); @@ -72,11 +72,11 @@ void Java_org_rocksdb_OptionsUtil_loadLatestOptions( } /* - * Class: org_rocksdb_OptionsUtil + * Class: org_terarkdb_OptionsUtil * Method: loadOptionsFromFile * Signature: (Ljava/lang/String;JJLjava/util/List;Z)V */ -void Java_org_rocksdb_OptionsUtil_loadOptionsFromFile( +void Java_org_terarkdb_OptionsUtil_loadOptionsFromFile( JNIEnv* env, jclass /*jcls*/, jstring jopts_file_name, jlong jenv_handle, jlong jdb_opts_handle, jobject jcfds, jboolean ignore_unknown_options) { const char* opts_file_name = env->GetStringUTFChars(jopts_file_name, nullptr); @@ -95,11 +95,11 @@ void Java_org_rocksdb_OptionsUtil_loadOptionsFromFile( } /* - * Class: org_rocksdb_OptionsUtil + * Class: org_terarkdb_OptionsUtil * Method: getLatestOptionsFileName * Signature: (Ljava/lang/String;J)Ljava/lang/String; */ -jstring Java_org_rocksdb_OptionsUtil_getLatestOptionsFileName( +jstring Java_org_terarkdb_OptionsUtil_getLatestOptionsFileName( JNIEnv* env, jclass /*jcls*/, jstring jdbpath, jlong jenv_handle) { const char* db_path = env->GetStringUTFChars(jdbpath, nullptr); std::string options_file_name; diff --git a/java/rocksjni/portal.h b/java/rocksjni/portal.h index 118746dacb..31906b38b4 100644 --- a/java/rocksjni/portal.h +++ b/java/rocksjni/portal.h @@ -163,12 +163,12 @@ class JavaException : public JavaClass { } }; -// The portal class for org.rocksdb.RocksDB +// The portal class for org.terarkdb.RocksDB class RocksDBJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.RocksDB + * Get the Java Class org.terarkdb.RocksDB * * @param env A pointer to the Java environment * @@ -177,15 +177,15 @@ class RocksDBJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/RocksDB"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/RocksDB"); } }; -// The portal class for org.rocksdb.Status.Code +// The portal class for org.terarkdb.Status.Code class CodeJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.Status.Code + * Get the Java Class org.terarkdb.Status.Code * * @param env A pointer to the Java environment * @@ -194,7 +194,7 @@ class CodeJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/Status$Code"); + return JavaClass::getJClass(env, "org/terarkdb/Status$Code"); } /** @@ -218,11 +218,11 @@ class CodeJni : public JavaClass { } }; -// The portal class for org.rocksdb.Status.SubCode +// The portal class for org.terarkdb.Status.SubCode class SubCodeJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.Status.SubCode + * Get the Java Class org.terarkdb.Status.SubCode * * @param env A pointer to the Java environment * @@ -231,7 +231,7 @@ class SubCodeJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/Status$SubCode"); + return JavaClass::getJClass(env, "org/terarkdb/Status$SubCode"); } /** @@ -281,12 +281,12 @@ class SubCodeJni : public JavaClass { } }; -// The portal class for org.rocksdb.Status +// The portal class for org.terarkdb.Status class StatusJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.Status + * Get the Java Class org.terarkdb.Status * * @param env A pointer to the Java environment * @@ -295,7 +295,7 @@ class StatusJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/Status"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/Status"); } /** @@ -314,7 +314,7 @@ class StatusJni } static jmethodID mid = - env->GetMethodID(jclazz, "getCode", "()Lorg/rocksdb/Status$Code;"); + env->GetMethodID(jclazz, "getCode", "()Lorg/terarkdb/Status$Code;"); assert(mid != nullptr); return mid; } @@ -335,7 +335,7 @@ class StatusJni } static jmethodID mid = env->GetMethodID(jclazz, "getSubCode", - "()Lorg/rocksdb/Status$SubCode;"); + "()Lorg/terarkdb/Status$SubCode;"); assert(mid != nullptr); return mid; } @@ -362,13 +362,13 @@ class StatusJni } /** - * Create a new Java org.rocksdb.Status object with the same properties as + * Create a new Java org.terarkdb.Status object with the same properties as * the provided C++ TERARKDB_NAMESPACE::Status object * * @param env A pointer to the Java environment * @param status The TERARKDB_NAMESPACE::Status object * - * @return A reference to a Java org.rocksdb.Status object, or nullptr + * @return A reference to a Java org.terarkdb.Status object, or nullptr * if an an exception occurs */ static jobject construct(JNIEnv* env, const Status& status) { @@ -416,7 +416,7 @@ class StatusJni return jstatus; } - // Returns the equivalent org.rocksdb.Status.Code for the provided + // Returns the equivalent org.terarkdb.Status.Code for the provided // C++ TERARKDB_NAMESPACE::Status::Code enum static jbyte toJavaStatusCode(const TERARKDB_NAMESPACE::Status::Code& code) { switch (code) { @@ -453,7 +453,7 @@ class StatusJni } } - // Returns the equivalent org.rocksdb.Status.SubCode for the provided + // Returns the equivalent org.terarkdb.Status.SubCode for the provided // C++ TERARKDB_NAMESPACE::Status::SubCode enum static jbyte toJavaStatusSubCode( const TERARKDB_NAMESPACE::Status::SubCode& subCode) { @@ -480,7 +480,7 @@ class StatusJni } // Returns the equivalent TERARKDB_NAMESPACE::Status for the Java - // org.rocksdb.Status + // org.terarkdb.Status static std::unique_ptr toCppStatus( JNIEnv* env, const jobject jstatus) { jmethodID mid_code = getCodeMethod(env); @@ -674,11 +674,11 @@ class StatusJni } }; -// The portal class for org.rocksdb.RocksDBException +// The portal class for org.terarkdb.RocksDBException class RocksDBExceptionJni : public JavaException { public: /** - * Get the Java Class org.rocksdb.RocksDBException + * Get the Java Class org.terarkdb.RocksDBException * * @param env A pointer to the Java environment * @@ -687,7 +687,7 @@ class RocksDBExceptionJni : public JavaException { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaException::getJClass(env, "org/rocksdb/RocksDBException"); + return JavaException::getJClass(env, "org/terarkdb/RocksDBException"); } /** @@ -742,9 +742,9 @@ class RocksDBExceptionJni : public JavaException { return env->ExceptionCheck(); } - // get the constructor of org.rocksdb.RocksDBException + // get the constructor of org.terarkdb.RocksDBException jmethodID mid = - env->GetMethodID(jclazz, "", "(Lorg/rocksdb/Status;)V"); + env->GetMethodID(jclazz, "", "(Lorg/terarkdb/Status;)V"); if (mid == nullptr) { // exception thrown: NoSuchMethodException or OutOfMemoryError std::cerr @@ -833,9 +833,9 @@ class RocksDBExceptionJni : public JavaException { return env->ExceptionCheck(); } - // get the constructor of org.rocksdb.RocksDBException + // get the constructor of org.terarkdb.RocksDBException jmethodID mid = env->GetMethodID( - jclazz, "", "(Ljava/lang/String;Lorg/rocksdb/Status;)V"); + jclazz, "", "(Ljava/lang/String;Lorg/terarkdb/Status;)V"); if (mid == nullptr) { // exception thrown: NoSuchMethodException or OutOfMemoryError std::cerr @@ -933,7 +933,7 @@ class RocksDBExceptionJni : public JavaException { } static jmethodID mid = - env->GetMethodID(jclazz, "getStatus", "()Lorg/rocksdb/Status;"); + env->GetMethodID(jclazz, "getStatus", "()Lorg/terarkdb/Status;"); assert(mid != nullptr); return mid; } @@ -1013,12 +1013,12 @@ class IllegalArgumentExceptionJni } }; -// The portal class for org.rocksdb.Options +// The portal class for org.terarkdb.Options class OptionsJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.Options + * Get the Java Class org.terarkdb.Options * * @param env A pointer to the Java environment * @@ -1027,16 +1027,16 @@ class OptionsJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/Options"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/Options"); } }; -// The portal class for org.rocksdb.DBOptions +// The portal class for org.terarkdb.DBOptions class DBOptionsJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.DBOptions + * Get the Java Class org.terarkdb.DBOptions * * @param env A pointer to the Java environment * @@ -1045,17 +1045,17 @@ class DBOptionsJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/DBOptions"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/DBOptions"); } }; -// The portal class for org.rocksdb.ColumnFamilyOptions +// The portal class for org.terarkdb.ColumnFamilyOptions class ColumnFamilyOptionsJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.ColumnFamilyOptions + * Get the Java Class org.terarkdb.ColumnFamilyOptions * * @param env A pointer to the Java environment * @@ -1065,11 +1065,11 @@ class ColumnFamilyOptionsJni */ static jclass getJClass(JNIEnv* env) { return RocksDBNativeClass::getJClass(env, - "org/rocksdb/ColumnFamilyOptions"); + "org/terarkdb/ColumnFamilyOptions"); } /** - * Create a new Java org.rocksdb.ColumnFamilyOptions object with the same + * Create a new Java org.terarkdb.ColumnFamilyOptions object with the same * properties as the provided C++ TERARKDB_NAMESPACE::ColumnFamilyOptions * object * @@ -1077,7 +1077,7 @@ class ColumnFamilyOptionsJni * @param cfoptions A pointer to TERARKDB_NAMESPACE::ColumnFamilyOptions * object * - * @return A reference to a Java org.rocksdb.ColumnFamilyOptions object, or + * @return A reference to a Java org.terarkdb.ColumnFamilyOptions object, or * nullptr if an an exception occurs */ static jobject construct(JNIEnv* env, const ColumnFamilyOptions* cfoptions) { @@ -1103,13 +1103,13 @@ class ColumnFamilyOptionsJni } }; -// The portal class for org.rocksdb.WriteOptions +// The portal class for org.terarkdb.WriteOptions class WriteOptionsJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.WriteOptions + * Get the Java Class org.terarkdb.WriteOptions * * @param env A pointer to the Java environment * @@ -1118,17 +1118,17 @@ class WriteOptionsJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/WriteOptions"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/WriteOptions"); } }; -// The portal class for org.rocksdb.ReadOptions +// The portal class for org.terarkdb.ReadOptions class ReadOptionsJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.ReadOptions + * Get the Java Class org.terarkdb.ReadOptions * * @param env A pointer to the Java environment * @@ -1137,16 +1137,16 @@ class ReadOptionsJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/ReadOptions"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/ReadOptions"); } }; -// The portal class for org.rocksdb.WriteBatch +// The portal class for org.terarkdb.WriteBatch class WriteBatchJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.WriteBatch + * Get the Java Class org.terarkdb.WriteBatch * * @param env A pointer to the Java environment * @@ -1155,16 +1155,16 @@ class WriteBatchJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.WriteBatch.Handler + * Get the Java Class org.terarkdb.WriteBatch.Handler * * @param env A pointer to the Java environment * @@ -1205,7 +1205,7 @@ class WriteBatchHandlerJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/WriteBatch$Handler"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/WriteBatch$Handler"); } /** @@ -1572,7 +1572,7 @@ class WriteBatchHandlerJni class WriteBatchSavePointJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.WriteBatch.SavePoint + * Get the Java Class org.terarkdb.WriteBatch.SavePoint * * @param env A pointer to the Java environment * @@ -1581,7 +1581,7 @@ class WriteBatchSavePointJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/WriteBatch$SavePoint"); + return JavaClass::getJClass(env, "org/terarkdb/WriteBatch$SavePoint"); } /** @@ -1605,13 +1605,13 @@ class WriteBatchSavePointJni : public JavaClass { } /** - * Create a new Java org.rocksdb.WriteBatch.SavePoint object + * Create a new Java org.terarkdb.WriteBatch.SavePoint object * * @param env A pointer to the Java environment * @param savePoint A pointer to TERARKDB_NAMESPACE::WriteBatch::SavePoint * object * - * @return A reference to a Java org.rocksdb.WriteBatch.SavePoint object, or + * @return A reference to a Java org.terarkdb.WriteBatch.SavePoint object, or * nullptr if an an exception occurs */ static jobject construct(JNIEnv* env, const SavePoint& save_point) { @@ -1639,13 +1639,13 @@ class WriteBatchSavePointJni : public JavaClass { } }; -// The portal class for org.rocksdb.WriteBatchWithIndex +// The portal class for org.terarkdb.WriteBatchWithIndex class WriteBatchWithIndexJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.WriteBatchWithIndex + * Get the Java Class org.terarkdb.WriteBatchWithIndex * * @param env A pointer to the Java environment * @@ -1655,15 +1655,15 @@ class WriteBatchWithIndexJni */ static jclass getJClass(JNIEnv* env) { return RocksDBNativeClass::getJClass(env, - "org/rocksdb/WriteBatchWithIndex"); + "org/terarkdb/WriteBatchWithIndex"); } }; -// The portal class for org.rocksdb.HistogramData +// The portal class for org.terarkdb.HistogramData class HistogramDataJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.HistogramData + * Get the Java Class org.terarkdb.HistogramData * * @param env A pointer to the Java environment * @@ -1672,7 +1672,7 @@ class HistogramDataJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/HistogramData"); + return JavaClass::getJClass(env, "org/terarkdb/HistogramData"); } /** @@ -1696,13 +1696,13 @@ class HistogramDataJni : public JavaClass { } }; -// The portal class for org.rocksdb.BackupableDBOptions +// The portal class for org.terarkdb.BackupableDBOptions class BackupableDBOptionsJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.BackupableDBOptions + * Get the Java Class org.terarkdb.BackupableDBOptions * * @param env A pointer to the Java environment * @@ -1712,17 +1712,17 @@ class BackupableDBOptionsJni */ static jclass getJClass(JNIEnv* env) { return RocksDBNativeClass::getJClass(env, - "org/rocksdb/BackupableDBOptions"); + "org/terarkdb/BackupableDBOptions"); } }; -// The portal class for org.rocksdb.BackupEngine +// The portal class for org.terarkdb.BackupEngine class BackupEngineJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.BackupableEngine + * Get the Java Class org.terarkdb.BackupableEngine * * @param env A pointer to the Java environment * @@ -1731,16 +1731,16 @@ class BackupEngineJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/BackupEngine"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/BackupEngine"); } }; -// The portal class for org.rocksdb.RocksIterator +// The portal class for org.terarkdb.RocksIterator class IteratorJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.RocksIterator + * Get the Java Class org.terarkdb.RocksIterator * * @param env A pointer to the Java environment * @@ -1749,17 +1749,17 @@ class IteratorJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/RocksIterator"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/RocksIterator"); } }; -// The portal class for org.rocksdb.Filter +// The portal class for org.terarkdb.Filter class FilterJni : public RocksDBNativeClass< std::shared_ptr*, FilterJni> { public: /** - * Get the Java Class org.rocksdb.Filter + * Get the Java Class org.terarkdb.Filter * * @param env A pointer to the Java environment * @@ -1768,17 +1768,17 @@ class FilterJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/Filter"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/Filter"); } }; -// The portal class for org.rocksdb.ColumnFamilyHandle +// The portal class for org.terarkdb.ColumnFamilyHandle class ColumnFamilyHandleJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.ColumnFamilyHandle + * Get the Java Class org.terarkdb.ColumnFamilyHandle * * @param env A pointer to the Java environment * @@ -1787,17 +1787,17 @@ class ColumnFamilyHandleJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/ColumnFamilyHandle"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/ColumnFamilyHandle"); } }; -// The portal class for org.rocksdb.FlushOptions +// The portal class for org.terarkdb.FlushOptions class FlushOptionsJni : public RocksDBNativeClass { public: /** - * Get the Java Class org.rocksdb.FlushOptions + * Get the Java Class org.terarkdb.FlushOptions * * @param env A pointer to the Java environment * @@ -1806,18 +1806,18 @@ class FlushOptionsJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/FlushOptions"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/FlushOptions"); } }; -// The portal class for org.rocksdb.ComparatorOptions +// The portal class for org.terarkdb.ComparatorOptions class ComparatorOptionsJni : public RocksDBNativeClass< TERARKDB_NAMESPACE::ComparatorJniCallbackOptions*, ComparatorOptionsJni> { public: /** - * Get the Java Class org.rocksdb.ComparatorOptions + * Get the Java Class org.terarkdb.ComparatorOptions * * @param env A pointer to the Java environment * @@ -1826,18 +1826,18 @@ class ComparatorOptionsJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/ComparatorOptions"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/ComparatorOptions"); } }; -// The portal class for org.rocksdb.AbstractCompactionFilterFactory +// The portal class for org.terarkdb.AbstractCompactionFilterFactory class AbstractCompactionFilterFactoryJni : public RocksDBNativeClass< const TERARKDB_NAMESPACE::CompactionFilterFactoryJniCallback*, AbstractCompactionFilterFactoryJni> { public: /** - * Get the Java Class org.rocksdb.AbstractCompactionFilterFactory + * Get the Java Class org.terarkdb.AbstractCompactionFilterFactory * * @param env A pointer to the Java environment * @@ -1847,7 +1847,7 @@ class AbstractCompactionFilterFactoryJni */ static jclass getJClass(JNIEnv* env) { return RocksDBNativeClass::getJClass( - env, "org/rocksdb/AbstractCompactionFilterFactory"); + env, "org/terarkdb/AbstractCompactionFilterFactory"); } /** @@ -1893,7 +1893,7 @@ class AbstractCompactionFilterFactoryJni } }; -// The portal class for org.rocksdb.AbstractTransactionNotifier +// The portal class for org.terarkdb.AbstractTransactionNotifier class AbstractTransactionNotifierJni : public RocksDBNativeClass< const TERARKDB_NAMESPACE::TransactionNotifierJniCallback*, @@ -1901,11 +1901,11 @@ class AbstractTransactionNotifierJni public: static jclass getJClass(JNIEnv* env) { return RocksDBNativeClass::getJClass( - env, "org/rocksdb/AbstractTransactionNotifier"); + env, "org/terarkdb/AbstractTransactionNotifier"); } // Get the java method `snapshotCreated` - // of org.rocksdb.AbstractTransactionNotifier. + // of org.terarkdb.AbstractTransactionNotifier. static jmethodID getSnapshotCreatedMethodId(JNIEnv* env) { jclass jclazz = getJClass(env); if (jclazz == nullptr) { @@ -1919,14 +1919,14 @@ class AbstractTransactionNotifierJni } }; -// The portal class for org.rocksdb.AbstractComparator +// The portal class for org.terarkdb.AbstractComparator class AbstractComparatorJni : public RocksDBNativeClass< const TERARKDB_NAMESPACE::BaseComparatorJniCallback*, AbstractComparatorJni> { public: /** - * Get the Java Class org.rocksdb.AbstractComparator + * Get the Java Class org.terarkdb.AbstractComparator * * @param env A pointer to the Java environment * @@ -1935,7 +1935,7 @@ class AbstractComparatorJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/AbstractComparator"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/AbstractComparator"); } /** @@ -1976,7 +1976,7 @@ class AbstractComparatorJni static jmethodID mid = env->GetMethodID( jclazz, "compare", - "(Lorg/rocksdb/AbstractSlice;Lorg/rocksdb/AbstractSlice;)I"); + "(Lorg/terarkdb/AbstractSlice;Lorg/terarkdb/AbstractSlice;)I"); assert(mid != nullptr); return mid; } @@ -1998,7 +1998,7 @@ class AbstractComparatorJni static jmethodID mid = env->GetMethodID( jclazz, "findShortestSeparator", - "(Ljava/lang/String;Lorg/rocksdb/AbstractSlice;)Ljava/lang/String;"); + "(Ljava/lang/String;Lorg/terarkdb/AbstractSlice;)Ljava/lang/String;"); assert(mid != nullptr); return mid; } @@ -2025,13 +2025,13 @@ class AbstractComparatorJni } }; -// The portal class for org.rocksdb.AbstractSlice +// The portal class for org.terarkdb.AbstractSlice class AbstractSliceJni : public NativeRocksMutableObject { public: /** - * Get the Java Class org.rocksdb.AbstractSlice + * Get the Java Class org.terarkdb.AbstractSlice * * @param env A pointer to the Java environment * @@ -2040,17 +2040,17 @@ class AbstractSliceJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/AbstractSlice"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/AbstractSlice"); } }; -// The portal class for org.rocksdb.Slice +// The portal class for org.terarkdb.Slice class SliceJni : public NativeRocksMutableObject { public: /** - * Get the Java Class org.rocksdb.Slice + * Get the Java Class org.terarkdb.Slice * * @param env A pointer to the Java environment * @@ -2059,7 +2059,7 @@ class SliceJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/Slice"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/Slice"); } /** @@ -2092,13 +2092,13 @@ class SliceJni } }; -// The portal class for org.rocksdb.DirectSlice +// The portal class for org.terarkdb.DirectSlice class DirectSliceJni : public NativeRocksMutableObject { public: /** - * Get the Java Class org.rocksdb.DirectSlice + * Get the Java Class org.terarkdb.DirectSlice * * @param env A pointer to the Java environment * @@ -2107,7 +2107,7 @@ class DirectSliceJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/DirectSlice"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/DirectSlice"); } /** @@ -2459,11 +2459,11 @@ class StringBuilderJni : public JavaClass { } }; -// The portal class for org.rocksdb.BackupInfo +// The portal class for org.terarkdb.BackupInfo class BackupInfoJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.BackupInfo + * Get the Java Class org.terarkdb.BackupInfo * * @param env A pointer to the Java environment * @@ -2472,7 +2472,7 @@ class BackupInfoJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/BackupInfo"); + return JavaClass::getJClass(env, "org/terarkdb/BackupInfo"); } /** @@ -2528,7 +2528,7 @@ class BackupInfoListJni { public: /** * Converts a C++ std::vector object to - * a Java ArrayList object + * a Java ArrayList object * * @param env A pointer to the Java environment * @param backup_infos A vector of BackupInfo @@ -2603,11 +2603,11 @@ class BackupInfoListJni { } }; -// The portal class for org.rocksdb.WBWIRocksIterator +// The portal class for org.terarkdb.WBWIRocksIterator class WBWIRocksIteratorJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.WBWIRocksIterator + * Get the Java Class org.terarkdb.WBWIRocksIterator * * @param env A pointer to the Java environment * @@ -2616,7 +2616,7 @@ class WBWIRocksIteratorJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/WBWIRocksIterator"); + return JavaClass::getJClass(env, "org/terarkdb/WBWIRocksIterator"); } /** @@ -2635,7 +2635,7 @@ class WBWIRocksIteratorJni : public JavaClass { } static jfieldID fid = env->GetFieldID( - jclazz, "entry", "Lorg/rocksdb/WBWIRocksIterator$WriteEntry;"); + jclazz, "entry", "Lorg/terarkdb/WBWIRocksIterator$WriteEntry;"); assert(fid != nullptr); return fid; } @@ -2664,7 +2664,7 @@ class WBWIRocksIteratorJni : public JavaClass { } }; -// The portal class for org.rocksdb.WBWIRocksIterator.WriteType +// The portal class for org.terarkdb.WBWIRocksIterator.WriteType class WriteTypeJni : public JavaClass { public: /** @@ -2707,7 +2707,7 @@ class WriteTypeJni : public JavaClass { */ static jobject LOG(JNIEnv* env) { return getEnum(env, "LOG"); } - // Returns the equivalent org.rocksdb.WBWIRocksIterator.WriteType for the + // Returns the equivalent org.terarkdb.WBWIRocksIterator.WriteType for the // provided C++ TERARKDB_NAMESPACE::WriteType enum static jbyte toJavaWriteType(const TERARKDB_NAMESPACE::WriteType& writeType) { switch (writeType) { @@ -2732,7 +2732,7 @@ class WriteTypeJni : public JavaClass { private: /** - * Get the Java Class org.rocksdb.WBWIRocksIterator.WriteType + * Get the Java Class org.terarkdb.WBWIRocksIterator.WriteType * * @param env A pointer to the Java environment * @@ -2741,11 +2741,11 @@ class WriteTypeJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/WBWIRocksIterator$WriteType"); + return JavaClass::getJClass(env, "org/terarkdb/WBWIRocksIterator$WriteType"); } /** - * Get an enum field of org.rocksdb.WBWIRocksIterator.WriteType + * Get an enum field of org.terarkdb.WBWIRocksIterator.WriteType * * @param env A pointer to the Java environment * @param name The name of the enum field @@ -2761,7 +2761,7 @@ class WriteTypeJni : public JavaClass { } jfieldID jfid = env->GetStaticFieldID( - jclazz, name, "Lorg/rocksdb/WBWIRocksIterator$WriteType;"); + jclazz, name, "Lorg/terarkdb/WBWIRocksIterator$WriteType;"); if (env->ExceptionCheck()) { // exception occurred while getting field return nullptr; @@ -2775,11 +2775,11 @@ class WriteTypeJni : public JavaClass { } }; -// The portal class for org.rocksdb.WBWIRocksIterator.WriteEntry +// The portal class for org.terarkdb.WBWIRocksIterator.WriteEntry class WriteEntryJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.WBWIRocksIterator.WriteEntry + * Get the Java Class org.terarkdb.WBWIRocksIterator.WriteEntry * * @param env A pointer to the Java environment * @@ -2789,11 +2789,11 @@ class WriteEntryJni : public JavaClass { */ static jclass getJClass(JNIEnv* env) { return JavaClass::getJClass(env, - "org/rocksdb/WBWIRocksIterator$WriteEntry"); + "org/terarkdb/WBWIRocksIterator$WriteEntry"); } }; -// The portal class for org.rocksdb.InfoLogLevel +// The portal class for org.terarkdb.InfoLogLevel class InfoLogLevelJni : public JavaClass { public: /** @@ -2866,7 +2866,7 @@ class InfoLogLevelJni : public JavaClass { private: /** - * Get the Java Class org.rocksdb.InfoLogLevel + * Get the Java Class org.terarkdb.InfoLogLevel * * @param env A pointer to the Java environment * @@ -2875,11 +2875,11 @@ class InfoLogLevelJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/InfoLogLevel"); + return JavaClass::getJClass(env, "org/terarkdb/InfoLogLevel"); } /** - * Get an enum field of org.rocksdb.InfoLogLevel + * Get an enum field of org.terarkdb.InfoLogLevel * * @param env A pointer to the Java environment * @param name The name of the enum field @@ -2895,7 +2895,7 @@ class InfoLogLevelJni : public JavaClass { } jfieldID jfid = - env->GetStaticFieldID(jclazz, name, "Lorg/rocksdb/InfoLogLevel;"); + env->GetStaticFieldID(jclazz, name, "Lorg/terarkdb/InfoLogLevel;"); if (env->ExceptionCheck()) { // exception occurred while getting field return nullptr; @@ -2909,13 +2909,13 @@ class InfoLogLevelJni : public JavaClass { } }; -// The portal class for org.rocksdb.Logger +// The portal class for org.terarkdb.Logger class LoggerJni : public RocksDBNativeClass< std::shared_ptr*, LoggerJni> { public: /** - * Get the Java Class org/rocksdb/Logger + * Get the Java Class org/terarkdb/Logger * * @param env A pointer to the Java environment * @@ -2924,7 +2924,7 @@ class LoggerJni * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return RocksDBNativeClass::getJClass(env, "org/rocksdb/Logger"); + return RocksDBNativeClass::getJClass(env, "org/terarkdb/Logger"); } /** @@ -2943,17 +2943,17 @@ class LoggerJni } static jmethodID mid = env->GetMethodID( - jclazz, "log", "(Lorg/rocksdb/InfoLogLevel;Ljava/lang/String;)V"); + jclazz, "log", "(Lorg/terarkdb/InfoLogLevel;Ljava/lang/String;)V"); assert(mid != nullptr); return mid; } }; -// The portal class for org.rocksdb.TransactionLogIterator.BatchResult +// The portal class for org.terarkdb.TransactionLogIterator.BatchResult class BatchResultJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.TransactionLogIterator.BatchResult + * Get the Java Class org.terarkdb.TransactionLogIterator.BatchResult * * @param env A pointer to the Java environment * @@ -2963,11 +2963,11 @@ class BatchResultJni : public JavaClass { */ static jclass getJClass(JNIEnv* env) { return JavaClass::getJClass( - env, "org/rocksdb/TransactionLogIterator$BatchResult"); + env, "org/terarkdb/TransactionLogIterator$BatchResult"); } /** - * Create a new Java org.rocksdb.TransactionLogIterator.BatchResult object + * Create a new Java org.terarkdb.TransactionLogIterator.BatchResult object * with the same properties as the provided C++ * TERARKDB_NAMESPACE::BatchResult object * @@ -2975,7 +2975,7 @@ class BatchResultJni : public JavaClass { * @param batch_result The TERARKDB_NAMESPACE::BatchResult object * * @return A reference to a Java - * org.rocksdb.TransactionLogIterator.BatchResult object, + * org.terarkdb.TransactionLogIterator.BatchResult object, * or nullptr if an an exception occurs */ static jobject construct(JNIEnv* env, @@ -3004,10 +3004,10 @@ class BatchResultJni : public JavaClass { } }; -// The portal class for org.rocksdb.BottommostLevelCompaction +// The portal class for org.terarkdb.BottommostLevelCompaction class BottommostLevelCompactionJni { public: - // Returns the equivalent org.rocksdb.BottommostLevelCompaction for the + // Returns the equivalent org.terarkdb.BottommostLevelCompaction for the // provided C++ TERARKDB_NAMESPACE::BottommostLevelCompaction enum static jint toJavaBottommostLevelCompaction( const TERARKDB_NAMESPACE::BottommostLevelCompaction& @@ -3026,7 +3026,7 @@ class BottommostLevelCompactionJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::BottommostLevelCompaction - // enum for the provided Java org.rocksdb.BottommostLevelCompaction + // enum for the provided Java org.terarkdb.BottommostLevelCompaction static TERARKDB_NAMESPACE::BottommostLevelCompaction toCppBottommostLevelCompaction(jint bottommost_level_compaction) { switch (bottommost_level_compaction) { @@ -3045,10 +3045,10 @@ class BottommostLevelCompactionJni { } }; -// The portal class for org.rocksdb.CompactionStopStyle +// The portal class for org.terarkdb.CompactionStopStyle class CompactionStopStyleJni { public: - // Returns the equivalent org.rocksdb.CompactionStopStyle for the provided + // Returns the equivalent org.terarkdb.CompactionStopStyle for the provided // C++ TERARKDB_NAMESPACE::CompactionStopStyle enum static jbyte toJavaCompactionStopStyle( const TERARKDB_NAMESPACE::CompactionStopStyle& compaction_stop_style) { @@ -3065,7 +3065,7 @@ class CompactionStopStyleJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::CompactionStopStyle enum for - // the provided Java org.rocksdb.CompactionStopStyle + // the provided Java org.terarkdb.CompactionStopStyle static TERARKDB_NAMESPACE::CompactionStopStyle toCppCompactionStopStyle( jbyte jcompaction_stop_style) { switch (jcompaction_stop_style) { @@ -3083,10 +3083,10 @@ class CompactionStopStyleJni { } }; -// The portal class for org.rocksdb.CompressionType +// The portal class for org.terarkdb.CompressionType class CompressionTypeJni { public: - // Returns the equivalent org.rocksdb.CompressionType for the provided + // Returns the equivalent org.terarkdb.CompressionType for the provided // C++ TERARKDB_NAMESPACE::CompressionType enum static jbyte toJavaCompressionType( const TERARKDB_NAMESPACE::CompressionType& compression_type) { @@ -3114,7 +3114,7 @@ class CompressionTypeJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::CompressionType enum for the - // provided Java org.rocksdb.CompressionType + // provided Java org.terarkdb.CompressionType static TERARKDB_NAMESPACE::CompressionType toCppCompressionType( jbyte jcompression_type) { switch (jcompression_type) { @@ -3141,10 +3141,10 @@ class CompressionTypeJni { } }; -// The portal class for org.rocksdb.CompactionPriority +// The portal class for org.terarkdb.CompactionPriority class CompactionPriorityJni { public: - // Returns the equivalent org.rocksdb.CompactionPriority for the provided + // Returns the equivalent org.terarkdb.CompactionPriority for the provided // C++ TERARKDB_NAMESPACE::CompactionPri enum static jbyte toJavaCompactionPriority( const TERARKDB_NAMESPACE::CompactionPri& compaction_priority) { @@ -3163,7 +3163,7 @@ class CompactionPriorityJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::CompactionPri enum for the - // provided Java org.rocksdb.CompactionPriority + // provided Java org.terarkdb.CompactionPriority static TERARKDB_NAMESPACE::CompactionPri toCppCompactionPriority( jbyte jcompaction_priority) { switch (jcompaction_priority) { @@ -3182,10 +3182,10 @@ class CompactionPriorityJni { } }; -// The portal class for org.rocksdb.AccessHint +// The portal class for org.terarkdb.AccessHint class AccessHintJni { public: - // Returns the equivalent org.rocksdb.AccessHint for the provided + // Returns the equivalent org.terarkdb.AccessHint for the provided // C++ TERARKDB_NAMESPACE::DBOptions::AccessHint enum static jbyte toJavaAccessHint( const TERARKDB_NAMESPACE::DBOptions::AccessHint& access_hint) { @@ -3205,7 +3205,7 @@ class AccessHintJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::DBOptions::AccessHint enum - // for the provided Java org.rocksdb.AccessHint + // for the provided Java org.terarkdb.AccessHint static TERARKDB_NAMESPACE::DBOptions::AccessHint toCppAccessHint( jbyte jaccess_hint) { switch (jaccess_hint) { @@ -3224,10 +3224,10 @@ class AccessHintJni { } }; -// The portal class for org.rocksdb.WALRecoveryMode +// The portal class for org.terarkdb.WALRecoveryMode class WALRecoveryModeJni { public: - // Returns the equivalent org.rocksdb.WALRecoveryMode for the provided + // Returns the equivalent org.terarkdb.WALRecoveryMode for the provided // C++ TERARKDB_NAMESPACE::WALRecoveryMode enum static jbyte toJavaWALRecoveryMode( const TERARKDB_NAMESPACE::WALRecoveryMode& wal_recovery_mode) { @@ -3247,7 +3247,7 @@ class WALRecoveryModeJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::WALRecoveryMode enum for the - // provided Java org.rocksdb.WALRecoveryMode + // provided Java org.terarkdb.WALRecoveryMode static TERARKDB_NAMESPACE::WALRecoveryMode toCppWALRecoveryMode( jbyte jwal_recovery_mode) { switch (jwal_recovery_mode) { @@ -3267,10 +3267,10 @@ class WALRecoveryModeJni { } }; -// The portal class for org.rocksdb.TickerType +// The portal class for org.terarkdb.TickerType class TickerTypeJni { public: - // Returns the equivalent org.rocksdb.TickerType for the provided + // Returns the equivalent org.terarkdb.TickerType for the provided // C++ TERARKDB_NAMESPACE::Tickers enum static jbyte toJavaTickerType(const TERARKDB_NAMESPACE::Tickers& tickers) { switch (tickers) { @@ -3489,7 +3489,7 @@ class TickerTypeJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::Tickers enum for the - // provided Java org.rocksdb.TickerType + // provided Java org.terarkdb.TickerType static TERARKDB_NAMESPACE::Tickers toCppTickers(jbyte jticker_type) { switch (jticker_type) { case 0x0: @@ -3708,10 +3708,10 @@ class TickerTypeJni { } }; -// The portal class for org.rocksdb.HistogramType +// The portal class for org.terarkdb.HistogramType class HistogramTypeJni { public: - // Returns the equivalent org.rocksdb.HistogramType for the provided + // Returns the equivalent org.terarkdb.HistogramType for the provided // C++ TERARKDB_NAMESPACE::Histograms enum static jbyte toJavaHistogramsType( const TERARKDB_NAMESPACE::Histograms& histograms) { @@ -3798,7 +3798,7 @@ class HistogramTypeJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::Histograms enum for the - // provided Java org.rocksdb.HistogramsType + // provided Java org.terarkdb.HistogramsType static TERARKDB_NAMESPACE::Histograms toCppHistograms( jbyte jhistograms_type) { switch (jhistograms_type) { @@ -3884,10 +3884,10 @@ class HistogramTypeJni { } }; -// The portal class for org.rocksdb.StatsLevel +// The portal class for org.terarkdb.StatsLevel class StatsLevelJni { public: - // Returns the equivalent org.rocksdb.StatsLevel for the provided + // Returns the equivalent org.terarkdb.StatsLevel for the provided // C++ TERARKDB_NAMESPACE::StatsLevel enum static jbyte toJavaStatsLevel( const TERARKDB_NAMESPACE::StatsLevel& stats_level) { @@ -3906,7 +3906,7 @@ class StatsLevelJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::StatsLevel enum for the - // provided Java org.rocksdb.StatsLevel + // provided Java org.terarkdb.StatsLevel static TERARKDB_NAMESPACE::StatsLevel toCppStatsLevel(jbyte jstats_level) { switch (jstats_level) { case 0x0: @@ -3923,10 +3923,10 @@ class StatsLevelJni { } }; -// The portal class for org.rocksdb.RateLimiterMode +// The portal class for org.terarkdb.RateLimiterMode class RateLimiterModeJni { public: - // Returns the equivalent org.rocksdb.RateLimiterMode for the provided + // Returns the equivalent org.terarkdb.RateLimiterMode for the provided // C++ TERARKDB_NAMESPACE::RateLimiter::Mode enum static jbyte toJavaRateLimiterMode( const TERARKDB_NAMESPACE::RateLimiter::Mode& rate_limiter_mode) { @@ -3945,7 +3945,7 @@ class RateLimiterModeJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::RateLimiter::Mode enum for - // the provided Java org.rocksdb.RateLimiterMode + // the provided Java org.terarkdb.RateLimiterMode static TERARKDB_NAMESPACE::RateLimiter::Mode toCppRateLimiterMode( jbyte jrate_limiter_mode) { switch (jrate_limiter_mode) { @@ -3963,10 +3963,10 @@ class RateLimiterModeJni { } }; -// The portal class for org.rocksdb.MemoryUsageType +// The portal class for org.terarkdb.MemoryUsageType class MemoryUsageTypeJni { public: - // Returns the equivalent org.rocksdb.MemoryUsageType for the provided + // Returns the equivalent org.terarkdb.MemoryUsageType for the provided // C++ TERARKDB_NAMESPACE::MemoryUtil::UsageType enum static jbyte toJavaMemoryUsageType( const TERARKDB_NAMESPACE::MemoryUtil::UsageType& usage_type) { @@ -3986,7 +3986,7 @@ class MemoryUsageTypeJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::MemoryUtil::UsageType enum - // for the provided Java org.rocksdb.MemoryUsageType + // for the provided Java org.terarkdb.MemoryUsageType static TERARKDB_NAMESPACE::MemoryUtil::UsageType toCppMemoryUsageType( jbyte usage_type) { switch (usage_type) { @@ -4005,11 +4005,11 @@ class MemoryUsageTypeJni { } }; -// The portal class for org.rocksdb.Transaction +// The portal class for org.terarkdb.Transaction class TransactionJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.Transaction + * Get the Java Class org.terarkdb.Transaction * * @param env A pointer to the Java environment * @@ -4018,20 +4018,20 @@ class TransactionJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/Transaction"); + return JavaClass::getJClass(env, "org/terarkdb/Transaction"); } /** - * Create a new Java org.rocksdb.Transaction.WaitingTransactions object + * Create a new Java org.terarkdb.Transaction.WaitingTransactions object * * @param env A pointer to the Java environment - * @param jtransaction A Java org.rocksdb.Transaction object + * @param jtransaction A Java org.terarkdb.Transaction object * @param column_family_id The id of the column family * @param key The key * @param transaction_ids The transaction ids * * @return A reference to a Java - * org.rocksdb.Transaction.WaitingTransactions object, + * org.terarkdb.Transaction.WaitingTransactions object, * or nullptr if an an exception occurs */ static jobject newWaitingTransactions( @@ -4046,7 +4046,7 @@ class TransactionJni : public JavaClass { jmethodID mid = env->GetMethodID( jclazz, "newWaitingTransactions", - "(JLjava/lang/String;[J)Lorg/rocksdb/Transaction$WaitingTransactions;"); + "(JLjava/lang/String;[J)Lorg/terarkdb/Transaction$WaitingTransactions;"); if (mid == nullptr) { // exception thrown: NoSuchMethodException or OutOfMemoryError return nullptr; @@ -4092,11 +4092,11 @@ class TransactionJni : public JavaClass { } }; -// The portal class for org.rocksdb.TransactionDB +// The portal class for org.terarkdb.TransactionDB class TransactionDBJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.TransactionDB + * Get the Java Class org.terarkdb.TransactionDB * * @param env A pointer to the Java environment * @@ -4105,20 +4105,20 @@ class TransactionDBJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/TransactionDB"); + return JavaClass::getJClass(env, "org/terarkdb/TransactionDB"); } /** - * Create a new Java org.rocksdb.TransactionDB.DeadlockInfo object + * Create a new Java org.terarkdb.TransactionDB.DeadlockInfo object * * @param env A pointer to the Java environment - * @param jtransaction A Java org.rocksdb.Transaction object + * @param jtransaction A Java org.terarkdb.Transaction object * @param column_family_id The id of the column family * @param key The key * @param transaction_ids The transaction ids * * @return A reference to a Java - * org.rocksdb.Transaction.WaitingTransactions object, + * org.terarkdb.Transaction.WaitingTransactions object, * or nullptr if an an exception occurs */ static jobject newDeadlockInfo( @@ -4134,7 +4134,7 @@ class TransactionDBJni : public JavaClass { jmethodID mid = env->GetMethodID( jclazz, "newDeadlockInfo", - "(JJLjava/lang/String;Z)Lorg/rocksdb/TransactionDB$DeadlockInfo;"); + "(JJLjava/lang/String;Z)Lorg/terarkdb/TransactionDB$DeadlockInfo;"); if (mid == nullptr) { // exception thrown: NoSuchMethodException or OutOfMemoryError return nullptr; @@ -4160,10 +4160,10 @@ class TransactionDBJni : public JavaClass { } }; -// The portal class for org.rocksdb.TxnDBWritePolicy +// The portal class for org.terarkdb.TxnDBWritePolicy class TxnDBWritePolicyJni { public: - // Returns the equivalent org.rocksdb.TxnDBWritePolicy for the provided + // Returns the equivalent org.terarkdb.TxnDBWritePolicy for the provided // C++ TERARKDB_NAMESPACE::TxnDBWritePolicy enum static jbyte toJavaTxnDBWritePolicy( const TERARKDB_NAMESPACE::TxnDBWritePolicy& txndb_write_policy) { @@ -4180,7 +4180,7 @@ class TxnDBWritePolicyJni { } // Returns the equivalent C++ TERARKDB_NAMESPACE::TxnDBWritePolicy enum for - // the provided Java org.rocksdb.TxnDBWritePolicy + // the provided Java org.terarkdb.TxnDBWritePolicy static TERARKDB_NAMESPACE::TxnDBWritePolicy toCppTxnDBWritePolicy( jbyte jtxndb_write_policy) { switch (jtxndb_write_policy) { @@ -4197,11 +4197,11 @@ class TxnDBWritePolicyJni { } }; -// The portal class for org.rocksdb.TransactionDB.KeyLockInfo +// The portal class for org.terarkdb.TransactionDB.KeyLockInfo class KeyLockInfoJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.TransactionDB.KeyLockInfo + * Get the Java Class org.terarkdb.TransactionDB.KeyLockInfo * * @param env A pointer to the Java environment * @@ -4210,11 +4210,11 @@ class KeyLockInfoJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/TransactionDB$KeyLockInfo"); + return JavaClass::getJClass(env, "org/terarkdb/TransactionDB$KeyLockInfo"); } /** - * Create a new Java org.rocksdb.TransactionDB.KeyLockInfo object + * Create a new Java org.terarkdb.TransactionDB.KeyLockInfo object * with the same properties as the provided C++ * TERARKDB_NAMESPACE::KeyLockInfo object * @@ -4222,7 +4222,7 @@ class KeyLockInfoJni : public JavaClass { * @param key_lock_info The TERARKDB_NAMESPACE::KeyLockInfo object * * @return A reference to a Java - * org.rocksdb.TransactionDB.KeyLockInfo object, + * org.terarkdb.TransactionDB.KeyLockInfo object, * or nullptr if an an exception occurs */ static jobject construct( @@ -4268,11 +4268,11 @@ class KeyLockInfoJni : public JavaClass { } }; -// The portal class for org.rocksdb.TransactionDB.DeadlockInfo +// The portal class for org.terarkdb.TransactionDB.DeadlockInfo class DeadlockInfoJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.TransactionDB.DeadlockInfo + * Get the Java Class org.terarkdb.TransactionDB.DeadlockInfo * * @param env A pointer to the Java environment * @@ -4281,15 +4281,15 @@ class DeadlockInfoJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/TransactionDB$DeadlockInfo"); + return JavaClass::getJClass(env, "org/terarkdb/TransactionDB$DeadlockInfo"); } }; -// The portal class for org.rocksdb.TransactionDB.DeadlockPath +// The portal class for org.terarkdb.TransactionDB.DeadlockPath class DeadlockPathJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.TransactionDB.DeadlockPath + * Get the Java Class org.terarkdb.TransactionDB.DeadlockPath * * @param env A pointer to the Java environment * @@ -4298,16 +4298,16 @@ class DeadlockPathJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/TransactionDB$DeadlockPath"); + return JavaClass::getJClass(env, "org/terarkdb/TransactionDB$DeadlockPath"); } /** - * Create a new Java org.rocksdb.TransactionDB.DeadlockPath object + * Create a new Java org.terarkdb.TransactionDB.DeadlockPath object * * @param env A pointer to the Java environment * * @return A reference to a Java - * org.rocksdb.TransactionDB.DeadlockPath object, + * org.terarkdb.TransactionDB.DeadlockPath object, * or nullptr if an an exception occurs */ static jobject construct(JNIEnv* env, const jobjectArray jdeadlock_infos, @@ -4926,7 +4926,7 @@ class JniUtil { class ColumnFamilyDescriptorJni : public JavaClass { public: /** - * Get the Java Class org.rocksdb.ColumnFamilyDescriptor + * Get the Java Class org.terarkdb.ColumnFamilyDescriptor * * @param env A pointer to the Java environment * @@ -4935,18 +4935,18 @@ class ColumnFamilyDescriptorJni : public JavaClass { * OutOfMemoryError or ExceptionInInitializerError exceptions is thrown */ static jclass getJClass(JNIEnv* env) { - return JavaClass::getJClass(env, "org/rocksdb/ColumnFamilyDescriptor"); + return JavaClass::getJClass(env, "org/terarkdb/ColumnFamilyDescriptor"); } /** - * Create a new Java org.rocksdb.ColumnFamilyDescriptor object with the same + * Create a new Java org.terarkdb.ColumnFamilyDescriptor object with the same * properties as the provided C++ TERARKDB_NAMESPACE::ColumnFamilyDescriptor * object * * @param env A pointer to the Java environment * @param cfd A pointer to TERARKDB_NAMESPACE::ColumnFamilyDescriptor object * - * @return A reference to a Java org.rocksdb.ColumnFamilyDescriptor object, or + * @return A reference to a Java org.terarkdb.ColumnFamilyDescriptor object, or * nullptr if an an exception occurs */ static jobject construct(JNIEnv* env, ColumnFamilyDescriptor* cfd) { @@ -4960,7 +4960,7 @@ class ColumnFamilyDescriptorJni : public JavaClass { } jmethodID mid = env->GetMethodID(jclazz, "", - "([BLorg/rocksdb/ColumnFamilyOptions;)V"); + "([BLorg/terarkdb/ColumnFamilyOptions;)V"); if (mid == nullptr) { // exception thrown: NoSuchMethodException or OutOfMemoryError env->DeleteLocalRef(jcf_name); @@ -5012,7 +5012,7 @@ class ColumnFamilyDescriptorJni : public JavaClass { } static jmethodID mid = env->GetMethodID( - jclazz, "columnFamilyOptions", "()Lorg/rocksdb/ColumnFamilyOptions;"); + jclazz, "columnFamilyOptions", "()Lorg/terarkdb/ColumnFamilyOptions;"); assert(mid != nullptr); return mid; } diff --git a/java/rocksjni/ratelimiterjni.cc b/java/rocksjni/ratelimiterjni.cc index 018b31fc99..d08b12c90e 100644 --- a/java/rocksjni/ratelimiterjni.cc +++ b/java/rocksjni/ratelimiterjni.cc @@ -5,16 +5,16 @@ // // This file implements the "bridge" between Java and C++ for RateLimiter. -#include "include/org_rocksdb_RateLimiter.h" +#include "include/org_terarkdb_RateLimiter.h" #include "rocksdb/rate_limiter.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: newRateLimiterHandle * Signature: (JJIBZ)J */ -jlong Java_org_rocksdb_RateLimiter_newRateLimiterHandle( +jlong Java_org_terarkdb_RateLimiter_newRateLimiterHandle( JNIEnv* /*env*/, jclass /*jclazz*/, jlong jrate_bytes_per_second, jlong jrefill_period_micros, jint jfairness, jbyte jrate_limiter_mode, jboolean jauto_tune) { @@ -30,11 +30,11 @@ jlong Java_org_rocksdb_RateLimiter_newRateLimiterHandle( } /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_RateLimiter_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_RateLimiter_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* handle = @@ -43,11 +43,11 @@ void Java_org_rocksdb_RateLimiter_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: setBytesPerSecond * Signature: (JJ)V */ -void Java_org_rocksdb_RateLimiter_setBytesPerSecond(JNIEnv* /*env*/, +void Java_org_terarkdb_RateLimiter_setBytesPerSecond(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jlong jbytes_per_second) { @@ -57,11 +57,11 @@ void Java_org_rocksdb_RateLimiter_setBytesPerSecond(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: getBytesPerSecond * Signature: (J)J */ -jlong Java_org_rocksdb_RateLimiter_getBytesPerSecond(JNIEnv* /*env*/, +jlong Java_org_terarkdb_RateLimiter_getBytesPerSecond(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { return reinterpret_cast*>(handle) @@ -70,11 +70,11 @@ jlong Java_org_rocksdb_RateLimiter_getBytesPerSecond(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: request * Signature: (JJ)V */ -void Java_org_rocksdb_RateLimiter_request(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_RateLimiter_request(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jlong jbytes) { reinterpret_cast*>(handle) ->get() @@ -82,11 +82,11 @@ void Java_org_rocksdb_RateLimiter_request(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: getSingleBurstBytes * Signature: (J)J */ -jlong Java_org_rocksdb_RateLimiter_getSingleBurstBytes(JNIEnv* /*env*/, +jlong Java_org_terarkdb_RateLimiter_getSingleBurstBytes(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { return reinterpret_cast*>(handle) @@ -95,11 +95,11 @@ jlong Java_org_rocksdb_RateLimiter_getSingleBurstBytes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: getTotalBytesThrough * Signature: (J)J */ -jlong Java_org_rocksdb_RateLimiter_getTotalBytesThrough(JNIEnv* /*env*/, +jlong Java_org_terarkdb_RateLimiter_getTotalBytesThrough(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { return reinterpret_cast*>(handle) @@ -108,11 +108,11 @@ jlong Java_org_rocksdb_RateLimiter_getTotalBytesThrough(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_RateLimiter + * Class: org_terarkdb_RateLimiter * Method: getTotalRequests * Signature: (J)J */ -jlong Java_org_rocksdb_RateLimiter_getTotalRequests(JNIEnv* /*env*/, +jlong Java_org_terarkdb_RateLimiter_getTotalRequests(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { return reinterpret_cast*>(handle) diff --git a/java/rocksjni/remove_emptyvalue_compactionfilterjni.cc b/java/rocksjni/remove_emptyvalue_compactionfilterjni.cc index 9649dc1e55..b611448ae5 100644 --- a/java/rocksjni/remove_emptyvalue_compactionfilterjni.cc +++ b/java/rocksjni/remove_emptyvalue_compactionfilterjni.cc @@ -5,15 +5,15 @@ #include -#include "include/org_rocksdb_RemoveEmptyValueCompactionFilter.h" +#include "include/org_terarkdb_RemoveEmptyValueCompactionFilter.h" #include "utilities/compaction_filters/remove_emptyvalue_compactionfilter.h" /* - * Class: org_rocksdb_RemoveEmptyValueCompactionFilter + * Class: org_terarkdb_RemoveEmptyValueCompactionFilter * Method: createNewRemoveEmptyValueCompactionFilter0 * Signature: ()J */ -jlong Java_org_rocksdb_RemoveEmptyValueCompactionFilter_createNewRemoveEmptyValueCompactionFilter0( +jlong Java_org_terarkdb_RemoveEmptyValueCompactionFilter_createNewRemoveEmptyValueCompactionFilter0( JNIEnv* /*env*/, jclass /*jcls*/) { auto* compaction_filter = new TERARKDB_NAMESPACE::RemoveEmptyValueCompactionFilter(); diff --git a/java/rocksjni/restorejni.cc b/java/rocksjni/restorejni.cc index 18065af378..caf43fa503 100644 --- a/java/rocksjni/restorejni.cc +++ b/java/rocksjni/restorejni.cc @@ -12,26 +12,26 @@ #include #include -#include "include/org_rocksdb_RestoreOptions.h" +#include "include/org_terarkdb_RestoreOptions.h" #include "rocksdb/utilities/backupable_db.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_RestoreOptions + * Class: org_terarkdb_RestoreOptions * Method: newRestoreOptions * Signature: (Z)J */ -jlong Java_org_rocksdb_RestoreOptions_newRestoreOptions( +jlong Java_org_terarkdb_RestoreOptions_newRestoreOptions( JNIEnv* /*env*/, jclass /*jcls*/, jboolean keep_log_files) { auto* ropt = new TERARKDB_NAMESPACE::RestoreOptions(keep_log_files); return reinterpret_cast(ropt); } /* - * Class: org_rocksdb_RestoreOptions + * Class: org_terarkdb_RestoreOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_RestoreOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_RestoreOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* ropt = reinterpret_cast(jhandle); diff --git a/java/rocksjni/rocks_callback_object.cc b/java/rocksjni/rocks_callback_object.cc index 747d62e1bc..a2178c34b5 100644 --- a/java/rocksjni/rocks_callback_object.cc +++ b/java/rocksjni/rocks_callback_object.cc @@ -4,19 +4,19 @@ // (found in the LICENSE.Apache file in the root directory). // // This file implements the "bridge" between Java and C++ for -// JNI Callbacks from C++ to sub-classes or org.rocksdb.RocksCallbackObject +// JNI Callbacks from C++ to sub-classes or org.terarkdb.RocksCallbackObject #include -#include "include/org_rocksdb_RocksCallbackObject.h" +#include "include/org_terarkdb_RocksCallbackObject.h" #include "jnicallback.h" /* - * Class: org_rocksdb_RocksCallbackObject + * Class: org_terarkdb_RocksCallbackObject * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_RocksCallbackObject_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_RocksCallbackObject_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { // TODO(AR) is deleting from the super class JniCallback OK, or must we delete diff --git a/java/rocksjni/rocksdb_exception_test.cc b/java/rocksjni/rocksdb_exception_test.cc index d6804c2210..fac3cef880 100644 --- a/java/rocksjni/rocksdb_exception_test.cc +++ b/java/rocksjni/rocksdb_exception_test.cc @@ -5,49 +5,49 @@ #include -#include "include/org_rocksdb_RocksDBExceptionTest.h" +#include "include/org_terarkdb_RocksDBExceptionTest.h" #include "rocksdb/slice.h" #include "rocksdb/status.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_RocksDBExceptionTest + * Class: org_terarkdb_RocksDBExceptionTest * Method: raiseException * Signature: ()V */ -void Java_org_rocksdb_RocksDBExceptionTest_raiseException(JNIEnv* env, +void Java_org_terarkdb_RocksDBExceptionTest_raiseException(JNIEnv* env, jobject /*jobj*/) { TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew(env, std::string("test message")); } /* - * Class: org_rocksdb_RocksDBExceptionTest + * Class: org_terarkdb_RocksDBExceptionTest * Method: raiseExceptionWithStatusCode * Signature: ()V */ -void Java_org_rocksdb_RocksDBExceptionTest_raiseExceptionWithStatusCode( +void Java_org_terarkdb_RocksDBExceptionTest_raiseExceptionWithStatusCode( JNIEnv* env, jobject /*jobj*/) { TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew(env, "test message", TERARKDB_NAMESPACE::Status::NotSupported()); } /* - * Class: org_rocksdb_RocksDBExceptionTest + * Class: org_terarkdb_RocksDBExceptionTest * Method: raiseExceptionNoMsgWithStatusCode * Signature: ()V */ -void Java_org_rocksdb_RocksDBExceptionTest_raiseExceptionNoMsgWithStatusCode( +void Java_org_terarkdb_RocksDBExceptionTest_raiseExceptionNoMsgWithStatusCode( JNIEnv* env, jobject /*jobj*/) { TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew(env, TERARKDB_NAMESPACE::Status::NotSupported()); } /* - * Class: org_rocksdb_RocksDBExceptionTest + * Class: org_terarkdb_RocksDBExceptionTest * Method: raiseExceptionWithStatusCodeSubCode * Signature: ()V */ -void Java_org_rocksdb_RocksDBExceptionTest_raiseExceptionWithStatusCodeSubCode( +void Java_org_terarkdb_RocksDBExceptionTest_raiseExceptionWithStatusCodeSubCode( JNIEnv* env, jobject /*jobj*/) { TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew( env, "test message", @@ -55,22 +55,22 @@ void Java_org_rocksdb_RocksDBExceptionTest_raiseExceptionWithStatusCodeSubCode( } /* - * Class: org_rocksdb_RocksDBExceptionTest + * Class: org_terarkdb_RocksDBExceptionTest * Method: raiseExceptionNoMsgWithStatusCodeSubCode * Signature: ()V */ -void Java_org_rocksdb_RocksDBExceptionTest_raiseExceptionNoMsgWithStatusCodeSubCode( +void Java_org_terarkdb_RocksDBExceptionTest_raiseExceptionNoMsgWithStatusCodeSubCode( JNIEnv* env, jobject /*jobj*/) { TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew( env, TERARKDB_NAMESPACE::Status::TimedOut(TERARKDB_NAMESPACE::Status::SubCode::kLockTimeout)); } /* - * Class: org_rocksdb_RocksDBExceptionTest + * Class: org_terarkdb_RocksDBExceptionTest * Method: raiseExceptionWithStatusCodeState * Signature: ()V */ -void Java_org_rocksdb_RocksDBExceptionTest_raiseExceptionWithStatusCodeState( +void Java_org_terarkdb_RocksDBExceptionTest_raiseExceptionWithStatusCodeState( JNIEnv* env, jobject /*jobj*/) { TERARKDB_NAMESPACE::Slice state("test state"); TERARKDB_NAMESPACE::RocksDBExceptionJni::ThrowNew(env, "test message", diff --git a/java/rocksjni/rocksjni.cc b/java/rocksjni/rocksjni.cc index 24559210dd..5e0bd6d810 100644 --- a/java/rocksjni/rocksjni.cc +++ b/java/rocksjni/rocksjni.cc @@ -16,7 +16,7 @@ #include #include -#include "include/org_rocksdb_RocksDB.h" +#include "include/org_terarkdb_RocksDB.h" #include "rocksdb/cache.h" #include "rocksdb/db.h" #include "rocksdb/options.h" @@ -55,11 +55,11 @@ jlong rocksdb_open_helper( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: open * Signature: (JLjava/lang/String;)J */ -jlong Java_org_rocksdb_RocksDB_open__JLjava_lang_String_2(JNIEnv* env, +jlong Java_org_terarkdb_RocksDB_open__JLjava_lang_String_2(JNIEnv* env, jclass /*jcls*/, jlong jopt_handle, jstring jdb_path) { @@ -71,11 +71,11 @@ jlong Java_org_rocksdb_RocksDB_open__JLjava_lang_String_2(JNIEnv* env, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: openROnly * Signature: (JLjava/lang/String;)J */ -jlong Java_org_rocksdb_RocksDB_openROnly__JLjava_lang_String_2( +jlong Java_org_terarkdb_RocksDB_openROnly__JLjava_lang_String_2( JNIEnv* env, jclass /*jcls*/, jlong jopt_handle, jstring jdb_path) { return rocksdb_open_helper(env, jopt_handle, jdb_path, [](const TERARKDB_NAMESPACE::Options& options, @@ -169,11 +169,11 @@ jlongArray rocksdb_open_helper( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: openROnly * Signature: (JLjava/lang/String;[[B[J)[J */ -jlongArray Java_org_rocksdb_RocksDB_openROnly__JLjava_lang_String_2_3_3B_3J( +jlongArray Java_org_terarkdb_RocksDB_openROnly__JLjava_lang_String_2_3_3B_3J( JNIEnv* env, jclass /*jcls*/, jlong jopt_handle, jstring jdb_path, jobjectArray jcolumn_names, jlongArray jcolumn_options) { return rocksdb_open_helper( @@ -187,11 +187,11 @@ jlongArray Java_org_rocksdb_RocksDB_openROnly__JLjava_lang_String_2_3_3B_3J( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: open * Signature: (JLjava/lang/String;[[B[J)[J */ -jlongArray Java_org_rocksdb_RocksDB_open__JLjava_lang_String_2_3_3B_3J( +jlongArray Java_org_terarkdb_RocksDB_open__JLjava_lang_String_2_3_3B_3J( JNIEnv* env, jclass /*jcls*/, jlong jopt_handle, jstring jdb_path, jobjectArray jcolumn_names, jlongArray jcolumn_options) { return rocksdb_open_helper( @@ -207,11 +207,11 @@ jlongArray Java_org_rocksdb_RocksDB_open__JLjava_lang_String_2_3_3B_3J( // TERARKDB_NAMESPACE::DB::ListColumnFamilies /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: listColumnFamilies * Signature: (JLjava/lang/String;)[[B */ -jobjectArray Java_org_rocksdb_RocksDB_listColumnFamilies(JNIEnv* env, +jobjectArray Java_org_terarkdb_RocksDB_listColumnFamilies(JNIEnv* env, jclass /*jclazz*/, jlong jopt_handle, jstring jdb_path) { @@ -286,11 +286,11 @@ bool rocksdb_put_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: put * Signature: (J[BII[BII)V */ -void Java_org_rocksdb_RocksDB_put__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_put__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, @@ -304,11 +304,11 @@ void Java_org_rocksdb_RocksDB_put__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: put * Signature: (J[BII[BIIJ)V */ -void Java_org_rocksdb_RocksDB_put__J_3BII_3BIIJ(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_put__J_3BII_3BIIJ(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, @@ -328,11 +328,11 @@ void Java_org_rocksdb_RocksDB_put__J_3BII_3BIIJ(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: put * Signature: (JJ[BII[BII)V */ -void Java_org_rocksdb_RocksDB_put__JJ_3BII_3BII(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_put__JJ_3BII_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options_handle, jbyteArray jkey, jint jkey_off, @@ -347,11 +347,11 @@ void Java_org_rocksdb_RocksDB_put__JJ_3BII_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: put * Signature: (JJ[BII[BIIJ)V */ -void Java_org_rocksdb_RocksDB_put__JJ_3BII_3BIIJ( +void Java_org_terarkdb_RocksDB_put__JJ_3BII_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, jint jval_off, jint jval_len, jlong jcf_handle) { @@ -371,11 +371,11 @@ void Java_org_rocksdb_RocksDB_put__JJ_3BII_3BIIJ( ////////////////////////////////////////////////////////////////////////////// // TERARKDB_NAMESPACE::DB::Write /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: write0 * Signature: (JJJ)V */ -void Java_org_rocksdb_RocksDB_write0(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_write0(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options_handle, jlong jwb_handle) { @@ -392,11 +392,11 @@ void Java_org_rocksdb_RocksDB_write0(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: write1 * Signature: (JJJ)V */ -void Java_org_rocksdb_RocksDB_write1(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_write1(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options_handle, jlong jwbwi_handle) { @@ -459,11 +459,11 @@ jboolean key_may_exist_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: keyMayExist * Signature: (J[BIILjava/lang/StringBuilder;)Z */ -jboolean Java_org_rocksdb_RocksDB_keyMayExist__J_3BIILjava_lang_StringBuilder_2( +jboolean Java_org_terarkdb_RocksDB_keyMayExist__J_3BIILjava_lang_StringBuilder_2( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jobject jstring_builder) { auto* db = reinterpret_cast(jdb_handle); @@ -474,12 +474,12 @@ jboolean Java_org_rocksdb_RocksDB_keyMayExist__J_3BIILjava_lang_StringBuilder_2( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: keyMayExist * Signature: (J[BIIJLjava/lang/StringBuilder;)Z */ jboolean -Java_org_rocksdb_RocksDB_keyMayExist__J_3BIIJLjava_lang_StringBuilder_2( +Java_org_terarkdb_RocksDB_keyMayExist__J_3BIIJLjava_lang_StringBuilder_2( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jlong jcf_handle, jobject jstring_builder) { auto* db = reinterpret_cast(jdb_handle); @@ -497,12 +497,12 @@ Java_org_rocksdb_RocksDB_keyMayExist__J_3BIIJLjava_lang_StringBuilder_2( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: keyMayExist * Signature: (JJ[BIILjava/lang/StringBuilder;)Z */ jboolean -Java_org_rocksdb_RocksDB_keyMayExist__JJ_3BIILjava_lang_StringBuilder_2( +Java_org_terarkdb_RocksDB_keyMayExist__JJ_3BIILjava_lang_StringBuilder_2( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jread_options_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jobject jstring_builder) { auto* db = reinterpret_cast(jdb_handle); @@ -514,12 +514,12 @@ Java_org_rocksdb_RocksDB_keyMayExist__JJ_3BIILjava_lang_StringBuilder_2( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: keyMayExist * Signature: (JJ[BIIJLjava/lang/StringBuilder;)Z */ jboolean -Java_org_rocksdb_RocksDB_keyMayExist__JJ_3BIIJLjava_lang_StringBuilder_2( +Java_org_terarkdb_RocksDB_keyMayExist__JJ_3BIIJLjava_lang_StringBuilder_2( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jread_options_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jlong jcf_handle, jobject jstring_builder) { @@ -586,11 +586,11 @@ jbyteArray rocksdb_get_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (J[BII)[B */ -jbyteArray Java_org_rocksdb_RocksDB_get__J_3BII(JNIEnv* env, jobject /*jdb*/, +jbyteArray Java_org_terarkdb_RocksDB_get__J_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len) { @@ -600,11 +600,11 @@ jbyteArray Java_org_rocksdb_RocksDB_get__J_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (J[BIIJ)[B */ -jbyteArray Java_org_rocksdb_RocksDB_get__J_3BIIJ(JNIEnv* env, jobject /*jdb*/, +jbyteArray Java_org_terarkdb_RocksDB_get__J_3BIIJ(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, @@ -622,11 +622,11 @@ jbyteArray Java_org_rocksdb_RocksDB_get__J_3BIIJ(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (JJ[BII)[B */ -jbyteArray Java_org_rocksdb_RocksDB_get__JJ_3BII(JNIEnv* env, jobject /*jdb*/, +jbyteArray Java_org_terarkdb_RocksDB_get__JJ_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jropt_handle, jbyteArray jkey, jint jkey_off, @@ -638,11 +638,11 @@ jbyteArray Java_org_rocksdb_RocksDB_get__JJ_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (JJ[BIIJ)[B */ -jbyteArray Java_org_rocksdb_RocksDB_get__JJ_3BIIJ( +jbyteArray Java_org_terarkdb_RocksDB_get__JJ_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jropt_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jlong jcf_handle) { auto* db_handle = reinterpret_cast(jdb_handle); @@ -877,11 +877,11 @@ jobjectArray multi_get_helper(JNIEnv* env, jobject /*jdb*/, TERARKDB_NAMESPACE:: } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: multiGet * Signature: (J[[B[I[I)[[B */ -jobjectArray Java_org_rocksdb_RocksDB_multiGet__J_3_3B_3I_3I( +jobjectArray Java_org_terarkdb_RocksDB_multiGet__J_3_3B_3I_3I( JNIEnv* env, jobject jdb, jlong jdb_handle, jobjectArray jkeys, jintArray jkey_offs, jintArray jkey_lens) { return multi_get_helper(env, jdb, reinterpret_cast(jdb_handle), @@ -890,11 +890,11 @@ jobjectArray Java_org_rocksdb_RocksDB_multiGet__J_3_3B_3I_3I( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: multiGet * Signature: (J[[B[I[I[J)[[B */ -jobjectArray Java_org_rocksdb_RocksDB_multiGet__J_3_3B_3I_3I_3J( +jobjectArray Java_org_terarkdb_RocksDB_multiGet__J_3_3B_3I_3I_3J( JNIEnv* env, jobject jdb, jlong jdb_handle, jobjectArray jkeys, jintArray jkey_offs, jintArray jkey_lens, jlongArray jcolumn_family_handles) { @@ -904,11 +904,11 @@ jobjectArray Java_org_rocksdb_RocksDB_multiGet__J_3_3B_3I_3I_3J( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: multiGet * Signature: (JJ[[B[I[I)[[B */ -jobjectArray Java_org_rocksdb_RocksDB_multiGet__JJ_3_3B_3I_3I( +jobjectArray Java_org_terarkdb_RocksDB_multiGet__JJ_3_3B_3I_3I( JNIEnv* env, jobject jdb, jlong jdb_handle, jlong jropt_handle, jobjectArray jkeys, jintArray jkey_offs, jintArray jkey_lens) { return multi_get_helper( @@ -918,11 +918,11 @@ jobjectArray Java_org_rocksdb_RocksDB_multiGet__JJ_3_3B_3I_3I( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: multiGet * Signature: (JJ[[B[I[I[J)[[B */ -jobjectArray Java_org_rocksdb_RocksDB_multiGet__JJ_3_3B_3I_3I_3J( +jobjectArray Java_org_terarkdb_RocksDB_multiGet__JJ_3_3B_3I_3I_3J( JNIEnv* env, jobject jdb, jlong jdb_handle, jlong jropt_handle, jobjectArray jkeys, jintArray jkey_offs, jintArray jkey_lens, jlongArray jcolumn_family_handles) { @@ -933,11 +933,11 @@ jobjectArray Java_org_rocksdb_RocksDB_multiGet__JJ_3_3B_3I_3I_3J( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (J[BII[BII)I */ -jint Java_org_rocksdb_RocksDB_get__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, +jint Java_org_terarkdb_RocksDB_get__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, @@ -949,11 +949,11 @@ jint Java_org_rocksdb_RocksDB_get__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (J[BII[BIIJ)I */ -jint Java_org_rocksdb_RocksDB_get__J_3BII_3BIIJ(JNIEnv* env, jobject /*jdb*/, +jint Java_org_terarkdb_RocksDB_get__J_3BII_3BIIJ(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, @@ -975,11 +975,11 @@ jint Java_org_rocksdb_RocksDB_get__J_3BII_3BIIJ(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (JJ[BII[BII)I */ -jint Java_org_rocksdb_RocksDB_get__JJ_3BII_3BII(JNIEnv* env, jobject /*jdb*/, +jint Java_org_terarkdb_RocksDB_get__JJ_3BII_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jropt_handle, jbyteArray jkey, jint jkey_off, @@ -993,11 +993,11 @@ jint Java_org_rocksdb_RocksDB_get__JJ_3BII_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: get * Signature: (JJ[BII[BIIJ)I */ -jint Java_org_rocksdb_RocksDB_get__JJ_3BII_3BIIJ( +jint Java_org_terarkdb_RocksDB_get__JJ_3BII_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jropt_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, jint jval_off, jint jval_len, jlong jcf_handle) { @@ -1056,11 +1056,11 @@ bool rocksdb_delete_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: delete * Signature: (J[BII)V */ -void Java_org_rocksdb_RocksDB_delete__J_3BII(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_delete__J_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len) { auto* db = reinterpret_cast(jdb_handle); @@ -1071,11 +1071,11 @@ void Java_org_rocksdb_RocksDB_delete__J_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: delete * Signature: (J[BIIJ)V */ -void Java_org_rocksdb_RocksDB_delete__J_3BIIJ(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_delete__J_3BIIJ(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jlong jcf_handle) { @@ -1093,11 +1093,11 @@ void Java_org_rocksdb_RocksDB_delete__J_3BIIJ(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: delete * Signature: (JJ[BII)V */ -void Java_org_rocksdb_RocksDB_delete__JJ_3BII(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_delete__JJ_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options, jbyteArray jkey, jint jkey_off, @@ -1110,11 +1110,11 @@ void Java_org_rocksdb_RocksDB_delete__JJ_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: delete * Signature: (JJ[BIIJ)V */ -void Java_org_rocksdb_RocksDB_delete__JJ_3BIIJ( +void Java_org_terarkdb_RocksDB_delete__JJ_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options, jbyteArray jkey, jint jkey_off, jint jkey_len, jlong jcf_handle) { auto* db = reinterpret_cast(jdb_handle); @@ -1169,11 +1169,11 @@ bool rocksdb_single_delete_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: singleDelete * Signature: (J[BI)V */ -void Java_org_rocksdb_RocksDB_singleDelete__J_3BI(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_singleDelete__J_3BI(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_len) { @@ -1185,11 +1185,11 @@ void Java_org_rocksdb_RocksDB_singleDelete__J_3BI(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: singleDelete * Signature: (J[BIJ)V */ -void Java_org_rocksdb_RocksDB_singleDelete__J_3BIJ(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_singleDelete__J_3BIJ(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_len, @@ -1208,11 +1208,11 @@ void Java_org_rocksdb_RocksDB_singleDelete__J_3BIJ(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: singleDelete * Signature: (JJ[BIJ)V */ -void Java_org_rocksdb_RocksDB_singleDelete__JJ_3BI(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_singleDelete__JJ_3BI(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options, jbyteArray jkey, @@ -1225,11 +1225,11 @@ void Java_org_rocksdb_RocksDB_singleDelete__JJ_3BI(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: singleDelete * Signature: (JJ[BIJ)V */ -void Java_org_rocksdb_RocksDB_singleDelete__JJ_3BIJ( +void Java_org_terarkdb_RocksDB_singleDelete__JJ_3BIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options, jbyteArray jkey, jint jkey_len, jlong jcf_handle) { auto* db = reinterpret_cast(jdb_handle); @@ -1294,11 +1294,11 @@ bool rocksdb_delete_range_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: deleteRange * Signature: (J[BII[BII)V */ -void Java_org_rocksdb_RocksDB_deleteRange__J_3BII_3BII( +void Java_org_terarkdb_RocksDB_deleteRange__J_3BII_3BII( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jbegin_key, jint jbegin_key_off, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_off, jint jend_key_len) { @@ -1311,11 +1311,11 @@ void Java_org_rocksdb_RocksDB_deleteRange__J_3BII_3BII( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: deleteRange * Signature: (J[BII[BIIJ)V */ -void Java_org_rocksdb_RocksDB_deleteRange__J_3BII_3BIIJ( +void Java_org_terarkdb_RocksDB_deleteRange__J_3BII_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jbegin_key, jint jbegin_key_off, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_off, jint jend_key_len, jlong jcf_handle) { @@ -1334,11 +1334,11 @@ void Java_org_rocksdb_RocksDB_deleteRange__J_3BII_3BIIJ( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: deleteRange * Signature: (JJ[BII[BII)V */ -void Java_org_rocksdb_RocksDB_deleteRange__JJ_3BII_3BII( +void Java_org_terarkdb_RocksDB_deleteRange__JJ_3BII_3BII( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options, jbyteArray jbegin_key, jint jbegin_key_off, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_off, jint jend_key_len) { @@ -1351,11 +1351,11 @@ void Java_org_rocksdb_RocksDB_deleteRange__JJ_3BII_3BII( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: deleteRange * Signature: (JJ[BII[BIIJ)V */ -void Java_org_rocksdb_RocksDB_deleteRange__JJ_3BII_3BIIJ( +void Java_org_terarkdb_RocksDB_deleteRange__JJ_3BII_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options, jbyteArray jbegin_key, jint jbegin_key_off, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_off, jint jend_key_len, @@ -1424,11 +1424,11 @@ bool rocksdb_merge_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: merge * Signature: (J[BII[BII)V */ -void Java_org_rocksdb_RocksDB_merge__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_merge__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, @@ -1442,11 +1442,11 @@ void Java_org_rocksdb_RocksDB_merge__J_3BII_3BII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: merge * Signature: (J[BII[BIIJ)V */ -void Java_org_rocksdb_RocksDB_merge__J_3BII_3BIIJ( +void Java_org_terarkdb_RocksDB_merge__J_3BII_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, jint jval_off, jint jval_len, jlong jcf_handle) { @@ -1464,11 +1464,11 @@ void Java_org_rocksdb_RocksDB_merge__J_3BII_3BIIJ( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: merge * Signature: (JJ[BII[BII)V */ -void Java_org_rocksdb_RocksDB_merge__JJ_3BII_3BII( +void Java_org_terarkdb_RocksDB_merge__JJ_3BII_3BII( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, jint jval_off, jint jval_len) { @@ -1481,11 +1481,11 @@ void Java_org_rocksdb_RocksDB_merge__JJ_3BII_3BII( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: merge * Signature: (JJ[BII[BIIJ)V */ -void Java_org_rocksdb_RocksDB_merge__JJ_3BII_3BIIJ( +void Java_org_terarkdb_RocksDB_merge__JJ_3BII_3BIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jwrite_options_handle, jbyteArray jkey, jint jkey_off, jint jkey_len, jbyteArray jval, jint jval_off, jint jval_len, jlong jcf_handle) { @@ -1506,11 +1506,11 @@ void Java_org_rocksdb_RocksDB_merge__JJ_3BII_3BIIJ( // TERARKDB_NAMESPACE::DB::~DB() /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_RocksDB_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_RocksDB_disposeInternal(JNIEnv* /*env*/, jobject /*java_db*/, jlong jhandle) { auto* db = reinterpret_cast(jhandle); @@ -1531,22 +1531,22 @@ jlong rocksdb_iterator_helper(TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: iterator * Signature: (J)J */ -jlong Java_org_rocksdb_RocksDB_iterator__J(JNIEnv* /*env*/, jobject /*jdb*/, +jlong Java_org_terarkdb_RocksDB_iterator__J(JNIEnv* /*env*/, jobject /*jdb*/, jlong db_handle) { auto* db = reinterpret_cast(db_handle); return rocksdb_iterator_helper(db, TERARKDB_NAMESPACE::ReadOptions(), nullptr); } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: iterator * Signature: (JJ)J */ -jlong Java_org_rocksdb_RocksDB_iterator__JJ(JNIEnv* /*env*/, jobject /*jdb*/, +jlong Java_org_terarkdb_RocksDB_iterator__JJ(JNIEnv* /*env*/, jobject /*jdb*/, jlong db_handle, jlong jread_options_handle) { auto* db = reinterpret_cast(db_handle); @@ -1556,11 +1556,11 @@ jlong Java_org_rocksdb_RocksDB_iterator__JJ(JNIEnv* /*env*/, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: iteratorCF * Signature: (JJ)J */ -jlong Java_org_rocksdb_RocksDB_iteratorCF__JJ(JNIEnv* /*env*/, jobject /*jdb*/, +jlong Java_org_terarkdb_RocksDB_iteratorCF__JJ(JNIEnv* /*env*/, jobject /*jdb*/, jlong db_handle, jlong jcf_handle) { auto* db = reinterpret_cast(db_handle); @@ -1569,11 +1569,11 @@ jlong Java_org_rocksdb_RocksDB_iteratorCF__JJ(JNIEnv* /*env*/, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: iteratorCF * Signature: (JJJ)J */ -jlong Java_org_rocksdb_RocksDB_iteratorCF__JJJ(JNIEnv* /*env*/, jobject /*jdb*/, +jlong Java_org_terarkdb_RocksDB_iteratorCF__JJJ(JNIEnv* /*env*/, jobject /*jdb*/, jlong db_handle, jlong jcf_handle, jlong jread_options_handle) { @@ -1585,11 +1585,11 @@ jlong Java_org_rocksdb_RocksDB_iteratorCF__JJJ(JNIEnv* /*env*/, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: iterators * Signature: (J[JJ)[J */ -jlongArray Java_org_rocksdb_RocksDB_iterators(JNIEnv* env, jobject /*jdb*/, +jlongArray Java_org_terarkdb_RocksDB_iterators(JNIEnv* env, jobject /*jdb*/, jlong db_handle, jlongArray jcolumn_family_handles, jlong jread_options_handle) { @@ -1644,11 +1644,11 @@ jlongArray Java_org_rocksdb_RocksDB_iterators(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getDefaultColumnFamily * Signature: (J)J */ -jlong Java_org_rocksdb_RocksDB_getDefaultColumnFamily(JNIEnv* /*env*/, +jlong Java_org_terarkdb_RocksDB_getDefaultColumnFamily(JNIEnv* /*env*/, jobject /*jobj*/, jlong jdb_handle) { auto* db_handle = reinterpret_cast(jdb_handle); @@ -1657,11 +1657,11 @@ jlong Java_org_rocksdb_RocksDB_getDefaultColumnFamily(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: createColumnFamily * Signature: (J[BJ)J */ -jlong Java_org_rocksdb_RocksDB_createColumnFamily(JNIEnv* env, jobject /*jdb*/, +jlong Java_org_terarkdb_RocksDB_createColumnFamily(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jcolumn_name, jlong jcolumn_options) { @@ -1692,11 +1692,11 @@ jlong Java_org_rocksdb_RocksDB_createColumnFamily(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: dropColumnFamily * Signature: (JJ)V; */ -void Java_org_rocksdb_RocksDB_dropColumnFamily(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_dropColumnFamily(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jcf_handle) { auto* cf_handle = reinterpret_cast(jcf_handle); @@ -1711,7 +1711,7 @@ void Java_org_rocksdb_RocksDB_dropColumnFamily(JNIEnv* env, jobject /*jdb*/, * Method: getSnapshot * Signature: (J)J */ -jlong Java_org_rocksdb_RocksDB_getSnapshot(JNIEnv* /*env*/, jobject /*jdb*/, +jlong Java_org_terarkdb_RocksDB_getSnapshot(JNIEnv* /*env*/, jobject /*jdb*/, jlong db_handle) { auto* db = reinterpret_cast(db_handle); const TERARKDB_NAMESPACE::Snapshot* snapshot = db->GetSnapshot(); @@ -1722,7 +1722,7 @@ jlong Java_org_rocksdb_RocksDB_getSnapshot(JNIEnv* /*env*/, jobject /*jdb*/, * Method: releaseSnapshot * Signature: (JJ)V */ -void Java_org_rocksdb_RocksDB_releaseSnapshot(JNIEnv* /*env*/, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_releaseSnapshot(JNIEnv* /*env*/, jobject /*jdb*/, jlong db_handle, jlong snapshot_handle) { auto* db = reinterpret_cast(db_handle); @@ -1731,11 +1731,11 @@ void Java_org_rocksdb_RocksDB_releaseSnapshot(JNIEnv* /*env*/, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getProperty0 * Signature: (JLjava/lang/String;I)Ljava/lang/String; */ -jstring Java_org_rocksdb_RocksDB_getProperty0__JLjava_lang_String_2I( +jstring Java_org_terarkdb_RocksDB_getProperty0__JLjava_lang_String_2I( JNIEnv* env, jobject /*jdb*/, jlong db_handle, jstring jproperty, jint jproperty_len) { const char* property = env->GetStringUTFChars(jproperty, nullptr); @@ -1759,11 +1759,11 @@ jstring Java_org_rocksdb_RocksDB_getProperty0__JLjava_lang_String_2I( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getProperty0 * Signature: (JJLjava/lang/String;I)Ljava/lang/String; */ -jstring Java_org_rocksdb_RocksDB_getProperty0__JJLjava_lang_String_2I( +jstring Java_org_terarkdb_RocksDB_getProperty0__JJLjava_lang_String_2I( JNIEnv* env, jobject /*jdb*/, jlong db_handle, jlong jcf_handle, jstring jproperty, jint jproperty_len) { const char* property = env->GetStringUTFChars(jproperty, nullptr); @@ -1788,11 +1788,11 @@ jstring Java_org_rocksdb_RocksDB_getProperty0__JJLjava_lang_String_2I( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getLongProperty * Signature: (JLjava/lang/String;I)L; */ -jlong Java_org_rocksdb_RocksDB_getLongProperty__JLjava_lang_String_2I( +jlong Java_org_terarkdb_RocksDB_getLongProperty__JLjava_lang_String_2I( JNIEnv* env, jobject /*jdb*/, jlong db_handle, jstring jproperty, jint jproperty_len) { const char* property = env->GetStringUTFChars(jproperty, nullptr); @@ -1816,11 +1816,11 @@ jlong Java_org_rocksdb_RocksDB_getLongProperty__JLjava_lang_String_2I( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getLongProperty * Signature: (JJLjava/lang/String;I)L; */ -jlong Java_org_rocksdb_RocksDB_getLongProperty__JJLjava_lang_String_2I( +jlong Java_org_terarkdb_RocksDB_getLongProperty__JJLjava_lang_String_2I( JNIEnv* env, jobject /*jdb*/, jlong db_handle, jlong jcf_handle, jstring jproperty, jint jproperty_len) { const char* property = env->GetStringUTFChars(jproperty, nullptr); @@ -1845,11 +1845,11 @@ jlong Java_org_rocksdb_RocksDB_getLongProperty__JJLjava_lang_String_2I( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getAggregatedLongProperty * Signature: (JLjava/lang/String;I)J */ -jlong Java_org_rocksdb_RocksDB_getAggregatedLongProperty( +jlong Java_org_terarkdb_RocksDB_getAggregatedLongProperty( JNIEnv* env, jobject, jlong db_handle, jstring jproperty, jint jproperty_len) { const char* property = env->GetStringUTFChars(jproperty, nullptr); if (property == nullptr) { @@ -1888,11 +1888,11 @@ void rocksdb_flush_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: flush * Signature: (JJ)V */ -void Java_org_rocksdb_RocksDB_flush__JJ(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_flush__JJ(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jflush_options) { auto* db = reinterpret_cast(jdb_handle); @@ -1902,11 +1902,11 @@ void Java_org_rocksdb_RocksDB_flush__JJ(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: flush * Signature: (JJJ)V */ -void Java_org_rocksdb_RocksDB_flush__JJJ(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_flush__JJJ(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jflush_options, jlong jcf_handle) { auto* db = reinterpret_cast(jdb_handle); @@ -1942,11 +1942,11 @@ void rocksdb_compactrange_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: compactRange0 * Signature: (JZII)V */ -void Java_org_rocksdb_RocksDB_compactRange0__JZII(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_compactRange0__JZII(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jboolean jreduce_level, jint jtarget_level, @@ -1957,11 +1957,11 @@ void Java_org_rocksdb_RocksDB_compactRange0__JZII(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: compactRange * Signature: (JZIIJ)V */ -void Java_org_rocksdb_RocksDB_compactRange__JZIIJ( +void Java_org_terarkdb_RocksDB_compactRange__JZIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jboolean jreduce_level, jint jtarget_level, jint jtarget_path_id, jlong jcf_handle) { auto* db = reinterpret_cast(jdb_handle); @@ -2037,11 +2037,11 @@ bool rocksdb_compactrange_helper(JNIEnv* env, TERARKDB_NAMESPACE::DB* db, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: compactRange0 * Signature: (J[BI[BIZII)V */ -void Java_org_rocksdb_RocksDB_compactRange0__J_3BI_3BIZII( +void Java_org_terarkdb_RocksDB_compactRange0__J_3BI_3BIZII( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jbegin, jint jbegin_len, jbyteArray jend, jint jend_len, jboolean jreduce_level, jint jtarget_level, jint jtarget_path_id) { @@ -2052,11 +2052,11 @@ void Java_org_rocksdb_RocksDB_compactRange0__J_3BI_3BIZII( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: compactRange * Signature: (JJ[BI[BIZII)V */ -void Java_org_rocksdb_RocksDB_compactRange__J_3BI_3BIZIIJ( +void Java_org_terarkdb_RocksDB_compactRange__J_3BI_3BIZIIJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jbegin, jint jbegin_len, jbyteArray jend, jint jend_len, jboolean jreduce_level, jint jtarget_level, jint jtarget_path_id, jlong jcf_handle) { @@ -2068,7 +2068,7 @@ void Java_org_rocksdb_RocksDB_compactRange__J_3BI_3BIZIIJ( } -void Java_org_rocksdb_RocksDB_compactRange__J_3BI_3BIJJ( +void Java_org_terarkdb_RocksDB_compactRange__J_3BI_3BIJJ( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jbyteArray jbegin, jint jbegin_len, jbyteArray jend, jint jend_len, jlong jcompact_options_handle, jlong jcf_handle) { @@ -2085,11 +2085,11 @@ void Java_org_rocksdb_RocksDB_compactRange__J_3BI_3BIJJ( // TERARKDB_NAMESPACE::DB::PauseBackgroundWork /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: pauseBackgroundWork * Signature: (J)V */ -void Java_org_rocksdb_RocksDB_pauseBackgroundWork(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_RocksDB_pauseBackgroundWork(JNIEnv* env, jobject /*jobj*/, jlong jdb_handle) { auto* db = reinterpret_cast(jdb_handle); auto s = db->PauseBackgroundWork(); @@ -2102,11 +2102,11 @@ void Java_org_rocksdb_RocksDB_pauseBackgroundWork(JNIEnv* env, jobject /*jobj*/, // TERARKDB_NAMESPACE::DB::ContinueBackgroundWork /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: continueBackgroundWork * Signature: (J)V */ -void Java_org_rocksdb_RocksDB_continueBackgroundWork(JNIEnv* env, +void Java_org_terarkdb_RocksDB_continueBackgroundWork(JNIEnv* env, jobject /*jobj*/, jlong jdb_handle) { auto* db = reinterpret_cast(jdb_handle); @@ -2120,11 +2120,11 @@ void Java_org_rocksdb_RocksDB_continueBackgroundWork(JNIEnv* env, // TERARKDB_NAMESPACE::DB::GetLatestSequenceNumber /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getLatestSequenceNumber * Signature: (J)V */ -jlong Java_org_rocksdb_RocksDB_getLatestSequenceNumber(JNIEnv* /*env*/, +jlong Java_org_terarkdb_RocksDB_getLatestSequenceNumber(JNIEnv* /*env*/, jobject /*jdb*/, jlong jdb_handle) { auto* db = reinterpret_cast(jdb_handle); @@ -2135,11 +2135,11 @@ jlong Java_org_rocksdb_RocksDB_getLatestSequenceNumber(JNIEnv* /*env*/, // TERARKDB_NAMESPACE::DB enable/disable file deletions /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: enableFileDeletions * Signature: (J)V */ -void Java_org_rocksdb_RocksDB_disableFileDeletions(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_disableFileDeletions(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle) { auto* db = reinterpret_cast(jdb_handle); TERARKDB_NAMESPACE::Status s = db->DisableFileDeletions(); @@ -2149,11 +2149,11 @@ void Java_org_rocksdb_RocksDB_disableFileDeletions(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: enableFileDeletions * Signature: (JZ)V */ -void Java_org_rocksdb_RocksDB_enableFileDeletions(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_enableFileDeletions(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jboolean jforce) { auto* db = reinterpret_cast(jdb_handle); @@ -2167,11 +2167,11 @@ void Java_org_rocksdb_RocksDB_enableFileDeletions(JNIEnv* env, jobject /*jdb*/, // TERARKDB_NAMESPACE::DB::GetUpdatesSince /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: getUpdatesSince * Signature: (JJ)J */ -jlong Java_org_rocksdb_RocksDB_getUpdatesSince(JNIEnv* env, jobject /*jdb*/, +jlong Java_org_terarkdb_RocksDB_getUpdatesSince(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jsequence_number) { auto* db = reinterpret_cast(jdb_handle); @@ -2188,11 +2188,11 @@ jlong Java_org_rocksdb_RocksDB_getUpdatesSince(JNIEnv* env, jobject /*jdb*/, } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: setOptions * Signature: (JJ[Ljava/lang/String;[Ljava/lang/String;)V */ -void Java_org_rocksdb_RocksDB_setOptions(JNIEnv* env, jobject /*jdb*/, +void Java_org_terarkdb_RocksDB_setOptions(JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jcf_handle, jobjectArray jkeys, jobjectArray jvalues) { @@ -2253,11 +2253,11 @@ void Java_org_rocksdb_RocksDB_setOptions(JNIEnv* env, jobject /*jdb*/, // TERARKDB_NAMESPACE::DB::IngestExternalFile /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: ingestExternalFile * Signature: (JJ[Ljava/lang/String;IJ)V */ -void Java_org_rocksdb_RocksDB_ingestExternalFile( +void Java_org_terarkdb_RocksDB_ingestExternalFile( JNIEnv* env, jobject /*jdb*/, jlong jdb_handle, jlong jcf_handle, jobjectArray jfile_path_list, jint jfile_path_list_len, jlong jingest_external_file_options_handle) { @@ -2282,11 +2282,11 @@ void Java_org_rocksdb_RocksDB_ingestExternalFile( } /* - * Class: org_rocksdb_RocksDB + * Class: org_terarkdb_RocksDB * Method: destroyDB * Signature: (Ljava/lang/String;J)V */ -void Java_org_rocksdb_RocksDB_destroyDB(JNIEnv* env, jclass /*jcls*/, +void Java_org_terarkdb_RocksDB_destroyDB(JNIEnv* env, jclass /*jcls*/, jstring jdb_path, jlong joptions_handle) { const char* db_path = env->GetStringUTFChars(jdb_path, nullptr); diff --git a/java/rocksjni/slice.cc b/java/rocksjni/slice.cc index 318f5dde10..841f7a99f8 100644 --- a/java/rocksjni/slice.cc +++ b/java/rocksjni/slice.cc @@ -11,20 +11,20 @@ #include #include -#include "include/org_rocksdb_AbstractSlice.h" -#include "include/org_rocksdb_DirectSlice.h" -#include "include/org_rocksdb_Slice.h" +#include "include/org_terarkdb_AbstractSlice.h" +#include "include/org_terarkdb_DirectSlice.h" +#include "include/org_terarkdb_Slice.h" #include "rocksdb/slice.h" #include "rocksjni/portal.h" -// /* - * Class: org_rocksdb_AbstractSlice + * Class: org_terarkdb_AbstractSlice * Method: createNewSliceFromString * Signature: (Ljava/lang/String;)J */ -jlong Java_org_rocksdb_AbstractSlice_createNewSliceFromString(JNIEnv* env, +jlong Java_org_terarkdb_AbstractSlice_createNewSliceFromString(JNIEnv* env, jclass /*jcls*/, jstring jstr) { const auto* str = env->GetStringUTFChars(jstr, nullptr); @@ -36,8 +36,8 @@ jlong Java_org_rocksdb_AbstractSlice_createNewSliceFromString(JNIEnv* env, const size_t len = strlen(str); // NOTE: buf will be deleted in the - // Java_org_rocksdb_Slice_disposeInternalBuf or - // or Java_org_rocksdb_DirectSlice_disposeInternalBuf methods + // Java_org_terarkdb_Slice_disposeInternalBuf or + // or Java_org_terarkdb_DirectSlice_disposeInternalBuf methods char* buf = new char[len + 1]; memcpy(buf, str, len); buf[len] = 0; @@ -48,33 +48,33 @@ jlong Java_org_rocksdb_AbstractSlice_createNewSliceFromString(JNIEnv* env, } /* - * Class: org_rocksdb_AbstractSlice + * Class: org_terarkdb_AbstractSlice * Method: size0 * Signature: (J)I */ -jint Java_org_rocksdb_AbstractSlice_size0(JNIEnv* /*env*/, jobject /*jobj*/, +jint Java_org_terarkdb_AbstractSlice_size0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { const auto* slice = reinterpret_cast(handle); return static_cast(slice->size()); } /* - * Class: org_rocksdb_AbstractSlice + * Class: org_terarkdb_AbstractSlice * Method: empty0 * Signature: (J)Z */ -jboolean Java_org_rocksdb_AbstractSlice_empty0(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_AbstractSlice_empty0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { const auto* slice = reinterpret_cast(handle); return slice->empty(); } /* - * Class: org_rocksdb_AbstractSlice + * Class: org_terarkdb_AbstractSlice * Method: toString0 * Signature: (JZ)Ljava/lang/String; */ -jstring Java_org_rocksdb_AbstractSlice_toString0(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_AbstractSlice_toString0(JNIEnv* env, jobject /*jobj*/, jlong handle, jboolean hex) { const auto* slice = reinterpret_cast(handle); const std::string s = slice->ToString(hex); @@ -82,11 +82,11 @@ jstring Java_org_rocksdb_AbstractSlice_toString0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_AbstractSlice + * Class: org_terarkdb_AbstractSlice * Method: compare0 * Signature: (JJ)I; */ -jint Java_org_rocksdb_AbstractSlice_compare0(JNIEnv* /*env*/, jobject /*jobj*/, +jint Java_org_terarkdb_AbstractSlice_compare0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jlong otherHandle) { const auto* slice = reinterpret_cast(handle); const auto* otherSlice = reinterpret_cast(otherHandle); @@ -94,11 +94,11 @@ jint Java_org_rocksdb_AbstractSlice_compare0(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_AbstractSlice + * Class: org_terarkdb_AbstractSlice * Method: startsWith0 * Signature: (JJ)Z; */ -jboolean Java_org_rocksdb_AbstractSlice_startsWith0(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_AbstractSlice_startsWith0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jlong otherHandle) { @@ -108,11 +108,11 @@ jboolean Java_org_rocksdb_AbstractSlice_startsWith0(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_AbstractSlice + * Class: org_terarkdb_AbstractSlice * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_AbstractSlice_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_AbstractSlice_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { delete reinterpret_cast(handle); @@ -120,19 +120,19 @@ void Java_org_rocksdb_AbstractSlice_disposeInternal(JNIEnv* /*env*/, // -// /* - * Class: org_rocksdb_Slice + * Class: org_terarkdb_Slice * Method: createNewSlice0 * Signature: ([BI)J */ -jlong Java_org_rocksdb_Slice_createNewSlice0(JNIEnv* env, jclass /*jcls*/, +jlong Java_org_terarkdb_Slice_createNewSlice0(JNIEnv* env, jclass /*jcls*/, jbyteArray data, jint offset) { const jsize dataSize = env->GetArrayLength(data); const int len = dataSize - offset; - // NOTE: buf will be deleted in the Java_org_rocksdb_Slice_disposeInternalBuf + // NOTE: buf will be deleted in the Java_org_terarkdb_Slice_disposeInternalBuf // method jbyte* buf = new jbyte[len]; env->GetByteArrayRegion(data, offset, len, buf); @@ -146,11 +146,11 @@ jlong Java_org_rocksdb_Slice_createNewSlice0(JNIEnv* env, jclass /*jcls*/, } /* - * Class: org_rocksdb_Slice + * Class: org_terarkdb_Slice * Method: createNewSlice1 * Signature: ([B)J */ -jlong Java_org_rocksdb_Slice_createNewSlice1(JNIEnv* env, jclass /*jcls*/, +jlong Java_org_terarkdb_Slice_createNewSlice1(JNIEnv* env, jclass /*jcls*/, jbyteArray data) { jbyte* ptrData = env->GetByteArrayElements(data, nullptr); if (ptrData == nullptr) { @@ -159,7 +159,7 @@ jlong Java_org_rocksdb_Slice_createNewSlice1(JNIEnv* env, jclass /*jcls*/, } const int len = env->GetArrayLength(data) + 1; - // NOTE: buf will be deleted in the Java_org_rocksdb_Slice_disposeInternalBuf + // NOTE: buf will be deleted in the Java_org_terarkdb_Slice_disposeInternalBuf // method char* buf = new char[len]; memcpy(buf, ptrData, len - 1); @@ -173,11 +173,11 @@ jlong Java_org_rocksdb_Slice_createNewSlice1(JNIEnv* env, jclass /*jcls*/, } /* - * Class: org_rocksdb_Slice + * Class: org_terarkdb_Slice * Method: data0 * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_Slice_data0(JNIEnv* env, jobject /*jobj*/, +jbyteArray Java_org_terarkdb_Slice_data0(JNIEnv* env, jobject /*jobj*/, jlong handle) { const auto* slice = reinterpret_cast(handle); const jsize len = static_cast(slice->size()); @@ -200,11 +200,11 @@ jbyteArray Java_org_rocksdb_Slice_data0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Slice + * Class: org_terarkdb_Slice * Method: clear0 * Signature: (JZJ)V */ -void Java_org_rocksdb_Slice_clear0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Slice_clear0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jboolean shouldRelease, jlong internalBufferOffset) { auto* slice = reinterpret_cast(handle); @@ -216,22 +216,22 @@ void Java_org_rocksdb_Slice_clear0(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Slice + * Class: org_terarkdb_Slice * Method: removePrefix0 * Signature: (JI)V */ -void Java_org_rocksdb_Slice_removePrefix0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Slice_removePrefix0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jint length) { auto* slice = reinterpret_cast(handle); slice->remove_prefix(length); } /* - * Class: org_rocksdb_Slice + * Class: org_terarkdb_Slice * Method: disposeInternalBuf * Signature: (JJ)V */ -void Java_org_rocksdb_Slice_disposeInternalBuf(JNIEnv* /*env*/, +void Java_org_terarkdb_Slice_disposeInternalBuf(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jlong internalBufferOffset) { const auto* slice = reinterpret_cast(handle); @@ -241,14 +241,14 @@ void Java_org_rocksdb_Slice_disposeInternalBuf(JNIEnv* /*env*/, // -// /* - * Class: org_rocksdb_DirectSlice + * Class: org_terarkdb_DirectSlice * Method: createNewDirectSlice0 * Signature: (Ljava/nio/ByteBuffer;I)J */ -jlong Java_org_rocksdb_DirectSlice_createNewDirectSlice0(JNIEnv* env, +jlong Java_org_terarkdb_DirectSlice_createNewDirectSlice0(JNIEnv* env, jclass /*jcls*/, jobject data, jint length) { @@ -268,11 +268,11 @@ jlong Java_org_rocksdb_DirectSlice_createNewDirectSlice0(JNIEnv* env, } /* - * Class: org_rocksdb_DirectSlice + * Class: org_terarkdb_DirectSlice * Method: createNewDirectSlice1 * Signature: (Ljava/nio/ByteBuffer;)J */ -jlong Java_org_rocksdb_DirectSlice_createNewDirectSlice1(JNIEnv* env, +jlong Java_org_terarkdb_DirectSlice_createNewDirectSlice1(JNIEnv* env, jclass /*jcls*/, jobject data) { void* data_addr = env->GetDirectBufferAddress(data); @@ -290,11 +290,11 @@ jlong Java_org_rocksdb_DirectSlice_createNewDirectSlice1(JNIEnv* env, } /* - * Class: org_rocksdb_DirectSlice + * Class: org_terarkdb_DirectSlice * Method: data0 * Signature: (J)Ljava/lang/Object; */ -jobject Java_org_rocksdb_DirectSlice_data0(JNIEnv* env, jobject /*jobj*/, +jobject Java_org_terarkdb_DirectSlice_data0(JNIEnv* env, jobject /*jobj*/, jlong handle) { const auto* slice = reinterpret_cast(handle); return env->NewDirectByteBuffer(const_cast(slice->data()), @@ -302,22 +302,22 @@ jobject Java_org_rocksdb_DirectSlice_data0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_DirectSlice + * Class: org_terarkdb_DirectSlice * Method: get0 * Signature: (JI)B */ -jbyte Java_org_rocksdb_DirectSlice_get0(JNIEnv* /*env*/, jobject /*jobj*/, +jbyte Java_org_terarkdb_DirectSlice_get0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jint offset) { const auto* slice = reinterpret_cast(handle); return (*slice)[offset]; } /* - * Class: org_rocksdb_DirectSlice + * Class: org_terarkdb_DirectSlice * Method: clear0 * Signature: (JZJ)V */ -void Java_org_rocksdb_DirectSlice_clear0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_DirectSlice_clear0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jboolean shouldRelease, jlong internalBufferOffset) { auto* slice = reinterpret_cast(handle); @@ -329,11 +329,11 @@ void Java_org_rocksdb_DirectSlice_clear0(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_DirectSlice + * Class: org_terarkdb_DirectSlice * Method: removePrefix0 * Signature: (JI)V */ -void Java_org_rocksdb_DirectSlice_removePrefix0(JNIEnv* /*env*/, +void Java_org_terarkdb_DirectSlice_removePrefix0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jint length) { auto* slice = reinterpret_cast(handle); @@ -341,11 +341,11 @@ void Java_org_rocksdb_DirectSlice_removePrefix0(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_DirectSlice + * Class: org_terarkdb_DirectSlice * Method: disposeInternalBuf * Signature: (JJ)V */ -void Java_org_rocksdb_DirectSlice_disposeInternalBuf( +void Java_org_terarkdb_DirectSlice_disposeInternalBuf( JNIEnv* /*env*/, jobject /*jobj*/, jlong handle, jlong internalBufferOffset) { const auto* slice = reinterpret_cast(handle); diff --git a/java/rocksjni/snapshot.cc b/java/rocksjni/snapshot.cc index bf274a69a9..098515dcc3 100644 --- a/java/rocksjni/snapshot.cc +++ b/java/rocksjni/snapshot.cc @@ -9,16 +9,16 @@ #include #include -#include "include/org_rocksdb_Snapshot.h" +#include "include/org_terarkdb_Snapshot.h" #include "rocksdb/db.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_Snapshot + * Class: org_terarkdb_Snapshot * Method: getSequenceNumber * Signature: (J)J */ -jlong Java_org_rocksdb_Snapshot_getSequenceNumber(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Snapshot_getSequenceNumber(JNIEnv* /*env*/, jobject /*jobj*/, jlong jsnapshot_handle) { auto* snapshot = reinterpret_cast(jsnapshot_handle); diff --git a/java/rocksjni/sst_file_manager.cc b/java/rocksjni/sst_file_manager.cc index f096108943..37c094e005 100644 --- a/java/rocksjni/sst_file_manager.cc +++ b/java/rocksjni/sst_file_manager.cc @@ -10,16 +10,16 @@ #include #include -#include "include/org_rocksdb_SstFileManager.h" +#include "include/org_terarkdb_SstFileManager.h" #include "rocksdb/sst_file_manager.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: newSstFileManager * Signature: (JJJDJ)J */ -jlong Java_org_rocksdb_SstFileManager_newSstFileManager( +jlong Java_org_terarkdb_SstFileManager_newSstFileManager( JNIEnv* jnienv, jclass /*jcls*/, jlong jenv_handle, jlong jlogger_handle, jlong jrate_bytes, jdouble jmax_trash_db_ratio, jlong jmax_delete_chunk_bytes) { @@ -52,11 +52,11 @@ jlong Java_org_rocksdb_SstFileManager_newSstFileManager( } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: setMaxAllowedSpaceUsage * Signature: (JJ)V */ -void Java_org_rocksdb_SstFileManager_setMaxAllowedSpaceUsage( +void Java_org_terarkdb_SstFileManager_setMaxAllowedSpaceUsage( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_allowed_space) { auto* sptr_sst_file_manager = @@ -65,11 +65,11 @@ void Java_org_rocksdb_SstFileManager_setMaxAllowedSpaceUsage( } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: setCompactionBufferSize * Signature: (JJ)V */ -void Java_org_rocksdb_SstFileManager_setCompactionBufferSize( +void Java_org_terarkdb_SstFileManager_setCompactionBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jcompaction_buffer_size) { auto* sptr_sst_file_manager = @@ -79,11 +79,11 @@ void Java_org_rocksdb_SstFileManager_setCompactionBufferSize( } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: isMaxAllowedSpaceReached * Signature: (J)Z */ -jboolean Java_org_rocksdb_SstFileManager_isMaxAllowedSpaceReached( +jboolean Java_org_terarkdb_SstFileManager_isMaxAllowedSpaceReached( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_sst_file_manager = reinterpret_cast*>(jhandle); @@ -91,12 +91,12 @@ jboolean Java_org_rocksdb_SstFileManager_isMaxAllowedSpaceReached( } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: isMaxAllowedSpaceReachedIncludingCompactions * Signature: (J)Z */ jboolean -Java_org_rocksdb_SstFileManager_isMaxAllowedSpaceReachedIncludingCompactions( +Java_org_terarkdb_SstFileManager_isMaxAllowedSpaceReachedIncludingCompactions( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_sst_file_manager = reinterpret_cast*>(jhandle); @@ -105,11 +105,11 @@ Java_org_rocksdb_SstFileManager_isMaxAllowedSpaceReachedIncludingCompactions( } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: getTotalSize * Signature: (J)J */ -jlong Java_org_rocksdb_SstFileManager_getTotalSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_SstFileManager_getTotalSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_sst_file_manager = @@ -118,11 +118,11 @@ jlong Java_org_rocksdb_SstFileManager_getTotalSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: getTrackedFiles * Signature: (J)Ljava/util/Map; */ -jobject Java_org_rocksdb_SstFileManager_getTrackedFiles(JNIEnv* env, +jobject Java_org_terarkdb_SstFileManager_getTrackedFiles(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* sptr_sst_file_manager = @@ -166,11 +166,11 @@ jobject Java_org_rocksdb_SstFileManager_getTrackedFiles(JNIEnv* env, } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: getDeleteRateBytesPerSecond * Signature: (J)J */ -jlong Java_org_rocksdb_SstFileManager_getDeleteRateBytesPerSecond( +jlong Java_org_terarkdb_SstFileManager_getDeleteRateBytesPerSecond( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_sst_file_manager = reinterpret_cast*>(jhandle); @@ -178,11 +178,11 @@ jlong Java_org_rocksdb_SstFileManager_getDeleteRateBytesPerSecond( } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: setDeleteRateBytesPerSecond * Signature: (JJ)V */ -void Java_org_rocksdb_SstFileManager_setDeleteRateBytesPerSecond( +void Java_org_terarkdb_SstFileManager_setDeleteRateBytesPerSecond( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jdelete_rate) { auto* sptr_sst_file_manager = reinterpret_cast*>(jhandle); @@ -190,11 +190,11 @@ void Java_org_rocksdb_SstFileManager_setDeleteRateBytesPerSecond( } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: getMaxTrashDBRatio * Signature: (J)D */ -jdouble Java_org_rocksdb_SstFileManager_getMaxTrashDBRatio(JNIEnv* /*env*/, +jdouble Java_org_terarkdb_SstFileManager_getMaxTrashDBRatio(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_sst_file_manager = @@ -203,11 +203,11 @@ jdouble Java_org_rocksdb_SstFileManager_getMaxTrashDBRatio(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: setMaxTrashDBRatio * Signature: (JD)V */ -void Java_org_rocksdb_SstFileManager_setMaxTrashDBRatio(JNIEnv* /*env*/, +void Java_org_terarkdb_SstFileManager_setMaxTrashDBRatio(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jdouble jratio) { @@ -217,11 +217,11 @@ void Java_org_rocksdb_SstFileManager_setMaxTrashDBRatio(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_SstFileManager + * Class: org_terarkdb_SstFileManager * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_SstFileManager_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_SstFileManager_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* sptr_sst_file_manager = diff --git a/java/rocksjni/sst_file_writerjni.cc b/java/rocksjni/sst_file_writerjni.cc index 0b820f7cf4..c576b62663 100644 --- a/java/rocksjni/sst_file_writerjni.cc +++ b/java/rocksjni/sst_file_writerjni.cc @@ -10,7 +10,7 @@ #include #include -#include "include/org_rocksdb_SstFileWriter.h" +#include "include/org_terarkdb_SstFileWriter.h" #include "rocksdb/comparator.h" #include "rocksdb/env.h" #include "rocksdb/options.h" @@ -18,11 +18,11 @@ #include "rocksjni/portal.h" /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: newSstFileWriter * Signature: (JJJB)J */ -jlong Java_org_rocksdb_SstFileWriter_newSstFileWriter__JJJB( +jlong Java_org_terarkdb_SstFileWriter_newSstFileWriter__JJJB( JNIEnv * /*env*/, jclass /*jcls*/, jlong jenvoptions, jlong joptions, jlong jcomparator_handle, jbyte jcomparator_type) { TERARKDB_NAMESPACE::Comparator *comparator = nullptr; @@ -53,11 +53,11 @@ jlong Java_org_rocksdb_SstFileWriter_newSstFileWriter__JJJB( } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: newSstFileWriter * Signature: (JJ)J */ -jlong Java_org_rocksdb_SstFileWriter_newSstFileWriter__JJ(JNIEnv * /*env*/, +jlong Java_org_terarkdb_SstFileWriter_newSstFileWriter__JJ(JNIEnv * /*env*/, jclass /*jcls*/, jlong jenvoptions, jlong joptions) { @@ -70,11 +70,11 @@ jlong Java_org_rocksdb_SstFileWriter_newSstFileWriter__JJ(JNIEnv * /*env*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: open * Signature: (JLjava/lang/String;)V */ -void Java_org_rocksdb_SstFileWriter_open(JNIEnv *env, jobject /*jobj*/, +void Java_org_terarkdb_SstFileWriter_open(JNIEnv *env, jobject /*jobj*/, jlong jhandle, jstring jfile_path) { const char *file_path = env->GetStringUTFChars(jfile_path, nullptr); if (file_path == nullptr) { @@ -91,11 +91,11 @@ void Java_org_rocksdb_SstFileWriter_open(JNIEnv *env, jobject /*jobj*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: put * Signature: (JJJ)V */ -void Java_org_rocksdb_SstFileWriter_put__JJJ(JNIEnv *env, jobject /*jobj*/, +void Java_org_terarkdb_SstFileWriter_put__JJJ(JNIEnv *env, jobject /*jobj*/, jlong jhandle, jlong jkey_handle, jlong jvalue_handle) { auto *key_slice = reinterpret_cast(jkey_handle); @@ -108,11 +108,11 @@ void Java_org_rocksdb_SstFileWriter_put__JJJ(JNIEnv *env, jobject /*jobj*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: put * Signature: (JJJ)V */ -void Java_org_rocksdb_SstFileWriter_put__J_3B_3B(JNIEnv *env, jobject /*jobj*/, +void Java_org_terarkdb_SstFileWriter_put__J_3B_3B(JNIEnv *env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jbyteArray jval) { jbyte *key = env->GetByteArrayElements(jkey, nullptr); @@ -144,11 +144,11 @@ void Java_org_rocksdb_SstFileWriter_put__J_3B_3B(JNIEnv *env, jobject /*jobj*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: merge * Signature: (JJJ)V */ -void Java_org_rocksdb_SstFileWriter_merge__JJJ(JNIEnv *env, jobject /*jobj*/, +void Java_org_terarkdb_SstFileWriter_merge__JJJ(JNIEnv *env, jobject /*jobj*/, jlong jhandle, jlong jkey_handle, jlong jvalue_handle) { auto *key_slice = reinterpret_cast(jkey_handle); @@ -162,11 +162,11 @@ void Java_org_rocksdb_SstFileWriter_merge__JJJ(JNIEnv *env, jobject /*jobj*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: merge * Signature: (J[B[B)V */ -void Java_org_rocksdb_SstFileWriter_merge__J_3B_3B(JNIEnv *env, +void Java_org_terarkdb_SstFileWriter_merge__J_3B_3B(JNIEnv *env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, @@ -201,11 +201,11 @@ void Java_org_rocksdb_SstFileWriter_merge__J_3B_3B(JNIEnv *env, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: delete * Signature: (JJJ)V */ -void Java_org_rocksdb_SstFileWriter_delete__J_3B(JNIEnv *env, jobject /*jobj*/, +void Java_org_terarkdb_SstFileWriter_delete__J_3B(JNIEnv *env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey) { jbyte *key = env->GetByteArrayElements(jkey, nullptr); @@ -227,11 +227,11 @@ void Java_org_rocksdb_SstFileWriter_delete__J_3B(JNIEnv *env, jobject /*jobj*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: delete * Signature: (JJJ)V */ -void Java_org_rocksdb_SstFileWriter_delete__JJ(JNIEnv *env, jobject /*jobj*/, +void Java_org_terarkdb_SstFileWriter_delete__JJ(JNIEnv *env, jobject /*jobj*/, jlong jhandle, jlong jkey_handle) { auto *key_slice = reinterpret_cast(jkey_handle); @@ -243,11 +243,11 @@ void Java_org_rocksdb_SstFileWriter_delete__JJ(JNIEnv *env, jobject /*jobj*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: finish * Signature: (J)V */ -void Java_org_rocksdb_SstFileWriter_finish(JNIEnv *env, jobject /*jobj*/, +void Java_org_terarkdb_SstFileWriter_finish(JNIEnv *env, jobject /*jobj*/, jlong jhandle) { TERARKDB_NAMESPACE::Status s = reinterpret_cast(jhandle)->Finish(); @@ -257,11 +257,11 @@ void Java_org_rocksdb_SstFileWriter_finish(JNIEnv *env, jobject /*jobj*/, } /* - * Class: org_rocksdb_SstFileWriter + * Class: org_terarkdb_SstFileWriter * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_SstFileWriter_disposeInternal(JNIEnv * /*env*/, +void Java_org_terarkdb_SstFileWriter_disposeInternal(JNIEnv * /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); diff --git a/java/rocksjni/statistics.cc b/java/rocksjni/statistics.cc index a31fb50bd3..749fe234eb 100644 --- a/java/rocksjni/statistics.cc +++ b/java/rocksjni/statistics.cc @@ -10,48 +10,48 @@ #include #include -#include "include/org_rocksdb_Statistics.h" +#include "include/org_terarkdb_Statistics.h" #include "rocksdb/statistics.h" #include "rocksjni/portal.h" #include "rocksjni/statisticsjni.h" /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: newStatistics * Signature: ()J */ -jlong Java_org_rocksdb_Statistics_newStatistics__(JNIEnv* env, jclass jcls) { - return Java_org_rocksdb_Statistics_newStatistics___3BJ(env, jcls, nullptr, 0); +jlong Java_org_terarkdb_Statistics_newStatistics__(JNIEnv* env, jclass jcls) { + return Java_org_terarkdb_Statistics_newStatistics___3BJ(env, jcls, nullptr, 0); } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: newStatistics * Signature: (J)J */ -jlong Java_org_rocksdb_Statistics_newStatistics__J( +jlong Java_org_terarkdb_Statistics_newStatistics__J( JNIEnv* env, jclass jcls, jlong jother_statistics_handle) { - return Java_org_rocksdb_Statistics_newStatistics___3BJ( + return Java_org_terarkdb_Statistics_newStatistics___3BJ( env, jcls, nullptr, jother_statistics_handle); } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: newStatistics * Signature: ([B)J */ -jlong Java_org_rocksdb_Statistics_newStatistics___3B(JNIEnv* env, jclass jcls, +jlong Java_org_terarkdb_Statistics_newStatistics___3B(JNIEnv* env, jclass jcls, jbyteArray jhistograms) { - return Java_org_rocksdb_Statistics_newStatistics___3BJ(env, jcls, jhistograms, + return Java_org_terarkdb_Statistics_newStatistics___3BJ(env, jcls, jhistograms, 0); } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: newStatistics * Signature: ([BJ)J */ -jlong Java_org_rocksdb_Statistics_newStatistics___3BJ( +jlong Java_org_terarkdb_Statistics_newStatistics___3BJ( JNIEnv* env, jclass /*jcls*/, jbyteArray jhistograms, jlong jother_statistics_handle) { std::shared_ptr* pSptr_other_statistics = nullptr; @@ -93,11 +93,11 @@ jlong Java_org_rocksdb_Statistics_newStatistics___3BJ( } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_Statistics_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_Statistics_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { if (jhandle > 0) { @@ -108,11 +108,11 @@ void Java_org_rocksdb_Statistics_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: statsLevel * Signature: (J)B */ -jbyte Java_org_rocksdb_Statistics_statsLevel(JNIEnv* /*env*/, jobject /*jobj*/, +jbyte Java_org_terarkdb_Statistics_statsLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* pSptr_statistics = reinterpret_cast*>(jhandle); @@ -122,11 +122,11 @@ jbyte Java_org_rocksdb_Statistics_statsLevel(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: setStatsLevel * Signature: (JB)V */ -void Java_org_rocksdb_Statistics_setStatsLevel(JNIEnv* /*env*/, +void Java_org_terarkdb_Statistics_setStatsLevel(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jstats_level) { auto* pSptr_statistics = @@ -137,11 +137,11 @@ void Java_org_rocksdb_Statistics_setStatsLevel(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: getTickerCount * Signature: (JB)J */ -jlong Java_org_rocksdb_Statistics_getTickerCount(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Statistics_getTickerCount(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jticker_type) { @@ -153,11 +153,11 @@ jlong Java_org_rocksdb_Statistics_getTickerCount(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: getAndResetTickerCount * Signature: (JB)J */ -jlong Java_org_rocksdb_Statistics_getAndResetTickerCount(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Statistics_getAndResetTickerCount(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jticker_type) { @@ -169,11 +169,11 @@ jlong Java_org_rocksdb_Statistics_getAndResetTickerCount(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: getHistogramData - * Signature: (JB)Lorg/rocksdb/HistogramData; + * Signature: (JB)Lorg/terarkdb/HistogramData; */ -jobject Java_org_rocksdb_Statistics_getHistogramData(JNIEnv* env, +jobject Java_org_terarkdb_Statistics_getHistogramData(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyte jhistogram_type) { @@ -206,11 +206,11 @@ jobject Java_org_rocksdb_Statistics_getHistogramData(JNIEnv* env, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: getHistogramString * Signature: (JB)Ljava/lang/String; */ -jstring Java_org_rocksdb_Statistics_getHistogramString(JNIEnv* env, +jstring Java_org_terarkdb_Statistics_getHistogramString(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyte jhistogram_type) { @@ -223,11 +223,11 @@ jstring Java_org_rocksdb_Statistics_getHistogramString(JNIEnv* env, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: reset * Signature: (J)V */ -void Java_org_rocksdb_Statistics_reset(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Statistics_reset(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* pSptr_statistics = reinterpret_cast*>(jhandle); @@ -239,11 +239,11 @@ void Java_org_rocksdb_Statistics_reset(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Statistics + * Class: org_terarkdb_Statistics * Method: toString * Signature: (J)Ljava/lang/String; */ -jstring Java_org_rocksdb_Statistics_toString(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_Statistics_toString(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* pSptr_statistics = reinterpret_cast*>(jhandle); diff --git a/java/rocksjni/table.cc b/java/rocksjni/table.cc index 83f0757a95..6845090900 100644 --- a/java/rocksjni/table.cc +++ b/java/rocksjni/table.cc @@ -7,17 +7,17 @@ #include "rocksdb/table.h" #include -#include "include/org_rocksdb_BlockBasedTableConfig.h" -#include "include/org_rocksdb_PlainTableConfig.h" +#include "include/org_terarkdb_BlockBasedTableConfig.h" +#include "include/org_terarkdb_PlainTableConfig.h" #include "rocksdb/cache.h" #include "rocksdb/filter_policy.h" /* - * Class: org_rocksdb_PlainTableConfig + * Class: org_terarkdb_PlainTableConfig * Method: newTableFactoryHandle * Signature: (IIDIIBZZ)J */ -jlong Java_org_rocksdb_PlainTableConfig_newTableFactoryHandle( +jlong Java_org_terarkdb_PlainTableConfig_newTableFactoryHandle( JNIEnv * /*env*/, jobject /*jobj*/, jint jkey_size, jint jbloom_bits_per_key, jdouble jhash_table_ratio, jint jindex_sparseness, jint jhuge_page_tlb_size, jbyte jencoding_type, jboolean jfull_scan_mode, @@ -35,11 +35,11 @@ jlong Java_org_rocksdb_PlainTableConfig_newTableFactoryHandle( } /* - * Class: org_rocksdb_BlockBasedTableConfig + * Class: org_terarkdb_BlockBasedTableConfig * Method: newTableFactoryHandle * Signature: (ZJIJJIIZJZZZZJZZJIBBI)J */ -jlong Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle( +jlong Java_org_terarkdb_BlockBasedTableConfig_newTableFactoryHandle( JNIEnv * /*env*/, jobject /*jobj*/, jboolean no_block_cache, jlong block_cache_size, jint block_cache_num_shardbits, jlong jblock_cache, jlong block_size, jint block_size_deviation, jint block_restart_interval, diff --git a/java/rocksjni/transaction.cc b/java/rocksjni/transaction.cc index 86fecd777a..0b17412b63 100644 --- a/java/rocksjni/transaction.cc +++ b/java/rocksjni/transaction.cc @@ -9,7 +9,7 @@ #include #include -#include "include/org_rocksdb_Transaction.h" +#include "include/org_terarkdb_Transaction.h" #include "rocksdb/utilities/transaction.h" #include "rocksjni/portal.h" @@ -23,33 +23,33 @@ using namespace std::placeholders; #endif /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setSnapshot * Signature: (J)V */ -void Java_org_rocksdb_Transaction_setSnapshot(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_setSnapshot(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); txn->SetSnapshot(); } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setSnapshotOnNextOperation * Signature: (J)V */ -void Java_org_rocksdb_Transaction_setSnapshotOnNextOperation__J( +void Java_org_terarkdb_Transaction_setSnapshotOnNextOperation__J( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); txn->SetSnapshotOnNextOperation(nullptr); } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setSnapshotOnNextOperation * Signature: (JJ)V */ -void Java_org_rocksdb_Transaction_setSnapshotOnNextOperation__JJ( +void Java_org_terarkdb_Transaction_setSnapshotOnNextOperation__JJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jtxn_notifier_handle) { auto* txn = reinterpret_cast(jhandle); @@ -60,11 +60,11 @@ void Java_org_rocksdb_Transaction_setSnapshotOnNextOperation__JJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getSnapshot * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getSnapshot(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getSnapshot(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -73,11 +73,11 @@ jlong Java_org_rocksdb_Transaction_getSnapshot(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: clearSnapshot * Signature: (J)V */ -void Java_org_rocksdb_Transaction_clearSnapshot(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_clearSnapshot(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -85,11 +85,11 @@ void Java_org_rocksdb_Transaction_clearSnapshot(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: prepare * Signature: (J)V */ -void Java_org_rocksdb_Transaction_prepare(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_prepare(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); TERARKDB_NAMESPACE::Status s = txn->Prepare(); @@ -99,11 +99,11 @@ void Java_org_rocksdb_Transaction_prepare(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: commit * Signature: (J)V */ -void Java_org_rocksdb_Transaction_commit(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_commit(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); TERARKDB_NAMESPACE::Status s = txn->Commit(); @@ -113,11 +113,11 @@ void Java_org_rocksdb_Transaction_commit(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: rollback * Signature: (J)V */ -void Java_org_rocksdb_Transaction_rollback(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_rollback(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); TERARKDB_NAMESPACE::Status s = txn->Rollback(); @@ -127,11 +127,11 @@ void Java_org_rocksdb_Transaction_rollback(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setSavePoint * Signature: (J)V */ -void Java_org_rocksdb_Transaction_setSavePoint(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_setSavePoint(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -139,11 +139,11 @@ void Java_org_rocksdb_Transaction_setSavePoint(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: rollbackToSavePoint * Signature: (J)V */ -void Java_org_rocksdb_Transaction_rollbackToSavePoint(JNIEnv* env, +void Java_org_terarkdb_Transaction_rollbackToSavePoint(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -202,11 +202,11 @@ jbyteArray txn_get_helper(JNIEnv* env, const FnGet& fn_get, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: get * Signature: (JJ[BIJ)[B */ -jbyteArray Java_org_rocksdb_Transaction_get__JJ_3BIJ( +jbyteArray Java_org_terarkdb_Transaction_get__JJ_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jbyteArray jkey, jint jkey_part_len, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -220,11 +220,11 @@ jbyteArray Java_org_rocksdb_Transaction_get__JJ_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: get * Signature: (JJ[BI)[B */ -jbyteArray Java_org_rocksdb_Transaction_get__JJ_3BI( +jbyteArray Java_org_terarkdb_Transaction_get__JJ_3BI( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jbyteArray jkey, jint jkey_part_len) { auto* txn = reinterpret_cast(jhandle); @@ -371,11 +371,11 @@ jobjectArray txn_multi_get_helper(JNIEnv* env, const FnMultiGet& fn_multi_get, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: multiGet * Signature: (JJ[[B[J)[[B */ -jobjectArray Java_org_rocksdb_Transaction_multiGet__JJ_3_3B_3J( +jobjectArray Java_org_terarkdb_Transaction_multiGet__JJ_3_3B_3J( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jobjectArray jkey_parts, jlongArray jcolumn_family_handles) { bool has_exception = false; @@ -398,11 +398,11 @@ jobjectArray Java_org_rocksdb_Transaction_multiGet__JJ_3_3B_3J( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: multiGet * Signature: (JJ[[B)[[B */ -jobjectArray Java_org_rocksdb_Transaction_multiGet__JJ_3_3B( +jobjectArray Java_org_terarkdb_Transaction_multiGet__JJ_3_3B( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jobjectArray jkey_parts) { auto* txn = reinterpret_cast(jhandle); @@ -416,11 +416,11 @@ jobjectArray Java_org_rocksdb_Transaction_multiGet__JJ_3_3B( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getForUpdate * Signature: (JJ[BIJZ)[B */ -jbyteArray Java_org_rocksdb_Transaction_getForUpdate__JJ_3BIJZ( +jbyteArray Java_org_terarkdb_Transaction_getForUpdate__JJ_3BIJZ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jbyteArray jkey, jint jkey_part_len, jlong jcolumn_family_handle, jboolean jexclusive) { @@ -437,11 +437,11 @@ jbyteArray Java_org_rocksdb_Transaction_getForUpdate__JJ_3BIJZ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getForUpdate * Signature: (JJ[BIZ)[B */ -jbyteArray Java_org_rocksdb_Transaction_getForUpdate__JJ_3BIZ( +jbyteArray Java_org_terarkdb_Transaction_getForUpdate__JJ_3BIZ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jbyteArray jkey, jint jkey_part_len, jboolean jexclusive) { auto* txn = reinterpret_cast(jhandle); @@ -453,11 +453,11 @@ jbyteArray Java_org_rocksdb_Transaction_getForUpdate__JJ_3BIZ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: multiGetForUpdate * Signature: (JJ[[B[J)[[B */ -jobjectArray Java_org_rocksdb_Transaction_multiGetForUpdate__JJ_3_3B_3J( +jobjectArray Java_org_terarkdb_Transaction_multiGetForUpdate__JJ_3_3B_3J( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jobjectArray jkey_parts, jlongArray jcolumn_family_handles) { bool has_exception = false; @@ -480,11 +480,11 @@ jobjectArray Java_org_rocksdb_Transaction_multiGetForUpdate__JJ_3_3B_3J( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: multiGetForUpdate * Signature: (JJ[[B)[[B */ -jobjectArray Java_org_rocksdb_Transaction_multiGetForUpdate__JJ_3_3B( +jobjectArray Java_org_terarkdb_Transaction_multiGetForUpdate__JJ_3_3B( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jobjectArray jkey_parts) { auto* txn = reinterpret_cast(jhandle); @@ -498,11 +498,11 @@ jobjectArray Java_org_rocksdb_Transaction_multiGetForUpdate__JJ_3_3B( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getIterator * Signature: (JJ)J */ -jlong Java_org_rocksdb_Transaction_getIterator__JJ(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getIterator__JJ(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle) { @@ -513,11 +513,11 @@ jlong Java_org_rocksdb_Transaction_getIterator__JJ(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getIterator * Signature: (JJJ)J */ -jlong Java_org_rocksdb_Transaction_getIterator__JJJ( +jlong Java_org_terarkdb_Transaction_getIterator__JJJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jread_options_handle, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -566,11 +566,11 @@ void txn_write_kv_helper(JNIEnv* env, const FnWriteKV& fn_write_kv, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: put * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_Transaction_put__J_3BI_3BIJ( +void Java_org_terarkdb_Transaction_put__J_3BI_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, jint jval_len, jlong jcolumn_family_handle) { @@ -585,11 +585,11 @@ void Java_org_rocksdb_Transaction_put__J_3BI_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: put * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_Transaction_put__J_3BI_3BI(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_put__J_3BI_3BI(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, @@ -704,11 +704,11 @@ void txn_write_kv_parts_helper(JNIEnv* env, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: put * Signature: (J[[BI[[BIJ)V */ -void Java_org_rocksdb_Transaction_put__J_3_3BI_3_3BIJ( +void Java_org_terarkdb_Transaction_put__J_3_3BI_3_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len, jobjectArray jvalue_parts, jint jvalue_parts_len, jlong jcolumn_family_handle) { @@ -725,11 +725,11 @@ void Java_org_rocksdb_Transaction_put__J_3_3BI_3_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: put * Signature: (J[[BI[[BI)V */ -void Java_org_rocksdb_Transaction_put__J_3_3BI_3_3BI( +void Java_org_terarkdb_Transaction_put__J_3_3BI_3_3BI( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len, jobjectArray jvalue_parts, jint jvalue_parts_len) { auto* txn = reinterpret_cast(jhandle); @@ -742,11 +742,11 @@ void Java_org_rocksdb_Transaction_put__J_3_3BI_3_3BI( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: merge * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_Transaction_merge__J_3BI_3BIJ( +void Java_org_terarkdb_Transaction_merge__J_3BI_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, jint jval_len, jlong jcolumn_family_handle) { @@ -761,11 +761,11 @@ void Java_org_rocksdb_Transaction_merge__J_3BI_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: merge * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_Transaction_merge__J_3BI_3BI( +void Java_org_terarkdb_Transaction_merge__J_3BI_3BI( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, jint jval_len) { auto* txn = reinterpret_cast(jhandle); @@ -801,11 +801,11 @@ void txn_write_k_helper(JNIEnv* env, const FnWriteK& fn_write_k, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: delete * Signature: (J[BIJ)V */ -void Java_org_rocksdb_Transaction_delete__J_3BIJ(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_delete__J_3BIJ(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jlong jcolumn_family_handle) { @@ -819,11 +819,11 @@ void Java_org_rocksdb_Transaction_delete__J_3BIJ(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: delete * Signature: (J[BI)V */ -void Java_org_rocksdb_Transaction_delete__J_3BI(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_delete__J_3BI(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len) { auto* txn = reinterpret_cast(jhandle); @@ -890,11 +890,11 @@ void txn_write_k_parts_helper(JNIEnv* env, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: delete * Signature: (J[[BIJ)V */ -void Java_org_rocksdb_Transaction_delete__J_3_3BIJ( +void Java_org_terarkdb_Transaction_delete__J_3_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -908,11 +908,11 @@ void Java_org_rocksdb_Transaction_delete__J_3_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: delete * Signature: (J[[BI)V */ -void Java_org_rocksdb_Transaction_delete__J_3_3BI(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_delete__J_3_3BI(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len) { @@ -924,11 +924,11 @@ void Java_org_rocksdb_Transaction_delete__J_3_3BI(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: singleDelete * Signature: (J[BIJ)V */ -void Java_org_rocksdb_Transaction_singleDelete__J_3BIJ( +void Java_org_terarkdb_Transaction_singleDelete__J_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -942,11 +942,11 @@ void Java_org_rocksdb_Transaction_singleDelete__J_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: singleDelete * Signature: (J[BI)V */ -void Java_org_rocksdb_Transaction_singleDelete__J_3BI(JNIEnv* env, +void Java_org_terarkdb_Transaction_singleDelete__J_3BI(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, @@ -959,11 +959,11 @@ void Java_org_rocksdb_Transaction_singleDelete__J_3BI(JNIEnv* env, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: singleDelete * Signature: (J[[BIJ)V */ -void Java_org_rocksdb_Transaction_singleDelete__J_3_3BIJ( +void Java_org_terarkdb_Transaction_singleDelete__J_3_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -978,11 +978,11 @@ void Java_org_rocksdb_Transaction_singleDelete__J_3_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: singleDelete * Signature: (J[[BI)V */ -void Java_org_rocksdb_Transaction_singleDelete__J_3_3BI(JNIEnv* env, +void Java_org_terarkdb_Transaction_singleDelete__J_3_3BI(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, @@ -996,11 +996,11 @@ void Java_org_rocksdb_Transaction_singleDelete__J_3_3BI(JNIEnv* env, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: putUntracked * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_Transaction_putUntracked__J_3BI_3BIJ( +void Java_org_terarkdb_Transaction_putUntracked__J_3BI_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, jint jval_len, jlong jcolumn_family_handle) { @@ -1016,11 +1016,11 @@ void Java_org_rocksdb_Transaction_putUntracked__J_3BI_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: putUntracked * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_Transaction_putUntracked__J_3BI_3BI( +void Java_org_terarkdb_Transaction_putUntracked__J_3BI_3BI( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, jint jval_len) { auto* txn = reinterpret_cast(jhandle); @@ -1032,11 +1032,11 @@ void Java_org_rocksdb_Transaction_putUntracked__J_3BI_3BI( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: putUntracked * Signature: (J[[BI[[BIJ)V */ -void Java_org_rocksdb_Transaction_putUntracked__J_3_3BI_3_3BIJ( +void Java_org_terarkdb_Transaction_putUntracked__J_3_3BI_3_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len, jobjectArray jvalue_parts, jint jvalue_parts_len, jlong jcolumn_family_handle) { @@ -1053,11 +1053,11 @@ void Java_org_rocksdb_Transaction_putUntracked__J_3_3BI_3_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: putUntracked * Signature: (J[[BI[[BI)V */ -void Java_org_rocksdb_Transaction_putUntracked__J_3_3BI_3_3BI( +void Java_org_terarkdb_Transaction_putUntracked__J_3_3BI_3_3BI( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len, jobjectArray jvalue_parts, jint jvalue_parts_len) { auto* txn = reinterpret_cast(jhandle); @@ -1070,11 +1070,11 @@ void Java_org_rocksdb_Transaction_putUntracked__J_3_3BI_3_3BI( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: mergeUntracked * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_Transaction_mergeUntracked__J_3BI_3BIJ( +void Java_org_terarkdb_Transaction_mergeUntracked__J_3BI_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, jint jval_len, jlong jcolumn_family_handle) { @@ -1090,11 +1090,11 @@ void Java_org_rocksdb_Transaction_mergeUntracked__J_3BI_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: mergeUntracked * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_Transaction_mergeUntracked__J_3BI_3BI( +void Java_org_terarkdb_Transaction_mergeUntracked__J_3BI_3BI( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jbyteArray jval, jint jval_len) { auto* txn = reinterpret_cast(jhandle); @@ -1106,11 +1106,11 @@ void Java_org_rocksdb_Transaction_mergeUntracked__J_3BI_3BI( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: deleteUntracked * Signature: (J[BIJ)V */ -void Java_org_rocksdb_Transaction_deleteUntracked__J_3BIJ( +void Java_org_terarkdb_Transaction_deleteUntracked__J_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -1125,11 +1125,11 @@ void Java_org_rocksdb_Transaction_deleteUntracked__J_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: deleteUntracked * Signature: (J[BI)V */ -void Java_org_rocksdb_Transaction_deleteUntracked__J_3BI(JNIEnv* env, +void Java_org_terarkdb_Transaction_deleteUntracked__J_3BI(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, @@ -1142,11 +1142,11 @@ void Java_org_rocksdb_Transaction_deleteUntracked__J_3BI(JNIEnv* env, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: deleteUntracked * Signature: (J[[BIJ)V */ -void Java_org_rocksdb_Transaction_deleteUntracked__J_3_3BIJ( +void Java_org_terarkdb_Transaction_deleteUntracked__J_3_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -1162,11 +1162,11 @@ void Java_org_rocksdb_Transaction_deleteUntracked__J_3_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: deleteUntracked * Signature: (J[[BI)V */ -void Java_org_rocksdb_Transaction_deleteUntracked__J_3_3BI( +void Java_org_terarkdb_Transaction_deleteUntracked__J_3_3BI( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jobjectArray jkey_parts, jint jkey_parts_len) { auto* txn = reinterpret_cast(jhandle); @@ -1178,11 +1178,11 @@ void Java_org_rocksdb_Transaction_deleteUntracked__J_3_3BI( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: putLogData * Signature: (J[BI)V */ -void Java_org_rocksdb_Transaction_putLogData(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_putLogData(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len) { auto* txn = reinterpret_cast(jhandle); @@ -1203,11 +1203,11 @@ void Java_org_rocksdb_Transaction_putLogData(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: disableIndexing * Signature: (J)V */ -void Java_org_rocksdb_Transaction_disableIndexing(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_disableIndexing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1215,11 +1215,11 @@ void Java_org_rocksdb_Transaction_disableIndexing(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: enableIndexing * Signature: (J)V */ -void Java_org_rocksdb_Transaction_enableIndexing(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_enableIndexing(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1227,33 +1227,33 @@ void Java_org_rocksdb_Transaction_enableIndexing(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getNumKeys * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getNumKeys(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Transaction_getNumKeys(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); return txn->GetNumKeys(); } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getNumPuts * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getNumPuts(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Transaction_getNumPuts(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); return txn->GetNumPuts(); } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getNumDeletes * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getNumDeletes(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getNumDeletes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1261,11 +1261,11 @@ jlong Java_org_rocksdb_Transaction_getNumDeletes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getNumMerges * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getNumMerges(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getNumMerges(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1273,11 +1273,11 @@ jlong Java_org_rocksdb_Transaction_getNumMerges(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getElapsedTime * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getElapsedTime(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getElapsedTime(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1285,11 +1285,11 @@ jlong Java_org_rocksdb_Transaction_getElapsedTime(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getWriteBatch * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getWriteBatch(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getWriteBatch(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1297,11 +1297,11 @@ jlong Java_org_rocksdb_Transaction_getWriteBatch(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setLockTimeout * Signature: (JJ)V */ -void Java_org_rocksdb_Transaction_setLockTimeout(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_setLockTimeout(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jlock_timeout) { @@ -1310,11 +1310,11 @@ void Java_org_rocksdb_Transaction_setLockTimeout(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getWriteOptions * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getWriteOptions(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getWriteOptions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1322,11 +1322,11 @@ jlong Java_org_rocksdb_Transaction_getWriteOptions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setWriteOptions * Signature: (JJ)V */ -void Java_org_rocksdb_Transaction_setWriteOptions(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_setWriteOptions(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle) { @@ -1337,11 +1337,11 @@ void Java_org_rocksdb_Transaction_setWriteOptions(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: undo * Signature: (J[BIJ)V */ -void Java_org_rocksdb_Transaction_undoGetForUpdate__J_3BIJ( +void Java_org_terarkdb_Transaction_undoGetForUpdate__J_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, jint jkey_part_len, jlong jcolumn_family_handle) { auto* txn = reinterpret_cast(jhandle); @@ -1360,11 +1360,11 @@ void Java_org_rocksdb_Transaction_undoGetForUpdate__J_3BIJ( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: undoGetForUpdate * Signature: (J[BI)V */ -void Java_org_rocksdb_Transaction_undoGetForUpdate__J_3BI(JNIEnv* env, +void Java_org_terarkdb_Transaction_undoGetForUpdate__J_3BI(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jbyteArray jkey, @@ -1383,11 +1383,11 @@ void Java_org_rocksdb_Transaction_undoGetForUpdate__J_3BI(JNIEnv* env, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: rebuildFromWriteBatch * Signature: (JJ)V */ -void Java_org_rocksdb_Transaction_rebuildFromWriteBatch( +void Java_org_terarkdb_Transaction_rebuildFromWriteBatch( JNIEnv* env, jobject /*jobj*/, jlong jhandle, jlong jwrite_batch_handle) { auto* txn = reinterpret_cast(jhandle); auto* write_batch = @@ -1399,11 +1399,11 @@ void Java_org_rocksdb_Transaction_rebuildFromWriteBatch( } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getCommitTimeWriteBatch * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getCommitTimeWriteBatch(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getCommitTimeWriteBatch(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1411,11 +1411,11 @@ jlong Java_org_rocksdb_Transaction_getCommitTimeWriteBatch(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setLogNumber * Signature: (JJ)V */ -void Java_org_rocksdb_Transaction_setLogNumber(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_setLogNumber(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jlog_number) { auto* txn = reinterpret_cast(jhandle); @@ -1423,11 +1423,11 @@ void Java_org_rocksdb_Transaction_setLogNumber(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getLogNumber * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getLogNumber(JNIEnv* /*env*/, +jlong Java_org_terarkdb_Transaction_getLogNumber(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1435,11 +1435,11 @@ jlong Java_org_rocksdb_Transaction_getLogNumber(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: setName * Signature: (JLjava/lang/String;)V */ -void Java_org_rocksdb_Transaction_setName(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_Transaction_setName(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jname) { auto* txn = reinterpret_cast(jhandle); const char* name = env->GetStringUTFChars(jname, nullptr); @@ -1458,11 +1458,11 @@ void Java_org_rocksdb_Transaction_setName(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getName * Signature: (J)Ljava/lang/String; */ -jstring Java_org_rocksdb_Transaction_getName(JNIEnv* env, jobject /*jobj*/, +jstring Java_org_terarkdb_Transaction_getName(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); TERARKDB_NAMESPACE::TransactionName name = txn->GetName(); @@ -1470,11 +1470,11 @@ jstring Java_org_rocksdb_Transaction_getName(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getID * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getID(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Transaction_getID(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); TERARKDB_NAMESPACE::TransactionID id = txn->GetID(); @@ -1482,11 +1482,11 @@ jlong Java_org_rocksdb_Transaction_getID(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: isDeadlockDetect * Signature: (J)Z */ -jboolean Java_org_rocksdb_Transaction_isDeadlockDetect(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_Transaction_isDeadlockDetect(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1494,11 +1494,11 @@ jboolean Java_org_rocksdb_Transaction_isDeadlockDetect(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getWaitingTxns - * Signature: (J)Lorg/rocksdb/Transaction/WaitingTransactions; + * Signature: (J)Lorg/terarkdb/Transaction/WaitingTransactions; */ -jobject Java_org_rocksdb_Transaction_getWaitingTxns(JNIEnv* env, +jobject Java_org_terarkdb_Transaction_getWaitingTxns(JNIEnv* env, jobject jtransaction_obj, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); @@ -1512,11 +1512,11 @@ jobject Java_org_rocksdb_Transaction_getWaitingTxns(JNIEnv* env, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getState * Signature: (J)B */ -jbyte Java_org_rocksdb_Transaction_getState(JNIEnv* /*env*/, jobject /*jobj*/, +jbyte Java_org_terarkdb_Transaction_getState(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); TERARKDB_NAMESPACE::Transaction::TransactionState txn_status = txn->GetState(); @@ -1551,11 +1551,11 @@ jbyte Java_org_rocksdb_Transaction_getState(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: getId * Signature: (J)J */ -jlong Java_org_rocksdb_Transaction_getId(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_Transaction_getId(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* txn = reinterpret_cast(jhandle); uint64_t id = txn->GetId(); @@ -1563,11 +1563,11 @@ jlong Java_org_rocksdb_Transaction_getId(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_Transaction + * Class: org_terarkdb_Transaction * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_Transaction_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_Transaction_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); diff --git a/java/rocksjni/transaction_db.cc b/java/rocksjni/transaction_db.cc index 0a0e840344..e71258ac62 100644 --- a/java/rocksjni/transaction_db.cc +++ b/java/rocksjni/transaction_db.cc @@ -11,7 +11,7 @@ #include #include -#include "include/org_rocksdb_TransactionDB.h" +#include "include/org_terarkdb_TransactionDB.h" #include "rocksdb/options.h" #include "rocksdb/utilities/transaction.h" @@ -20,11 +20,11 @@ #include "rocksjni/portal.h" /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: open * Signature: (JJLjava/lang/String;)J */ -jlong Java_org_rocksdb_TransactionDB_open__JJLjava_lang_String_2( +jlong Java_org_terarkdb_TransactionDB_open__JJLjava_lang_String_2( JNIEnv* env, jclass /*jcls*/, jlong joptions_handle, jlong jtxn_db_options_handle, jstring jdb_path) { auto* options = reinterpret_cast(joptions_handle); @@ -49,11 +49,11 @@ jlong Java_org_rocksdb_TransactionDB_open__JJLjava_lang_String_2( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: open * Signature: (JJLjava/lang/String;[[B[J)[J */ -jlongArray Java_org_rocksdb_TransactionDB_open__JJLjava_lang_String_2_3_3B_3J( +jlongArray Java_org_terarkdb_TransactionDB_open__JJLjava_lang_String_2_3_3B_3J( JNIEnv* env, jclass /*jcls*/, jlong jdb_options_handle, jlong jtxn_db_options_handle, jstring jdb_path, jobjectArray jcolumn_names, jlongArray jcolumn_options_handles) { @@ -152,11 +152,11 @@ jlongArray Java_org_rocksdb_TransactionDB_open__JJLjava_lang_String_2_3_3B_3J( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: beginTransaction * Signature: (JJ)J */ -jlong Java_org_rocksdb_TransactionDB_beginTransaction__JJ( +jlong Java_org_terarkdb_TransactionDB_beginTransaction__JJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle) { auto* txn_db = reinterpret_cast(jhandle); @@ -167,11 +167,11 @@ jlong Java_org_rocksdb_TransactionDB_beginTransaction__JJ( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: beginTransaction * Signature: (JJJ)J */ -jlong Java_org_rocksdb_TransactionDB_beginTransaction__JJJ( +jlong Java_org_terarkdb_TransactionDB_beginTransaction__JJJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle, jlong jtxn_options_handle) { auto* txn_db = reinterpret_cast(jhandle); @@ -185,11 +185,11 @@ jlong Java_org_rocksdb_TransactionDB_beginTransaction__JJJ( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: beginTransaction_withOld * Signature: (JJJ)J */ -jlong Java_org_rocksdb_TransactionDB_beginTransaction_1withOld__JJJ( +jlong Java_org_terarkdb_TransactionDB_beginTransaction_1withOld__JJJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle, jlong jold_txn_handle) { auto* txn_db = reinterpret_cast(jhandle); @@ -209,11 +209,11 @@ jlong Java_org_rocksdb_TransactionDB_beginTransaction_1withOld__JJJ( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: beginTransaction_withOld * Signature: (JJJJ)J */ -jlong Java_org_rocksdb_TransactionDB_beginTransaction_1withOld__JJJJ( +jlong Java_org_terarkdb_TransactionDB_beginTransaction_1withOld__JJJJ( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jwrite_options_handle, jlong jtxn_options_handle, jlong jold_txn_handle) { @@ -235,11 +235,11 @@ jlong Java_org_rocksdb_TransactionDB_beginTransaction_1withOld__JJJJ( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: getTransactionByName * Signature: (JLjava/lang/String;)J */ -jlong Java_org_rocksdb_TransactionDB_getTransactionByName(JNIEnv* env, +jlong Java_org_terarkdb_TransactionDB_getTransactionByName(JNIEnv* env, jobject /*jobj*/, jlong jhandle, jstring jname) { @@ -255,11 +255,11 @@ jlong Java_org_rocksdb_TransactionDB_getTransactionByName(JNIEnv* env, } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: getAllPreparedTransactions * Signature: (J)[J */ -jlongArray Java_org_rocksdb_TransactionDB_getAllPreparedTransactions( +jlongArray Java_org_terarkdb_TransactionDB_getAllPreparedTransactions( JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* txn_db = reinterpret_cast(jhandle); std::vector txns; @@ -290,11 +290,11 @@ jlongArray Java_org_rocksdb_TransactionDB_getAllPreparedTransactions( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: getLockStatusData * Signature: (J)Ljava/util/Map; */ -jobject Java_org_rocksdb_TransactionDB_getLockStatusData(JNIEnv* env, +jobject Java_org_terarkdb_TransactionDB_getLockStatusData(JNIEnv* env, jobject /*jobj*/, jlong jhandle) { auto* txn_db = reinterpret_cast(jhandle); @@ -340,11 +340,11 @@ jobject Java_org_rocksdb_TransactionDB_getLockStatusData(JNIEnv* env, } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: getDeadlockInfoBuffer - * Signature: (J)[Lorg/rocksdb/TransactionDB/DeadlockPath; + * Signature: (J)[Lorg/terarkdb/TransactionDB/DeadlockPath; */ -jobjectArray Java_org_rocksdb_TransactionDB_getDeadlockInfoBuffer( +jobjectArray Java_org_terarkdb_TransactionDB_getDeadlockInfoBuffer( JNIEnv* env, jobject jobj, jlong jhandle) { auto* txn_db = reinterpret_cast(jhandle); const std::vector deadlock_info_buffer = @@ -422,11 +422,11 @@ jobjectArray Java_org_rocksdb_TransactionDB_getDeadlockInfoBuffer( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: setDeadlockInfoBufferSize * Signature: (JI)V */ -void Java_org_rocksdb_TransactionDB_setDeadlockInfoBufferSize( +void Java_org_terarkdb_TransactionDB_setDeadlockInfoBufferSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jint jdeadlock_info_buffer_size) { auto* txn_db = reinterpret_cast(jhandle); @@ -434,11 +434,11 @@ void Java_org_rocksdb_TransactionDB_setDeadlockInfoBufferSize( } /* - * Class: org_rocksdb_TransactionDB + * Class: org_terarkdb_TransactionDB * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_TransactionDB_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionDB_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); diff --git a/java/rocksjni/transaction_db_options.cc b/java/rocksjni/transaction_db_options.cc index b5b3c1f69f..56deda0bf7 100644 --- a/java/rocksjni/transaction_db_options.cc +++ b/java/rocksjni/transaction_db_options.cc @@ -8,29 +8,29 @@ #include -#include "include/org_rocksdb_TransactionDBOptions.h" +#include "include/org_terarkdb_TransactionDBOptions.h" #include "rocksdb/utilities/transaction_db.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: newTransactionDBOptions * Signature: ()J */ -jlong Java_org_rocksdb_TransactionDBOptions_newTransactionDBOptions( +jlong Java_org_terarkdb_TransactionDBOptions_newTransactionDBOptions( JNIEnv* /*env*/, jclass /*jcls*/) { TERARKDB_NAMESPACE::TransactionDBOptions* opts = new TERARKDB_NAMESPACE::TransactionDBOptions(); return reinterpret_cast(opts); } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: getMaxNumLocks * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionDBOptions_getMaxNumLocks(JNIEnv* /*env*/, +jlong Java_org_terarkdb_TransactionDBOptions_getMaxNumLocks(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -38,22 +38,22 @@ jlong Java_org_rocksdb_TransactionDBOptions_getMaxNumLocks(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: setMaxNumLocks * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionDBOptions_setMaxNumLocks( +void Java_org_terarkdb_TransactionDBOptions_setMaxNumLocks( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_num_locks) { auto* opts = reinterpret_cast(jhandle); opts->max_num_locks = jmax_num_locks; } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: getNumStripes * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionDBOptions_getNumStripes(JNIEnv* /*env*/, +jlong Java_org_terarkdb_TransactionDBOptions_getNumStripes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -61,11 +61,11 @@ jlong Java_org_rocksdb_TransactionDBOptions_getNumStripes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: setNumStripes * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionDBOptions_setNumStripes(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionDBOptions_setNumStripes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jnum_stripes) { @@ -74,22 +74,22 @@ void Java_org_rocksdb_TransactionDBOptions_setNumStripes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: getTransactionLockTimeout * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionDBOptions_getTransactionLockTimeout( +jlong Java_org_terarkdb_TransactionDBOptions_getTransactionLockTimeout( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); return opts->transaction_lock_timeout; } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: setTransactionLockTimeout * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionDBOptions_setTransactionLockTimeout( +void Java_org_terarkdb_TransactionDBOptions_setTransactionLockTimeout( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jtransaction_lock_timeout) { auto* opts = reinterpret_cast(jhandle); @@ -97,22 +97,22 @@ void Java_org_rocksdb_TransactionDBOptions_setTransactionLockTimeout( } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: getDefaultLockTimeout * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionDBOptions_getDefaultLockTimeout( +jlong Java_org_terarkdb_TransactionDBOptions_getDefaultLockTimeout( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); return opts->default_lock_timeout; } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: setDefaultLockTimeout * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionDBOptions_setDefaultLockTimeout( +void Java_org_terarkdb_TransactionDBOptions_setDefaultLockTimeout( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jdefault_lock_timeout) { auto* opts = reinterpret_cast(jhandle); @@ -120,11 +120,11 @@ void Java_org_rocksdb_TransactionDBOptions_setDefaultLockTimeout( } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: getWritePolicy * Signature: (J)B */ -jbyte Java_org_rocksdb_TransactionDBOptions_getWritePolicy(JNIEnv* /*env*/, +jbyte Java_org_terarkdb_TransactionDBOptions_getWritePolicy(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -133,11 +133,11 @@ jbyte Java_org_rocksdb_TransactionDBOptions_getWritePolicy(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: setWritePolicy * Signature: (JB)V */ -void Java_org_rocksdb_TransactionDBOptions_setWritePolicy(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionDBOptions_setWritePolicy(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jbyte jwrite_policy) { @@ -147,11 +147,11 @@ void Java_org_rocksdb_TransactionDBOptions_setWritePolicy(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionDBOptions + * Class: org_terarkdb_TransactionDBOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_TransactionDBOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionDBOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); diff --git a/java/rocksjni/transaction_log.cc b/java/rocksjni/transaction_log.cc index cd30b8b549..29becc3994 100644 --- a/java/rocksjni/transaction_log.cc +++ b/java/rocksjni/transaction_log.cc @@ -10,49 +10,49 @@ #include #include -#include "include/org_rocksdb_TransactionLogIterator.h" +#include "include/org_terarkdb_TransactionLogIterator.h" #include "rocksdb/transaction_log.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_TransactionLogIterator + * Class: org_terarkdb_TransactionLogIterator * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_TransactionLogIterator_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionLogIterator_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { delete reinterpret_cast(handle); } /* - * Class: org_rocksdb_TransactionLogIterator + * Class: org_terarkdb_TransactionLogIterator * Method: isValid * Signature: (J)Z */ -jboolean Java_org_rocksdb_TransactionLogIterator_isValid(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_TransactionLogIterator_isValid(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { return reinterpret_cast(handle)->Valid(); } /* - * Class: org_rocksdb_TransactionLogIterator + * Class: org_terarkdb_TransactionLogIterator * Method: next * Signature: (J)V */ -void Java_org_rocksdb_TransactionLogIterator_next(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionLogIterator_next(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->Next(); } /* - * Class: org_rocksdb_TransactionLogIterator + * Class: org_terarkdb_TransactionLogIterator * Method: status * Signature: (J)V */ -void Java_org_rocksdb_TransactionLogIterator_status(JNIEnv* env, +void Java_org_terarkdb_TransactionLogIterator_status(JNIEnv* env, jobject /*jobj*/, jlong handle) { TERARKDB_NAMESPACE::Status s = @@ -63,11 +63,11 @@ void Java_org_rocksdb_TransactionLogIterator_status(JNIEnv* env, } /* - * Class: org_rocksdb_TransactionLogIterator + * Class: org_terarkdb_TransactionLogIterator * Method: getBatch - * Signature: (J)Lorg/rocksdb/TransactionLogIterator$BatchResult + * Signature: (J)Lorg/terarkdb/TransactionLogIterator$BatchResult */ -jobject Java_org_rocksdb_TransactionLogIterator_getBatch(JNIEnv* env, +jobject Java_org_terarkdb_TransactionLogIterator_getBatch(JNIEnv* env, jobject /*jobj*/, jlong handle) { TERARKDB_NAMESPACE::BatchResult batch_result = diff --git a/java/rocksjni/transaction_notifier.cc b/java/rocksjni/transaction_notifier.cc index 2622913a16..8b658e76ec 100644 --- a/java/rocksjni/transaction_notifier.cc +++ b/java/rocksjni/transaction_notifier.cc @@ -8,15 +8,15 @@ #include -#include "include/org_rocksdb_AbstractTransactionNotifier.h" +#include "include/org_terarkdb_AbstractTransactionNotifier.h" #include "rocksjni/transaction_notifier_jnicallback.h" /* - * Class: org_rocksdb_AbstractTransactionNotifier + * Class: org_terarkdb_AbstractTransactionNotifier * Method: createNewTransactionNotifier * Signature: ()J */ -jlong Java_org_rocksdb_AbstractTransactionNotifier_createNewTransactionNotifier( +jlong Java_org_terarkdb_AbstractTransactionNotifier_createNewTransactionNotifier( JNIEnv* env, jobject jobj) { auto* transaction_notifier = new TERARKDB_NAMESPACE::TransactionNotifierJniCallback(env, jobj); @@ -27,11 +27,11 @@ jlong Java_org_rocksdb_AbstractTransactionNotifier_createNewTransactionNotifier( } /* - * Class: org_rocksdb_AbstractTransactionNotifier + * Class: org_terarkdb_AbstractTransactionNotifier * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_AbstractTransactionNotifier_disposeInternal( +void Java_org_terarkdb_AbstractTransactionNotifier_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { // TODO(AR) refactor to use JniCallback::JniCallback // when https://github.com/facebook/rocksdb/pull/1241/ is merged diff --git a/java/rocksjni/transaction_options.cc b/java/rocksjni/transaction_options.cc index 652a913bcd..58093f3083 100644 --- a/java/rocksjni/transaction_options.cc +++ b/java/rocksjni/transaction_options.cc @@ -8,27 +8,27 @@ #include -#include "include/org_rocksdb_TransactionOptions.h" +#include "include/org_terarkdb_TransactionOptions.h" #include "rocksdb/utilities/transaction_db.h" /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: newTransactionOptions * Signature: ()J */ -jlong Java_org_rocksdb_TransactionOptions_newTransactionOptions( +jlong Java_org_terarkdb_TransactionOptions_newTransactionOptions( JNIEnv* /*env*/, jclass /*jcls*/) { auto* opts = new TERARKDB_NAMESPACE::TransactionOptions(); return reinterpret_cast(opts); } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: isSetSnapshot * Signature: (J)Z */ -jboolean Java_org_rocksdb_TransactionOptions_isSetSnapshot(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_TransactionOptions_isSetSnapshot(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -36,22 +36,22 @@ jboolean Java_org_rocksdb_TransactionOptions_isSetSnapshot(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: setSetSnapshot * Signature: (JZ)V */ -void Java_org_rocksdb_TransactionOptions_setSetSnapshot( +void Java_org_terarkdb_TransactionOptions_setSetSnapshot( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jset_snapshot) { auto* opts = reinterpret_cast(jhandle); opts->set_snapshot = jset_snapshot; } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: isDeadlockDetect * Signature: (J)Z */ -jboolean Java_org_rocksdb_TransactionOptions_isDeadlockDetect(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_TransactionOptions_isDeadlockDetect(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -59,11 +59,11 @@ jboolean Java_org_rocksdb_TransactionOptions_isDeadlockDetect(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: setDeadlockDetect * Signature: (JZ)V */ -void Java_org_rocksdb_TransactionOptions_setDeadlockDetect( +void Java_org_terarkdb_TransactionOptions_setDeadlockDetect( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jboolean jdeadlock_detect) { auto* opts = reinterpret_cast(jhandle); @@ -71,11 +71,11 @@ void Java_org_rocksdb_TransactionOptions_setDeadlockDetect( } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: getLockTimeout * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionOptions_getLockTimeout(JNIEnv* /*env*/, +jlong Java_org_terarkdb_TransactionOptions_getLockTimeout(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -83,11 +83,11 @@ jlong Java_org_rocksdb_TransactionOptions_getLockTimeout(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: setLockTimeout * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionOptions_setLockTimeout(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionOptions_setLockTimeout(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jlock_timeout) { @@ -96,11 +96,11 @@ void Java_org_rocksdb_TransactionOptions_setLockTimeout(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: getExpiration * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionOptions_getExpiration(JNIEnv* /*env*/, +jlong Java_org_terarkdb_TransactionOptions_getExpiration(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -108,11 +108,11 @@ jlong Java_org_rocksdb_TransactionOptions_getExpiration(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: setExpiration * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionOptions_setExpiration(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionOptions_setExpiration(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jexpiration) { @@ -121,22 +121,22 @@ void Java_org_rocksdb_TransactionOptions_setExpiration(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: getDeadlockDetectDepth * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionOptions_getDeadlockDetectDepth( +jlong Java_org_terarkdb_TransactionOptions_getDeadlockDetectDepth( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); return opts->deadlock_detect_depth; } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: setDeadlockDetectDepth * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionOptions_setDeadlockDetectDepth( +void Java_org_terarkdb_TransactionOptions_setDeadlockDetectDepth( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jdeadlock_detect_depth) { auto* opts = reinterpret_cast(jhandle); @@ -144,11 +144,11 @@ void Java_org_rocksdb_TransactionOptions_setDeadlockDetectDepth( } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: getMaxWriteBatchSize * Signature: (J)J */ -jlong Java_org_rocksdb_TransactionOptions_getMaxWriteBatchSize(JNIEnv* /*env*/, +jlong Java_org_terarkdb_TransactionOptions_getMaxWriteBatchSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* opts = reinterpret_cast(jhandle); @@ -156,11 +156,11 @@ jlong Java_org_rocksdb_TransactionOptions_getMaxWriteBatchSize(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: setMaxWriteBatchSize * Signature: (JJ)V */ -void Java_org_rocksdb_TransactionOptions_setMaxWriteBatchSize( +void Java_org_terarkdb_TransactionOptions_setMaxWriteBatchSize( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle, jlong jmax_write_batch_size) { auto* opts = reinterpret_cast(jhandle); @@ -168,11 +168,11 @@ void Java_org_rocksdb_TransactionOptions_setMaxWriteBatchSize( } /* - * Class: org_rocksdb_TransactionOptions + * Class: org_terarkdb_TransactionOptions * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_TransactionOptions_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_TransactionOptions_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { delete reinterpret_cast(jhandle); diff --git a/java/rocksjni/ttl.cc b/java/rocksjni/ttl.cc index 486d4b7cd5..8c8f7e3fa3 100644 --- a/java/rocksjni/ttl.cc +++ b/java/rocksjni/ttl.cc @@ -14,16 +14,16 @@ #include #include -#include "include/org_rocksdb_TtlDB.h" +#include "include/org_terarkdb_TtlDB.h" #include "rocksdb/utilities/db_ttl.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_TtlDB + * Class: org_terarkdb_TtlDB * Method: open * Signature: (JLjava/lang/String;IZ)J */ -jlong Java_org_rocksdb_TtlDB_open(JNIEnv* env, jclass /*jcls*/, +jlong Java_org_terarkdb_TtlDB_open(JNIEnv* env, jclass /*jcls*/, jlong joptions_handle, jstring jdb_path, jint jttl, jboolean jread_only) { const char* db_path = env->GetStringUTFChars(jdb_path, nullptr); @@ -49,11 +49,11 @@ jlong Java_org_rocksdb_TtlDB_open(JNIEnv* env, jclass /*jcls*/, } /* - * Class: org_rocksdb_TtlDB + * Class: org_terarkdb_TtlDB * Method: openCF * Signature: (JLjava/lang/String;[[B[J[IZ)[J */ -jlongArray Java_org_rocksdb_TtlDB_openCF(JNIEnv* env, jclass /*jcls*/, +jlongArray Java_org_terarkdb_TtlDB_openCF(JNIEnv* env, jclass /*jcls*/, jlong jopt_handle, jstring jdb_path, jobjectArray jcolumn_names, jlongArray jcolumn_options, @@ -148,11 +148,11 @@ jlongArray Java_org_rocksdb_TtlDB_openCF(JNIEnv* env, jclass /*jcls*/, } /* - * Class: org_rocksdb_TtlDB + * Class: org_terarkdb_TtlDB * Method: createColumnFamilyWithTtl - * Signature: (JLorg/rocksdb/ColumnFamilyDescriptor;[BJI)J; + * Signature: (JL/ColumnFamilyDescriptor;[BJI)J; */ -jlong Java_org_rocksdb_TtlDB_createColumnFamilyWithTtl( +jlong Java_org_terarkdb_TtlDB_createColumnFamilyWithTtl( JNIEnv* env, jobject /*jobj*/, jlong jdb_handle, jbyteArray jcolumn_name, jlong jcolumn_options, jint jttl) { jbyte* cfname = env->GetByteArrayElements(jcolumn_name, nullptr); diff --git a/java/rocksjni/write_batch.cc b/java/rocksjni/write_batch.cc index 7be4229196..8ede746e82 100644 --- a/java/rocksjni/write_batch.cc +++ b/java/rocksjni/write_batch.cc @@ -9,8 +9,8 @@ #include "db/memtable.h" #include "db/write_batch_internal.h" -#include "include/org_rocksdb_WriteBatch.h" -#include "include/org_rocksdb_WriteBatch_Handler.h" +#include "include/org_terarkdb_WriteBatch.h" +#include "include/org_terarkdb_WriteBatch_Handler.h" #include "rocksdb/db.h" #include "rocksdb/env.h" #include "rocksdb/memtablerep.h" @@ -23,11 +23,11 @@ #include "util/logging.h" /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: newWriteBatch * Signature: (I)J */ -jlong Java_org_rocksdb_WriteBatch_newWriteBatch__I(JNIEnv* /*env*/, +jlong Java_org_terarkdb_WriteBatch_newWriteBatch__I(JNIEnv* /*env*/, jclass /*jcls*/, jint jreserved_bytes) { auto* wb = new TERARKDB_NAMESPACE::WriteBatch(static_cast(jreserved_bytes)); @@ -35,11 +35,11 @@ jlong Java_org_rocksdb_WriteBatch_newWriteBatch__I(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: newWriteBatch * Signature: ([BI)J */ -jlong Java_org_rocksdb_WriteBatch_newWriteBatch___3BI(JNIEnv* env, +jlong Java_org_terarkdb_WriteBatch_newWriteBatch___3BI(JNIEnv* env, jclass /*jcls*/, jbyteArray jserialized, jint jserialized_length) { @@ -58,11 +58,11 @@ jlong Java_org_rocksdb_WriteBatch_newWriteBatch___3BI(JNIEnv* env, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: count0 * Signature: (J)I */ -jint Java_org_rocksdb_WriteBatch_count0(JNIEnv* /*env*/, jobject /*jobj*/, +jint Java_org_terarkdb_WriteBatch_count0(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -71,11 +71,11 @@ jint Java_org_rocksdb_WriteBatch_count0(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: clear0 * Signature: (J)V */ -void Java_org_rocksdb_WriteBatch_clear0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_WriteBatch_clear0(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -84,11 +84,11 @@ void Java_org_rocksdb_WriteBatch_clear0(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: setSavePoint0 * Signature: (J)V */ -void Java_org_rocksdb_WriteBatch_setSavePoint0(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatch_setSavePoint0(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -98,11 +98,11 @@ void Java_org_rocksdb_WriteBatch_setSavePoint0(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: rollbackToSavePoint0 * Signature: (J)V */ -void Java_org_rocksdb_WriteBatch_rollbackToSavePoint0(JNIEnv* env, +void Java_org_terarkdb_WriteBatch_rollbackToSavePoint0(JNIEnv* env, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -117,11 +117,11 @@ void Java_org_rocksdb_WriteBatch_rollbackToSavePoint0(JNIEnv* env, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: popSavePoint * Signature: (J)V */ -void Java_org_rocksdb_WriteBatch_popSavePoint(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_WriteBatch_popSavePoint(JNIEnv* env, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -135,11 +135,11 @@ void Java_org_rocksdb_WriteBatch_popSavePoint(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: setMaxBytes * Signature: (JJ)V */ -void Java_org_rocksdb_WriteBatch_setMaxBytes(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_WriteBatch_setMaxBytes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle, jlong jmax_bytes) { auto* wb = reinterpret_cast(jwb_handle); @@ -149,11 +149,11 @@ void Java_org_rocksdb_WriteBatch_setMaxBytes(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: put * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_WriteBatch_put__J_3BI_3BI(JNIEnv* env, jobject jobj, +void Java_org_terarkdb_WriteBatch_put__J_3BI_3BI(JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, @@ -171,11 +171,11 @@ void Java_org_rocksdb_WriteBatch_put__J_3BI_3BI(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: put * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_WriteBatch_put__J_3BI_3BIJ( +void Java_org_terarkdb_WriteBatch_put__J_3BI_3BIJ( JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, jint jentry_value_len, jlong jcf_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -193,11 +193,11 @@ void Java_org_rocksdb_WriteBatch_put__J_3BI_3BIJ( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: merge * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_WriteBatch_merge__J_3BI_3BI( +void Java_org_terarkdb_WriteBatch_merge__J_3BI_3BI( JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, jint jentry_value_len) { auto* wb = reinterpret_cast(jwb_handle); @@ -213,11 +213,11 @@ void Java_org_rocksdb_WriteBatch_merge__J_3BI_3BI( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: merge * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_WriteBatch_merge__J_3BI_3BIJ( +void Java_org_terarkdb_WriteBatch_merge__J_3BI_3BIJ( JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, jint jentry_value_len, jlong jcf_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -235,11 +235,11 @@ void Java_org_rocksdb_WriteBatch_merge__J_3BI_3BIJ( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: delete * Signature: (J[BI)V */ -void Java_org_rocksdb_WriteBatch_delete__J_3BI(JNIEnv* env, jobject jobj, +void Java_org_terarkdb_WriteBatch_delete__J_3BI(JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len) { auto* wb = reinterpret_cast(jwb_handle); @@ -253,11 +253,11 @@ void Java_org_rocksdb_WriteBatch_delete__J_3BI(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: delete * Signature: (J[BIJ)V */ -void Java_org_rocksdb_WriteBatch_delete__J_3BIJ(JNIEnv* env, jobject jobj, +void Java_org_terarkdb_WriteBatch_delete__J_3BIJ(JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len, jlong jcf_handle) { @@ -276,11 +276,11 @@ void Java_org_rocksdb_WriteBatch_delete__J_3BIJ(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: singleDelete * Signature: (J[BI)V */ -void Java_org_rocksdb_WriteBatch_singleDelete__J_3BI(JNIEnv* env, jobject jobj, +void Java_org_terarkdb_WriteBatch_singleDelete__J_3BI(JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len) { @@ -297,11 +297,11 @@ void Java_org_rocksdb_WriteBatch_singleDelete__J_3BI(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: singleDelete * Signature: (J[BIJ)V */ -void Java_org_rocksdb_WriteBatch_singleDelete__J_3BIJ(JNIEnv* env, jobject jobj, +void Java_org_terarkdb_WriteBatch_singleDelete__J_3BIJ(JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jkey, jint jkey_len, @@ -321,11 +321,11 @@ void Java_org_rocksdb_WriteBatch_singleDelete__J_3BIJ(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: deleteRange * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_WriteBatch_deleteRange__J_3BI_3BI( +void Java_org_terarkdb_WriteBatch_deleteRange__J_3BI_3BI( JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jbegin_key, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_len) { auto* wb = reinterpret_cast(jwb_handle); @@ -342,11 +342,11 @@ void Java_org_rocksdb_WriteBatch_deleteRange__J_3BI_3BI( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: deleteRange * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_WriteBatch_deleteRange__J_3BI_3BIJ( +void Java_org_terarkdb_WriteBatch_deleteRange__J_3BI_3BIJ( JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jbegin_key, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_len, jlong jcf_handle) { @@ -367,11 +367,11 @@ void Java_org_rocksdb_WriteBatch_deleteRange__J_3BI_3BIJ( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: putLogData * Signature: (J[BI)V */ -void Java_org_rocksdb_WriteBatch_putLogData(JNIEnv* env, jobject jobj, +void Java_org_terarkdb_WriteBatch_putLogData(JNIEnv* env, jobject jobj, jlong jwb_handle, jbyteArray jblob, jint jblob_len) { auto* wb = reinterpret_cast(jwb_handle); @@ -385,11 +385,11 @@ void Java_org_rocksdb_WriteBatch_putLogData(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: iterate * Signature: (JJ)V */ -void Java_org_rocksdb_WriteBatch_iterate(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_WriteBatch_iterate(JNIEnv* env, jobject /*jobj*/, jlong jwb_handle, jlong handlerHandle) { auto* wb = reinterpret_cast(jwb_handle); @@ -405,11 +405,11 @@ void Java_org_rocksdb_WriteBatch_iterate(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: data * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_WriteBatch_data(JNIEnv* env, jobject /*jobj*/, +jbyteArray Java_org_terarkdb_WriteBatch_data(JNIEnv* env, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -419,11 +419,11 @@ jbyteArray Java_org_rocksdb_WriteBatch_data(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: getDataSize * Signature: (J)J */ -jlong Java_org_rocksdb_WriteBatch_getDataSize(JNIEnv* /*env*/, jobject /*jobj*/, +jlong Java_org_terarkdb_WriteBatch_getDataSize(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -433,11 +433,11 @@ jlong Java_org_rocksdb_WriteBatch_getDataSize(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasPut * Signature: (J)Z */ -jboolean Java_org_rocksdb_WriteBatch_hasPut(JNIEnv* /*env*/, jobject /*jobj*/, +jboolean Java_org_terarkdb_WriteBatch_hasPut(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -446,11 +446,11 @@ jboolean Java_org_rocksdb_WriteBatch_hasPut(JNIEnv* /*env*/, jobject /*jobj*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasDelete * Signature: (J)Z */ -jboolean Java_org_rocksdb_WriteBatch_hasDelete(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_WriteBatch_hasDelete(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -460,11 +460,11 @@ jboolean Java_org_rocksdb_WriteBatch_hasDelete(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasSingleDelete * Signature: (J)Z */ -JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasSingleDelete( +JNIEXPORT jboolean JNICALL Java_org_terarkdb_WriteBatch_hasSingleDelete( JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -473,11 +473,11 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasSingleDelete( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasDeleteRange * Signature: (J)Z */ -JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasDeleteRange( +JNIEXPORT jboolean JNICALL Java_org_terarkdb_WriteBatch_hasDeleteRange( JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -486,11 +486,11 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasDeleteRange( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasMerge * Signature: (J)Z */ -JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasMerge( +JNIEXPORT jboolean JNICALL Java_org_terarkdb_WriteBatch_hasMerge( JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -499,11 +499,11 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasMerge( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasBeginPrepare * Signature: (J)Z */ -JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasBeginPrepare( +JNIEXPORT jboolean JNICALL Java_org_terarkdb_WriteBatch_hasBeginPrepare( JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -512,11 +512,11 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasBeginPrepare( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasEndPrepare * Signature: (J)Z */ -JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasEndPrepare( +JNIEXPORT jboolean JNICALL Java_org_terarkdb_WriteBatch_hasEndPrepare( JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -525,11 +525,11 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasEndPrepare( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasCommit * Signature: (J)Z */ -JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasCommit( +JNIEXPORT jboolean JNICALL Java_org_terarkdb_WriteBatch_hasCommit( JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -538,11 +538,11 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasCommit( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: hasRollback * Signature: (J)Z */ -JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasRollback( +JNIEXPORT jboolean JNICALL Java_org_terarkdb_WriteBatch_hasRollback( JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -551,11 +551,11 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_WriteBatch_hasRollback( } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: markWalTerminationPoint * Signature: (J)V */ -void Java_org_rocksdb_WriteBatch_markWalTerminationPoint(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatch_markWalTerminationPoint(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -565,11 +565,11 @@ void Java_org_rocksdb_WriteBatch_markWalTerminationPoint(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: getWalTerminationPoint - * Signature: (J)Lorg/rocksdb/WriteBatch/SavePoint; + * Signature: (J)Lorg/terarkdb/WriteBatch/SavePoint; */ -jobject Java_org_rocksdb_WriteBatch_getWalTerminationPoint(JNIEnv* env, +jobject Java_org_terarkdb_WriteBatch_getWalTerminationPoint(JNIEnv* env, jobject /*jobj*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -580,11 +580,11 @@ jobject Java_org_rocksdb_WriteBatch_getWalTerminationPoint(JNIEnv* env, } /* - * Class: org_rocksdb_WriteBatch + * Class: org_terarkdb_WriteBatch * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_WriteBatch_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatch_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* wb = reinterpret_cast(handle); @@ -593,11 +593,11 @@ void Java_org_rocksdb_WriteBatch_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatch_Handler + * Class: org_terarkdb_WriteBatch_Handler * Method: createNewHandler0 * Signature: ()J */ -jlong Java_org_rocksdb_WriteBatch_00024Handler_createNewHandler0(JNIEnv* env, +jlong Java_org_terarkdb_WriteBatch_00024Handler_createNewHandler0(JNIEnv* env, jobject jobj) { auto* wbjnic = new TERARKDB_NAMESPACE::WriteBatchHandlerJniCallback(env, jobj); return reinterpret_cast(wbjnic); diff --git a/java/rocksjni/write_batch_test.cc b/java/rocksjni/write_batch_test.cc index 79d0bc7c53..bfc3a50b94 100644 --- a/java/rocksjni/write_batch_test.cc +++ b/java/rocksjni/write_batch_test.cc @@ -9,10 +9,10 @@ #include "db/memtable.h" #include "db/write_batch_internal.h" -#include "include/org_rocksdb_WriteBatch.h" -#include "include/org_rocksdb_WriteBatchTest.h" -#include "include/org_rocksdb_WriteBatchTestInternalHelper.h" -#include "include/org_rocksdb_WriteBatch_Handler.h" +#include "include/org_terarkdb_WriteBatch.h" +#include "include/org_terarkdb_WriteBatchTest.h" +#include "include/org_terarkdb_WriteBatchTestInternalHelper.h" +#include "include/org_terarkdb_WriteBatch_Handler.h" #include "options/cf_options.h" #include "rocksdb/db.h" #include "rocksdb/env.h" @@ -26,11 +26,11 @@ #include "util/testharness.h" /* - * Class: org_rocksdb_WriteBatchTest + * Class: org_terarkdb_WriteBatchTest * Method: getContents * Signature: (J)[B */ -jbyteArray Java_org_rocksdb_WriteBatchTest_getContents(JNIEnv* env, +jbyteArray Java_org_terarkdb_WriteBatchTest_getContents(JNIEnv* env, jclass /*jclazz*/, jlong jwb_handle) { auto* b = reinterpret_cast(jwb_handle); @@ -149,11 +149,11 @@ jbyteArray Java_org_rocksdb_WriteBatchTest_getContents(JNIEnv* env, } /* - * Class: org_rocksdb_WriteBatchTestInternalHelper + * Class: org_terarkdb_WriteBatchTestInternalHelper * Method: setSequence * Signature: (JJ)V */ -void Java_org_rocksdb_WriteBatchTestInternalHelper_setSequence( +void Java_org_terarkdb_WriteBatchTestInternalHelper_setSequence( JNIEnv* /*env*/, jclass /*jclazz*/, jlong jwb_handle, jlong jsn) { auto* wb = reinterpret_cast(jwb_handle); assert(wb != nullptr); @@ -163,11 +163,11 @@ void Java_org_rocksdb_WriteBatchTestInternalHelper_setSequence( } /* - * Class: org_rocksdb_WriteBatchTestInternalHelper + * Class: org_terarkdb_WriteBatchTestInternalHelper * Method: sequence * Signature: (J)J */ -jlong Java_org_rocksdb_WriteBatchTestInternalHelper_sequence(JNIEnv* /*env*/, +jlong Java_org_terarkdb_WriteBatchTestInternalHelper_sequence(JNIEnv* /*env*/, jclass /*jclazz*/, jlong jwb_handle) { auto* wb = reinterpret_cast(jwb_handle); @@ -177,11 +177,11 @@ jlong Java_org_rocksdb_WriteBatchTestInternalHelper_sequence(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchTestInternalHelper + * Class: org_terarkdb_WriteBatchTestInternalHelper * Method: append * Signature: (JJ)V */ -void Java_org_rocksdb_WriteBatchTestInternalHelper_append(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatchTestInternalHelper_append(JNIEnv* /*env*/, jclass /*jclazz*/, jlong jwb_handle_1, jlong jwb_handle_2) { diff --git a/java/rocksjni/write_batch_with_index.cc b/java/rocksjni/write_batch_with_index.cc index 2e02a803da..c03e5bd874 100644 --- a/java/rocksjni/write_batch_with_index.cc +++ b/java/rocksjni/write_batch_with_index.cc @@ -7,28 +7,28 @@ // calling c++ TERARKDB_NAMESPACE::WriteBatchWithIndex methods from Java side. #include "rocksdb/utilities/write_batch_with_index.h" -#include "include/org_rocksdb_WBWIRocksIterator.h" -#include "include/org_rocksdb_WriteBatchWithIndex.h" +#include "include/org_terarkdb_WBWIRocksIterator.h" +#include "include/org_terarkdb_WriteBatchWithIndex.h" #include "rocksdb/comparator.h" #include "rocksjni/portal.h" /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: newWriteBatchWithIndex * Signature: ()J */ -jlong Java_org_rocksdb_WriteBatchWithIndex_newWriteBatchWithIndex__( +jlong Java_org_terarkdb_WriteBatchWithIndex_newWriteBatchWithIndex__( JNIEnv* /*env*/, jclass /*jcls*/) { auto* wbwi = new TERARKDB_NAMESPACE::WriteBatchWithIndex(); return reinterpret_cast(wbwi); } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: newWriteBatchWithIndex * Signature: (Z)J */ -jlong Java_org_rocksdb_WriteBatchWithIndex_newWriteBatchWithIndex__Z( +jlong Java_org_terarkdb_WriteBatchWithIndex_newWriteBatchWithIndex__Z( JNIEnv* /*env*/, jclass /*jcls*/, jboolean joverwrite_key) { auto* wbwi = new TERARKDB_NAMESPACE::WriteBatchWithIndex( TERARKDB_NAMESPACE::BytewiseComparator(), 0, static_cast(joverwrite_key)); @@ -36,11 +36,11 @@ jlong Java_org_rocksdb_WriteBatchWithIndex_newWriteBatchWithIndex__Z( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: newWriteBatchWithIndex * Signature: (JBIZ)J */ -jlong Java_org_rocksdb_WriteBatchWithIndex_newWriteBatchWithIndex__JBIZ( +jlong Java_org_terarkdb_WriteBatchWithIndex_newWriteBatchWithIndex__JBIZ( JNIEnv* /*env*/, jclass /*jcls*/, jlong jfallback_index_comparator_handle, jbyte jcomparator_type, jint jreserved_bytes, jboolean joverwrite_key) { TERARKDB_NAMESPACE::Comparator* fallback_comparator = nullptr; @@ -71,11 +71,11 @@ jlong Java_org_rocksdb_WriteBatchWithIndex_newWriteBatchWithIndex__JBIZ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: count0 * Signature: (J)I */ -jint Java_org_rocksdb_WriteBatchWithIndex_count0(JNIEnv* /*env*/, +jint Java_org_terarkdb_WriteBatchWithIndex_count0(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwbwi_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -85,11 +85,11 @@ jint Java_org_rocksdb_WriteBatchWithIndex_count0(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: put * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_WriteBatchWithIndex_put__J_3BI_3BI( +void Java_org_terarkdb_WriteBatchWithIndex_put__J_3BI_3BI( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, jint jentry_value_len) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -105,11 +105,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_put__J_3BI_3BI( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: put * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_WriteBatchWithIndex_put__J_3BI_3BIJ( +void Java_org_terarkdb_WriteBatchWithIndex_put__J_3BI_3BIJ( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, jint jentry_value_len, jlong jcf_handle) { @@ -128,11 +128,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_put__J_3BI_3BIJ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: merge * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_WriteBatchWithIndex_merge__J_3BI_3BI( +void Java_org_terarkdb_WriteBatchWithIndex_merge__J_3BI_3BI( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, jint jentry_value_len) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -148,11 +148,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_merge__J_3BI_3BI( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: merge * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_WriteBatchWithIndex_merge__J_3BI_3BIJ( +void Java_org_terarkdb_WriteBatchWithIndex_merge__J_3BI_3BIJ( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, jint jkey_len, jbyteArray jentry_value, jint jentry_value_len, jlong jcf_handle) { @@ -171,11 +171,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_merge__J_3BI_3BIJ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: delete * Signature: (J[BI)V */ -void Java_org_rocksdb_WriteBatchWithIndex_delete__J_3BI(JNIEnv* env, +void Java_org_terarkdb_WriteBatchWithIndex_delete__J_3BI(JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, @@ -191,11 +191,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_delete__J_3BI(JNIEnv* env, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: delete * Signature: (J[BIJ)V */ -void Java_org_rocksdb_WriteBatchWithIndex_delete__J_3BIJ( +void Java_org_terarkdb_WriteBatchWithIndex_delete__J_3BIJ( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, jint jkey_len, jlong jcf_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -213,11 +213,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_delete__J_3BIJ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: singleDelete * Signature: (J[BI)V */ -void Java_org_rocksdb_WriteBatchWithIndex_singleDelete__J_3BI( +void Java_org_terarkdb_WriteBatchWithIndex_singleDelete__J_3BI( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, jint jkey_len) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -233,11 +233,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_singleDelete__J_3BI( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: singleDelete * Signature: (J[BIJ)V */ -void Java_org_rocksdb_WriteBatchWithIndex_singleDelete__J_3BIJ( +void Java_org_terarkdb_WriteBatchWithIndex_singleDelete__J_3BIJ( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jkey, jint jkey_len, jlong jcf_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -255,11 +255,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_singleDelete__J_3BIJ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: deleteRange * Signature: (J[BI[BI)V */ -void Java_org_rocksdb_WriteBatchWithIndex_deleteRange__J_3BI_3BI( +void Java_org_terarkdb_WriteBatchWithIndex_deleteRange__J_3BI_3BI( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jbegin_key, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_len) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -276,11 +276,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_deleteRange__J_3BI_3BI( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: deleteRange * Signature: (J[BI[BIJ)V */ -void Java_org_rocksdb_WriteBatchWithIndex_deleteRange__J_3BI_3BIJ( +void Java_org_terarkdb_WriteBatchWithIndex_deleteRange__J_3BI_3BIJ( JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jbegin_key, jint jbegin_key_len, jbyteArray jend_key, jint jend_key_len, jlong jcf_handle) { @@ -301,11 +301,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_deleteRange__J_3BI_3BIJ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: putLogData * Signature: (J[BI)V */ -void Java_org_rocksdb_WriteBatchWithIndex_putLogData(JNIEnv* env, jobject jobj, +void Java_org_terarkdb_WriteBatchWithIndex_putLogData(JNIEnv* env, jobject jobj, jlong jwbwi_handle, jbyteArray jblob, jint jblob_len) { @@ -322,11 +322,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_putLogData(JNIEnv* env, jobject jobj, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: clear * Signature: (J)V */ -void Java_org_rocksdb_WriteBatchWithIndex_clear0(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatchWithIndex_clear0(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwbwi_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -336,11 +336,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_clear0(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: setSavePoint0 * Signature: (J)V */ -void Java_org_rocksdb_WriteBatchWithIndex_setSavePoint0(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatchWithIndex_setSavePoint0(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwbwi_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -350,11 +350,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_setSavePoint0(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: rollbackToSavePoint0 * Signature: (J)V */ -void Java_org_rocksdb_WriteBatchWithIndex_rollbackToSavePoint0( +void Java_org_terarkdb_WriteBatchWithIndex_rollbackToSavePoint0( JNIEnv* env, jobject /*jobj*/, jlong jwbwi_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); assert(wbwi != nullptr); @@ -369,11 +369,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_rollbackToSavePoint0( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: popSavePoint * Signature: (J)V */ -void Java_org_rocksdb_WriteBatchWithIndex_popSavePoint(JNIEnv* env, +void Java_org_terarkdb_WriteBatchWithIndex_popSavePoint(JNIEnv* env, jobject /*jobj*/, jlong jwbwi_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -389,11 +389,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_popSavePoint(JNIEnv* env, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: setMaxBytes * Signature: (JJ)V */ -void Java_org_rocksdb_WriteBatchWithIndex_setMaxBytes(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatchWithIndex_setMaxBytes(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwbwi_handle, jlong jmax_bytes) { @@ -404,11 +404,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_setMaxBytes(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: getWriteBatch - * Signature: (J)Lorg/rocksdb/WriteBatch; + * Signature: (J)Lorg/terarkdb/WriteBatch; */ -jobject Java_org_rocksdb_WriteBatchWithIndex_getWriteBatch(JNIEnv* env, +jobject Java_org_terarkdb_WriteBatchWithIndex_getWriteBatch(JNIEnv* env, jobject /*jobj*/, jlong jwbwi_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -421,11 +421,11 @@ jobject Java_org_rocksdb_WriteBatchWithIndex_getWriteBatch(JNIEnv* env, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: iterator0 * Signature: (J)J */ -jlong Java_org_rocksdb_WriteBatchWithIndex_iterator0(JNIEnv* /*env*/, +jlong Java_org_terarkdb_WriteBatchWithIndex_iterator0(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwbwi_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -434,11 +434,11 @@ jlong Java_org_rocksdb_WriteBatchWithIndex_iterator0(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: iterator1 * Signature: (JJ)J */ -jlong Java_org_rocksdb_WriteBatchWithIndex_iterator1(JNIEnv* /*env*/, +jlong Java_org_terarkdb_WriteBatchWithIndex_iterator1(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwbwi_handle, jlong jcf_handle) { @@ -449,11 +449,11 @@ jlong Java_org_rocksdb_WriteBatchWithIndex_iterator1(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: iteratorWithBase * Signature: (JJJ)J */ -jlong Java_org_rocksdb_WriteBatchWithIndex_iteratorWithBase(JNIEnv* /*env*/, +jlong Java_org_terarkdb_WriteBatchWithIndex_iteratorWithBase(JNIEnv* /*env*/, jobject /*jobj*/, jlong jwbwi_handle, jlong jcf_handle, @@ -466,11 +466,11 @@ jlong Java_org_rocksdb_WriteBatchWithIndex_iteratorWithBase(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: getFromBatch * Signature: (JJ[BI)[B */ -jbyteArray JNICALL Java_org_rocksdb_WriteBatchWithIndex_getFromBatch__JJ_3BI( +jbyteArray JNICALL Java_org_terarkdb_WriteBatchWithIndex_getFromBatch__JJ_3BI( JNIEnv* env, jobject /*jobj*/, jlong jwbwi_handle, jlong jdbopt_handle, jbyteArray jkey, jint jkey_len) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -484,11 +484,11 @@ jbyteArray JNICALL Java_org_rocksdb_WriteBatchWithIndex_getFromBatch__JJ_3BI( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: getFromBatch * Signature: (JJ[BIJ)[B */ -jbyteArray Java_org_rocksdb_WriteBatchWithIndex_getFromBatch__JJ_3BIJ( +jbyteArray Java_org_terarkdb_WriteBatchWithIndex_getFromBatch__JJ_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jwbwi_handle, jlong jdbopt_handle, jbyteArray jkey, jint jkey_len, jlong jcf_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -504,11 +504,11 @@ jbyteArray Java_org_rocksdb_WriteBatchWithIndex_getFromBatch__JJ_3BIJ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: getFromBatchAndDB * Signature: (JJJ[BI)[B */ -jbyteArray Java_org_rocksdb_WriteBatchWithIndex_getFromBatchAndDB__JJJ_3BI( +jbyteArray Java_org_terarkdb_WriteBatchWithIndex_getFromBatchAndDB__JJJ_3BI( JNIEnv* env, jobject /*jobj*/, jlong jwbwi_handle, jlong jdb_handle, jlong jreadopt_handle, jbyteArray jkey, jint jkey_len) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -524,11 +524,11 @@ jbyteArray Java_org_rocksdb_WriteBatchWithIndex_getFromBatchAndDB__JJJ_3BI( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: getFromBatchAndDB * Signature: (JJJ[BIJ)[B */ -jbyteArray Java_org_rocksdb_WriteBatchWithIndex_getFromBatchAndDB__JJJ_3BIJ( +jbyteArray Java_org_terarkdb_WriteBatchWithIndex_getFromBatchAndDB__JJJ_3BIJ( JNIEnv* env, jobject /*jobj*/, jlong jwbwi_handle, jlong jdb_handle, jlong jreadopt_handle, jbyteArray jkey, jint jkey_len, jlong jcf_handle) { auto* wbwi = reinterpret_cast(jwbwi_handle); @@ -545,11 +545,11 @@ jbyteArray Java_org_rocksdb_WriteBatchWithIndex_getFromBatchAndDB__JJJ_3BIJ( } /* - * Class: org_rocksdb_WriteBatchWithIndex + * Class: org_terarkdb_WriteBatchWithIndex * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_WriteBatchWithIndex_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_WriteBatchWithIndex_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* wbwi = reinterpret_cast(handle); @@ -560,11 +560,11 @@ void Java_org_rocksdb_WriteBatchWithIndex_disposeInternal(JNIEnv* /*env*/, /* WBWIRocksIterator below */ /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_WBWIRocksIterator_disposeInternal(JNIEnv* /*env*/, +void Java_org_terarkdb_WBWIRocksIterator_disposeInternal(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { auto* it = reinterpret_cast(handle); @@ -573,64 +573,64 @@ void Java_org_rocksdb_WBWIRocksIterator_disposeInternal(JNIEnv* /*env*/, } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: isValid0 * Signature: (J)Z */ -jboolean Java_org_rocksdb_WBWIRocksIterator_isValid0(JNIEnv* /*env*/, +jboolean Java_org_terarkdb_WBWIRocksIterator_isValid0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { return reinterpret_cast(handle)->Valid(); } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: seekToFirst0 * Signature: (J)V */ -void Java_org_rocksdb_WBWIRocksIterator_seekToFirst0(JNIEnv* /*env*/, +void Java_org_terarkdb_WBWIRocksIterator_seekToFirst0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->SeekToFirst(); } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: seekToLast0 * Signature: (J)V */ -void Java_org_rocksdb_WBWIRocksIterator_seekToLast0(JNIEnv* /*env*/, +void Java_org_terarkdb_WBWIRocksIterator_seekToLast0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->SeekToLast(); } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: next0 * Signature: (J)V */ -void Java_org_rocksdb_WBWIRocksIterator_next0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_WBWIRocksIterator_next0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->Next(); } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: prev0 * Signature: (J)V */ -void Java_org_rocksdb_WBWIRocksIterator_prev0(JNIEnv* /*env*/, jobject /*jobj*/, +void Java_org_terarkdb_WBWIRocksIterator_prev0(JNIEnv* /*env*/, jobject /*jobj*/, jlong handle) { reinterpret_cast(handle)->Prev(); } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: seek0 * Signature: (J[BI)V */ -void Java_org_rocksdb_WBWIRocksIterator_seek0(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_WBWIRocksIterator_seek0(JNIEnv* env, jobject /*jobj*/, jlong handle, jbyteArray jtarget, jint jtarget_len) { auto* it = reinterpret_cast(handle); @@ -648,11 +648,11 @@ void Java_org_rocksdb_WBWIRocksIterator_seek0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: seekForPrev0 * Signature: (J[BI)V */ -void Java_org_rocksdb_WBWIRocksIterator_seekForPrev0(JNIEnv* env, +void Java_org_terarkdb_WBWIRocksIterator_seekForPrev0(JNIEnv* env, jobject /*jobj*/, jlong handle, jbyteArray jtarget, @@ -672,11 +672,11 @@ void Java_org_rocksdb_WBWIRocksIterator_seekForPrev0(JNIEnv* env, } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: status0 * Signature: (J)V */ -void Java_org_rocksdb_WBWIRocksIterator_status0(JNIEnv* env, jobject /*jobj*/, +void Java_org_terarkdb_WBWIRocksIterator_status0(JNIEnv* env, jobject /*jobj*/, jlong handle) { auto* it = reinterpret_cast(handle); TERARKDB_NAMESPACE::Status s = it->status(); @@ -689,11 +689,11 @@ void Java_org_rocksdb_WBWIRocksIterator_status0(JNIEnv* env, jobject /*jobj*/, } /* - * Class: org_rocksdb_WBWIRocksIterator + * Class: org_terarkdb_WBWIRocksIterator * Method: entry1 * Signature: (J)[J */ -jlongArray Java_org_rocksdb_WBWIRocksIterator_entry1(JNIEnv* env, +jlongArray Java_org_terarkdb_WBWIRocksIterator_entry1(JNIEnv* env, jobject /*jobj*/, jlong handle) { auto* it = reinterpret_cast(handle); @@ -705,7 +705,7 @@ jlongArray Java_org_rocksdb_WBWIRocksIterator_entry1(JNIEnv* env, results[0] = TERARKDB_NAMESPACE::WriteTypeJni::toJavaWriteType(we.type); // NOTE: key_slice and value_slice will be freed by - // org.rocksdb.DirectSlice#close + // org.terarkdb.DirectSlice#close auto* key_slice = new TERARKDB_NAMESPACE::Slice(we.key.data(), we.key.size()); results[1] = reinterpret_cast(key_slice); diff --git a/java/rocksjni/write_buffer_manager.cc b/java/rocksjni/write_buffer_manager.cc index 2a19589c6d..7ccde511d8 100644 --- a/java/rocksjni/write_buffer_manager.cc +++ b/java/rocksjni/write_buffer_manager.cc @@ -5,17 +5,17 @@ #include -#include "include/org_rocksdb_WriteBufferManager.h" +#include "include/org_terarkdb_WriteBufferManager.h" #include "rocksdb/cache.h" #include "rocksdb/write_buffer_manager.h" /* - * Class: org_rocksdb_WriteBufferManager + * Class: org_terarkdb_WriteBufferManager * Method: newWriteBufferManager * Signature: (JJ)J */ -jlong Java_org_rocksdb_WriteBufferManager_newWriteBufferManager( +jlong Java_org_terarkdb_WriteBufferManager_newWriteBufferManager( JNIEnv* /*env*/, jclass /*jclazz*/, jlong jbuffer_size, jlong jcache_handle) { auto* cache_ptr = reinterpret_cast *>(jcache_handle); @@ -25,11 +25,11 @@ jlong Java_org_rocksdb_WriteBufferManager_newWriteBufferManager( } /* - * Class: org_rocksdb_WriteBufferManager + * Class: org_terarkdb_WriteBufferManager * Method: disposeInternal * Signature: (J)V */ -void Java_org_rocksdb_WriteBufferManager_disposeInternal( +void Java_org_terarkdb_WriteBufferManager_disposeInternal( JNIEnv* /*env*/, jobject /*jobj*/, jlong jhandle) { auto* write_buffer_manager = reinterpret_cast *>(jhandle); diff --git a/java/samples/src/main/java/OptimisticTransactionSample.java b/java/samples/src/main/java/OptimisticTransactionSample.java index 1633d1f2bd..bed83d138a 100644 --- a/java/samples/src/main/java/OptimisticTransactionSample.java +++ b/java/samples/src/main/java/OptimisticTransactionSample.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -import org.rocksdb.*; +import org.terarkdb.*; import static java.nio.charset.StandardCharsets.UTF_8; diff --git a/java/samples/src/main/java/RocksDBColumnFamilySample.java b/java/samples/src/main/java/RocksDBColumnFamilySample.java index 650b1b2f60..f66545e92b 100644 --- a/java/samples/src/main/java/RocksDBColumnFamilySample.java +++ b/java/samples/src/main/java/RocksDBColumnFamilySample.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -import org.rocksdb.*; +import org.terarkdb.*; import java.util.ArrayList; import java.util.List; diff --git a/java/samples/src/main/java/RocksDBSample.java b/java/samples/src/main/java/RocksDBSample.java index f61995ed98..ff81f32d1a 100644 --- a/java/samples/src/main/java/RocksDBSample.java +++ b/java/samples/src/main/java/RocksDBSample.java @@ -9,8 +9,8 @@ import java.util.Map; import java.util.ArrayList; -import org.rocksdb.*; -import org.rocksdb.util.SizeUnit; +import org.terarkdb.*; +import org.terarkdb.util.SizeUnit; public class RocksDBSample { static { diff --git a/java/samples/src/main/java/TransactionSample.java b/java/samples/src/main/java/TransactionSample.java index b88a68f123..ce98810ed2 100644 --- a/java/samples/src/main/java/TransactionSample.java +++ b/java/samples/src/main/java/TransactionSample.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -import org.rocksdb.*; +import org.terarkdb.*; import static java.nio.charset.StandardCharsets.UTF_8; diff --git a/java/src/main/java/org/rocksdb/AbstractCompactionFilter.java b/java/src/main/java/org/terarkdb/AbstractCompactionFilter.java similarity index 98% rename from java/src/main/java/org/rocksdb/AbstractCompactionFilter.java rename to java/src/main/java/org/terarkdb/AbstractCompactionFilter.java index 2f0d4f3ca4..1aeb89a758 100644 --- a/java/src/main/java/org/rocksdb/AbstractCompactionFilter.java +++ b/java/src/main/java/org/terarkdb/AbstractCompactionFilter.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * A CompactionFilter allows an application to modify/delete a key-value at diff --git a/java/src/main/java/org/rocksdb/AbstractCompactionFilterFactory.java b/java/src/main/java/org/terarkdb/AbstractCompactionFilterFactory.java similarity index 99% rename from java/src/main/java/org/rocksdb/AbstractCompactionFilterFactory.java rename to java/src/main/java/org/terarkdb/AbstractCompactionFilterFactory.java index 71ef41c987..3e3160b18a 100644 --- a/java/src/main/java/org/rocksdb/AbstractCompactionFilterFactory.java +++ b/java/src/main/java/org/terarkdb/AbstractCompactionFilterFactory.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Each compaction will create a new {@link AbstractCompactionFilter} diff --git a/java/src/main/java/org/rocksdb/AbstractComparator.java b/java/src/main/java/org/terarkdb/AbstractComparator.java similarity index 96% rename from java/src/main/java/org/rocksdb/AbstractComparator.java rename to java/src/main/java/org/terarkdb/AbstractComparator.java index 9310397b0c..e1187ba897 100644 --- a/java/src/main/java/org/rocksdb/AbstractComparator.java +++ b/java/src/main/java/org/terarkdb/AbstractComparator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Comparators are used by RocksDB to determine @@ -11,8 +11,8 @@ * * This class is package private, implementers * should extend either of the public abstract classes: - * @see org.rocksdb.Comparator - * @see org.rocksdb.DirectComparator + * @see org.terarkdb.Comparator + * @see org.terarkdb.DirectComparator */ public abstract class AbstractComparator> extends RocksCallbackObject { diff --git a/java/src/main/java/org/rocksdb/AbstractImmutableNativeReference.java b/java/src/main/java/org/terarkdb/AbstractImmutableNativeReference.java similarity index 98% rename from java/src/main/java/org/rocksdb/AbstractImmutableNativeReference.java rename to java/src/main/java/org/terarkdb/AbstractImmutableNativeReference.java index 44e75c3cf2..a285cf68cd 100644 --- a/java/src/main/java/org/rocksdb/AbstractImmutableNativeReference.java +++ b/java/src/main/java/org/terarkdb/AbstractImmutableNativeReference.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/java/src/main/java/org/rocksdb/AbstractNativeReference.java b/java/src/main/java/org/terarkdb/AbstractNativeReference.java similarity index 99% rename from java/src/main/java/org/rocksdb/AbstractNativeReference.java rename to java/src/main/java/org/terarkdb/AbstractNativeReference.java index ffb0776e4a..c3edfbbdd3 100644 --- a/java/src/main/java/org/rocksdb/AbstractNativeReference.java +++ b/java/src/main/java/org/terarkdb/AbstractNativeReference.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * AbstractNativeReference is the base-class of all RocksDB classes that have diff --git a/java/src/main/java/org/rocksdb/AbstractRocksIterator.java b/java/src/main/java/org/terarkdb/AbstractRocksIterator.java similarity index 98% rename from java/src/main/java/org/rocksdb/AbstractRocksIterator.java rename to java/src/main/java/org/terarkdb/AbstractRocksIterator.java index 2819b6c70c..a33c089575 100644 --- a/java/src/main/java/org/rocksdb/AbstractRocksIterator.java +++ b/java/src/main/java/org/terarkdb/AbstractRocksIterator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Base class implementation for Rocks Iterators @@ -17,7 +17,7 @@ * @param

The type of the Parent Object from which the Rocks Iterator was * created. This is used by disposeInternal to avoid double-free * issues with the underlying C++ object. - * @see org.rocksdb.RocksObject + * @see org.terarkdb.RocksObject */ public abstract class AbstractRocksIterator

extends RocksObject implements RocksIteratorInterface { diff --git a/java/src/main/java/org/rocksdb/AbstractSlice.java b/java/src/main/java/org/terarkdb/AbstractSlice.java similarity index 93% rename from java/src/main/java/org/rocksdb/AbstractSlice.java rename to java/src/main/java/org/terarkdb/AbstractSlice.java index 5a22e29562..4c65cef000 100644 --- a/java/src/main/java/org/rocksdb/AbstractSlice.java +++ b/java/src/main/java/org/terarkdb/AbstractSlice.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Slices are used by RocksDB to provide @@ -11,18 +11,18 @@ * * This class is package private, implementers * should extend either of the public abstract classes: - * @see org.rocksdb.Slice - * @see org.rocksdb.DirectSlice + * @see org.terarkdb.Slice + * @see org.terarkdb.DirectSlice * * Regards the lifecycle of Java Slices in RocksDB: * At present when you configure a Comparator from Java, it creates an * instance of a C++ BaseComparatorJniCallback subclass and * passes that to RocksDB as the comparator. That subclass of * BaseComparatorJniCallback creates the Java - * @see org.rocksdb.AbstractSlice subclass Objects. When you dispose - * the Java @see org.rocksdb.AbstractComparator subclass, it disposes the + * @see org.terarkdb.AbstractSlice subclass Objects. When you dispose + * the Java @see org.terarkdb.AbstractComparator subclass, it disposes the * C++ BaseComparatorJniCallback subclass, which in turn destroys the - * Java @see org.rocksdb.AbstractSlice subclass Objects. + * Java @see org.terarkdb.AbstractSlice subclass Objects. */ public abstract class AbstractSlice extends RocksMutableObject { @@ -39,7 +39,7 @@ protected AbstractSlice(final long nativeHandle) { * * @return The slice data. Note, the type of access is * determined by the subclass - * @see org.rocksdb.AbstractSlice#data0(long) + * @see org.terarkdb.AbstractSlice#data0(long) */ public T data() { return data0(getNativeHandle()); diff --git a/java/src/main/java/org/rocksdb/AbstractTransactionNotifier.java b/java/src/main/java/org/terarkdb/AbstractTransactionNotifier.java similarity index 98% rename from java/src/main/java/org/rocksdb/AbstractTransactionNotifier.java rename to java/src/main/java/org/terarkdb/AbstractTransactionNotifier.java index cbb49836d1..10b5caa222 100644 --- a/java/src/main/java/org/rocksdb/AbstractTransactionNotifier.java +++ b/java/src/main/java/org/terarkdb/AbstractTransactionNotifier.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Provides notification to the caller of SetSnapshotOnNextOperation when diff --git a/java/src/main/java/org/rocksdb/AbstractWriteBatch.java b/java/src/main/java/org/terarkdb/AbstractWriteBatch.java similarity index 99% rename from java/src/main/java/org/rocksdb/AbstractWriteBatch.java rename to java/src/main/java/org/terarkdb/AbstractWriteBatch.java index 9de0eb43c5..821d5b6cee 100644 --- a/java/src/main/java/org/rocksdb/AbstractWriteBatch.java +++ b/java/src/main/java/org/terarkdb/AbstractWriteBatch.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public abstract class AbstractWriteBatch extends RocksObject implements WriteBatchInterface { diff --git a/java/src/main/java/org/rocksdb/AccessHint.java b/java/src/main/java/org/terarkdb/AccessHint.java similarity index 98% rename from java/src/main/java/org/rocksdb/AccessHint.java rename to java/src/main/java/org/terarkdb/AccessHint.java index 877c4ab39a..3ccc8ca5df 100644 --- a/java/src/main/java/org/rocksdb/AccessHint.java +++ b/java/src/main/java/org/terarkdb/AccessHint.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * File access pattern once a compaction has started diff --git a/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java b/java/src/main/java/org/terarkdb/AdvancedColumnFamilyOptionsInterface.java similarity index 98% rename from java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java rename to java/src/main/java/org/terarkdb/AdvancedColumnFamilyOptionsInterface.java index 7f9333106c..37c7962103 100644 --- a/java/src/main/java/org/rocksdb/AdvancedColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/terarkdb/AdvancedColumnFamilyOptionsInterface.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.List; @@ -193,7 +193,7 @@ T setInplaceUpdateSupport( *

Default: empty

* * @param compressionLevels list of - * {@link org.rocksdb.CompressionType} instances. + * {@link org.terarkdb.CompressionType} instances. * * @return the reference to the current options. */ @@ -201,12 +201,12 @@ T setCompressionPerLevel( List compressionLevels); /** - *

Return the currently set {@link org.rocksdb.CompressionType} + *

Return the currently set {@link org.terarkdb.CompressionType} * per instances.

* *

See: {@link #setCompressionPerLevel(java.util.List)}

* - * @return list of {@link org.rocksdb.CompressionType} + * @return list of {@link org.terarkdb.CompressionType} * instances. */ List compressionPerLevel(); diff --git a/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java b/java/src/main/java/org/terarkdb/AdvancedMutableColumnFamilyOptionsInterface.java similarity index 99% rename from java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java rename to java/src/main/java/org/terarkdb/AdvancedMutableColumnFamilyOptionsInterface.java index 092fe37843..caa74cac49 100644 --- a/java/src/main/java/org/rocksdb/AdvancedMutableColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/terarkdb/AdvancedMutableColumnFamilyOptionsInterface.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Advanced Column Family Options which are mutable diff --git a/java/src/main/java/org/rocksdb/BackupEngine.java b/java/src/main/java/org/terarkdb/BackupEngine.java similarity index 99% rename from java/src/main/java/org/rocksdb/BackupEngine.java rename to java/src/main/java/org/terarkdb/BackupEngine.java index f22e8901c8..3e80b30a8b 100644 --- a/java/src/main/java/org/rocksdb/BackupEngine.java +++ b/java/src/main/java/org/terarkdb/BackupEngine.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.List; diff --git a/java/src/main/java/org/rocksdb/BackupInfo.java b/java/src/main/java/org/terarkdb/BackupInfo.java similarity index 93% rename from java/src/main/java/org/rocksdb/BackupInfo.java rename to java/src/main/java/org/terarkdb/BackupInfo.java index 9244e4eb19..73af6f86fc 100644 --- a/java/src/main/java/org/rocksdb/BackupInfo.java +++ b/java/src/main/java/org/terarkdb/BackupInfo.java @@ -2,17 +2,17 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Instances of this class describe a Backup made by - * {@link org.rocksdb.BackupEngine}. + * {@link org.terarkdb.BackupEngine}. */ public class BackupInfo { /** * Package private constructor used to create instances - * of BackupInfo by {@link org.rocksdb.BackupEngine} + * of BackupInfo by {@link org.terarkdb.BackupEngine} * * @param backupId id of backup * @param timestamp timestamp of backup diff --git a/java/src/main/java/org/rocksdb/BackupableDBOptions.java b/java/src/main/java/org/terarkdb/BackupableDBOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/BackupableDBOptions.java rename to java/src/main/java/org/terarkdb/BackupableDBOptions.java index 8bb41433f2..73ef20a268 100644 --- a/java/src/main/java/org/rocksdb/BackupableDBOptions.java +++ b/java/src/main/java/org/terarkdb/BackupableDBOptions.java @@ -3,18 +3,18 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.io.File; /** *

BackupableDBOptions to control the behavior of a backupable database. - * It will be used during the creation of a {@link org.rocksdb.BackupEngine}. + * It will be used during the creation of a {@link org.terarkdb.BackupEngine}. *

*

Note that dispose() must be called before an Options instance * become out-of-scope to release the allocated memory in c++.

* - * @see org.rocksdb.BackupEngine + * @see org.terarkdb.BackupEngine */ public class BackupableDBOptions extends RocksObject { diff --git a/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java b/java/src/main/java/org/terarkdb/BlockBasedTableConfig.java similarity index 96% rename from java/src/main/java/org/rocksdb/BlockBasedTableConfig.java rename to java/src/main/java/org/terarkdb/BlockBasedTableConfig.java index 1032be6e79..c209ce7e3b 100644 --- a/java/src/main/java/org/rocksdb/BlockBasedTableConfig.java +++ b/java/src/main/java/org/terarkdb/BlockBasedTableConfig.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * The config for plain table sst format. @@ -80,13 +80,13 @@ public long blockCacheSize() { * Use the specified cache for blocks. * When not null this take precedence even if the user sets a block cache size. * - * {@link org.rocksdb.Cache} should not be disposed before options instances + * {@link org.terarkdb.Cache} should not be disposed before options instances * using this cache is disposed. * - * {@link org.rocksdb.Cache} instance can be re-used in multiple options + * {@link org.terarkdb.Cache} instance can be re-used in multiple options * instances. * - * @param cache {@link org.rocksdb.Cache} Cache java instance (e.g. LRUCache). + * @param cache {@link org.terarkdb.Cache} Cache java instance (e.g. LRUCache). * @return the reference to the current config. */ public BlockBasedTableConfig setBlockCache(final Cache cache) { @@ -209,14 +209,14 @@ public boolean wholeKeyFiltering() { /** * Use the specified filter policy to reduce disk reads. * - * {@link org.rocksdb.Filter} should not be disposed before options instances + * {@link org.terarkdb.Filter} should not be disposed before options instances * using this filter is disposed. If {@link Filter#dispose()} function is not * called, then filter object will be GC'd automatically. * - * {@link org.rocksdb.Filter} instance can be re-used in multiple options + * {@link org.terarkdb.Filter} instance can be re-used in multiple options * instances. * - * @param filter {@link org.rocksdb.Filter} Filter Policy java instance. + * @param filter {@link org.terarkdb.Filter} Filter Policy java instance. * @return the reference to the current config. */ public BlockBasedTableConfig setFilter( @@ -442,7 +442,7 @@ public BlockBasedTableConfig setBlockCacheCompressedNumShardBits( /** * Sets the checksum type to be used with this table. * - * @param checksumType {@link org.rocksdb.ChecksumType} value. + * @param checksumType {@link org.terarkdb.ChecksumType} value. * @return the reference to the current option. */ public BlockBasedTableConfig setChecksumType( @@ -462,7 +462,7 @@ public ChecksumType checksumType() { /** * Sets the index type to used with this table. * - * @param indexType {@link org.rocksdb.IndexType} value + * @param indexType {@link org.terarkdb.IndexType} value * @return the reference to the current option. */ public BlockBasedTableConfig setIndexType( diff --git a/java/src/main/java/org/rocksdb/BloomFilter.java b/java/src/main/java/org/terarkdb/BloomFilter.java similarity index 99% rename from java/src/main/java/org/rocksdb/BloomFilter.java rename to java/src/main/java/org/terarkdb/BloomFilter.java index 316c3ad838..010c959bd7 100644 --- a/java/src/main/java/org/rocksdb/BloomFilter.java +++ b/java/src/main/java/org/terarkdb/BloomFilter.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Bloom filter policy that uses a bloom filter with approximately diff --git a/java/src/main/java/org/rocksdb/BuiltinComparator.java b/java/src/main/java/org/terarkdb/BuiltinComparator.java similarity index 96% rename from java/src/main/java/org/rocksdb/BuiltinComparator.java rename to java/src/main/java/org/terarkdb/BuiltinComparator.java index 2c89bf218d..eb5d5089af 100644 --- a/java/src/main/java/org/rocksdb/BuiltinComparator.java +++ b/java/src/main/java/org/terarkdb/BuiltinComparator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Builtin RocksDB comparators diff --git a/java/src/main/java/org/rocksdb/Cache.java b/java/src/main/java/org/terarkdb/Cache.java similarity index 94% rename from java/src/main/java/org/rocksdb/Cache.java rename to java/src/main/java/org/terarkdb/Cache.java index 3952e1d109..43320bbd5f 100644 --- a/java/src/main/java/org/rocksdb/Cache.java +++ b/java/src/main/java/org/terarkdb/Cache.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public abstract class Cache extends RocksObject { diff --git a/java/src/main/java/org/rocksdb/CassandraCompactionFilter.java b/java/src/main/java/org/terarkdb/CassandraCompactionFilter.java similarity index 97% rename from java/src/main/java/org/rocksdb/CassandraCompactionFilter.java rename to java/src/main/java/org/terarkdb/CassandraCompactionFilter.java index 6c87cc1884..0ae489b4bf 100644 --- a/java/src/main/java/org/rocksdb/CassandraCompactionFilter.java +++ b/java/src/main/java/org/terarkdb/CassandraCompactionFilter.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Just a Java wrapper around CassandraCompactionFilter implemented in C++ diff --git a/java/src/main/java/org/rocksdb/CassandraValueMergeOperator.java b/java/src/main/java/org/terarkdb/CassandraValueMergeOperator.java similarity index 97% rename from java/src/main/java/org/rocksdb/CassandraValueMergeOperator.java rename to java/src/main/java/org/terarkdb/CassandraValueMergeOperator.java index 4b0c71ba5a..bd6e5d842b 100644 --- a/java/src/main/java/org/rocksdb/CassandraValueMergeOperator.java +++ b/java/src/main/java/org/terarkdb/CassandraValueMergeOperator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * CassandraValueMergeOperator is a merge operator that merges two cassandra wide column diff --git a/java/src/main/java/org/rocksdb/Checkpoint.java b/java/src/main/java/org/terarkdb/Checkpoint.java similarity index 99% rename from java/src/main/java/org/rocksdb/Checkpoint.java rename to java/src/main/java/org/terarkdb/Checkpoint.java index aee2dea59d..295cdd43d8 100644 --- a/java/src/main/java/org/rocksdb/Checkpoint.java +++ b/java/src/main/java/org/terarkdb/Checkpoint.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Provides Checkpoint functionality. Checkpoints diff --git a/java/src/main/java/org/rocksdb/ChecksumType.java b/java/src/main/java/org/terarkdb/ChecksumType.java similarity index 97% rename from java/src/main/java/org/rocksdb/ChecksumType.java rename to java/src/main/java/org/terarkdb/ChecksumType.java index def9f2e9f4..e991d6d7d0 100644 --- a/java/src/main/java/org/rocksdb/ChecksumType.java +++ b/java/src/main/java/org/terarkdb/ChecksumType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Checksum types used in conjunction with BlockBasedTable. diff --git a/java/src/main/java/org/rocksdb/ClockCache.java b/java/src/main/java/org/terarkdb/ClockCache.java similarity index 99% rename from java/src/main/java/org/rocksdb/ClockCache.java rename to java/src/main/java/org/terarkdb/ClockCache.java index a66dc0e8a7..a8b3b65e2c 100644 --- a/java/src/main/java/org/rocksdb/ClockCache.java +++ b/java/src/main/java/org/terarkdb/ClockCache.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Similar to {@link LRUCache}, but based on the CLOCK algorithm with diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java b/java/src/main/java/org/terarkdb/ColumnFamilyDescriptor.java similarity index 99% rename from java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java rename to java/src/main/java/org/terarkdb/ColumnFamilyDescriptor.java index 8bb570e5d3..924e812e29 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyDescriptor.java +++ b/java/src/main/java/org/terarkdb/ColumnFamilyDescriptor.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Arrays; diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java b/java/src/main/java/org/terarkdb/ColumnFamilyHandle.java similarity index 99% rename from java/src/main/java/org/rocksdb/ColumnFamilyHandle.java rename to java/src/main/java/org/terarkdb/ColumnFamilyHandle.java index 9cda136b79..343a546cd1 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyHandle.java +++ b/java/src/main/java/org/terarkdb/ColumnFamilyHandle.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Arrays; import java.util.Objects; diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java b/java/src/main/java/org/terarkdb/ColumnFamilyOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/ColumnFamilyOptions.java rename to java/src/main/java/org/terarkdb/ColumnFamilyOptions.java index 9b3f98b083..2a797ed45a 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyOptions.java +++ b/java/src/main/java/org/terarkdb/ColumnFamilyOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.ArrayList; import java.util.List; @@ -11,7 +11,7 @@ /** * ColumnFamilyOptions to control the behavior of a database. It will be used - * during the creation of a {@link org.rocksdb.RocksDB} (i.e., RocksDB.open()). + * during the creation of a {@link org.terarkdb.RocksDB} (i.e., RocksDB.open()). * * If {@link #dispose()} function is not called, then it will be GC'd * automatically and native resources will be released as part of the process. @@ -77,7 +77,7 @@ public ColumnFamilyOptions(ColumnFamilyOptions other) { * * @param properties {@link java.util.Properties} instance. * - * @return {@link org.rocksdb.ColumnFamilyOptions instance} + * @return {@link org.terarkdb.ColumnFamilyOptions instance} * or null. * * @throws java.lang.IllegalArgumentException if null or empty diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java b/java/src/main/java/org/terarkdb/ColumnFamilyOptionsInterface.java similarity index 99% rename from java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java rename to java/src/main/java/org/terarkdb/ColumnFamilyOptionsInterface.java index 66673cc71b..0dbcc1261c 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/terarkdb/ColumnFamilyOptionsInterface.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public interface ColumnFamilyOptionsInterface @@ -295,7 +295,7 @@ T setMaxTableFilesSizeFIFO( * Memtable format can be set using setTableFormatConfig. * * @return the name of the currently-used memtable factory. - * @see #setTableFormatConfig(org.rocksdb.TableFormatConfig) + * @see #setTableFormatConfig(org.terarkdb.TableFormatConfig) */ String memTableFactoryName(); diff --git a/java/src/main/java/org/rocksdb/CompactRangeOptions.java b/java/src/main/java/org/terarkdb/CompactRangeOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/CompactRangeOptions.java rename to java/src/main/java/org/terarkdb/CompactRangeOptions.java index e8c892110c..c1b4d065f2 100644 --- a/java/src/main/java/org/rocksdb/CompactRangeOptions.java +++ b/java/src/main/java/org/terarkdb/CompactRangeOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * CompactRangeOptions is used by CompactRange() call. In the documentation of the methods "the compaction" refers to diff --git a/java/src/main/java/org/rocksdb/CompactionOptionsUniversal.java b/java/src/main/java/org/terarkdb/CompactionOptionsUniversal.java similarity index 99% rename from java/src/main/java/org/rocksdb/CompactionOptionsUniversal.java rename to java/src/main/java/org/terarkdb/CompactionOptionsUniversal.java index d2dfa4eef1..483faebf9a 100644 --- a/java/src/main/java/org/rocksdb/CompactionOptionsUniversal.java +++ b/java/src/main/java/org/terarkdb/CompactionOptionsUniversal.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Options for Universal Compaction diff --git a/java/src/main/java/org/rocksdb/CompactionPriority.java b/java/src/main/java/org/terarkdb/CompactionPriority.java similarity index 95% rename from java/src/main/java/org/rocksdb/CompactionPriority.java rename to java/src/main/java/org/terarkdb/CompactionPriority.java index a4f53cd64c..4bef1f950c 100644 --- a/java/src/main/java/org/rocksdb/CompactionPriority.java +++ b/java/src/main/java/org/terarkdb/CompactionPriority.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Compaction Priorities @@ -56,7 +56,7 @@ public byte getValue() { * * @param value byte representation of CompactionPriority. * - * @return {@link org.rocksdb.CompactionPriority} instance or null. + * @return {@link org.terarkdb.CompactionPriority} instance or null. * @throws java.lang.IllegalArgumentException if an invalid * value is provided. */ diff --git a/java/src/main/java/org/rocksdb/CompactionStopStyle.java b/java/src/main/java/org/terarkdb/CompactionStopStyle.java similarity index 92% rename from java/src/main/java/org/rocksdb/CompactionStopStyle.java rename to java/src/main/java/org/terarkdb/CompactionStopStyle.java index 13cc873c36..a46bdff736 100644 --- a/java/src/main/java/org/rocksdb/CompactionStopStyle.java +++ b/java/src/main/java/org/terarkdb/CompactionStopStyle.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** * Algorithm used to make a compaction request stop picking new files @@ -37,7 +37,7 @@ public byte getValue() { * * @param value byte representation of CompactionStopStyle. * - * @return {@link org.rocksdb.CompactionStopStyle} instance or null. + * @return {@link org.terarkdb.CompactionStopStyle} instance or null. * @throws java.lang.IllegalArgumentException if an invalid * value is provided. */ diff --git a/java/src/main/java/org/rocksdb/CompactionStyle.java b/java/src/main/java/org/terarkdb/CompactionStyle.java similarity index 98% rename from java/src/main/java/org/rocksdb/CompactionStyle.java rename to java/src/main/java/org/terarkdb/CompactionStyle.java index 5e13363c44..1b775e0a40 100644 --- a/java/src/main/java/org/rocksdb/CompactionStyle.java +++ b/java/src/main/java/org/terarkdb/CompactionStyle.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Enum CompactionStyle diff --git a/java/src/main/java/org/rocksdb/Comparator.java b/java/src/main/java/org/terarkdb/Comparator.java similarity index 88% rename from java/src/main/java/org/rocksdb/Comparator.java rename to java/src/main/java/org/terarkdb/Comparator.java index 4d06073f26..381dd38131 100644 --- a/java/src/main/java/org/rocksdb/Comparator.java +++ b/java/src/main/java/org/terarkdb/Comparator.java @@ -3,16 +3,16 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Base class for comparators which will receive - * byte[] based access via org.rocksdb.Slice in their + * byte[] based access via org.terarkdb.Slice in their * compare method implementation. * * byte[] based slices perform better when small keys * are involved. When using larger keys consider - * using @see org.rocksdb.DirectComparator + * using @see org.terarkdb.DirectComparator */ public abstract class Comparator extends AbstractComparator { diff --git a/java/src/main/java/org/rocksdb/ComparatorOptions.java b/java/src/main/java/org/terarkdb/ComparatorOptions.java similarity index 98% rename from java/src/main/java/org/rocksdb/ComparatorOptions.java rename to java/src/main/java/org/terarkdb/ComparatorOptions.java index 3a05befa44..daee277c47 100644 --- a/java/src/main/java/org/rocksdb/ComparatorOptions.java +++ b/java/src/main/java/org/terarkdb/ComparatorOptions.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** * This class controls the behaviour diff --git a/java/src/main/java/org/rocksdb/ComparatorType.java b/java/src/main/java/org/terarkdb/ComparatorType.java similarity index 98% rename from java/src/main/java/org/rocksdb/ComparatorType.java rename to java/src/main/java/org/terarkdb/ComparatorType.java index df8b475907..3e7b7fd60b 100644 --- a/java/src/main/java/org/rocksdb/ComparatorType.java +++ b/java/src/main/java/org/terarkdb/ComparatorType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; enum ComparatorType { JAVA_COMPARATOR((byte)0x0), diff --git a/java/src/main/java/org/rocksdb/CompressionOptions.java b/java/src/main/java/org/terarkdb/CompressionOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/CompressionOptions.java rename to java/src/main/java/org/terarkdb/CompressionOptions.java index 4927770e52..f0434a94db 100644 --- a/java/src/main/java/org/rocksdb/CompressionOptions.java +++ b/java/src/main/java/org/terarkdb/CompressionOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Options for Compression diff --git a/java/src/main/java/org/rocksdb/CompressionType.java b/java/src/main/java/org/terarkdb/CompressionType.java similarity index 99% rename from java/src/main/java/org/rocksdb/CompressionType.java rename to java/src/main/java/org/terarkdb/CompressionType.java index 2781537c88..520b2b117d 100644 --- a/java/src/main/java/org/rocksdb/CompressionType.java +++ b/java/src/main/java/org/terarkdb/CompressionType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Enum CompressionType diff --git a/java/src/main/java/org/rocksdb/DBOptions.java b/java/src/main/java/org/terarkdb/DBOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/DBOptions.java rename to java/src/main/java/org/terarkdb/DBOptions.java index ea5c17d7e3..5fb6cfe6ad 100644 --- a/java/src/main/java/org/rocksdb/DBOptions.java +++ b/java/src/main/java/org/terarkdb/DBOptions.java @@ -3,14 +3,14 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.nio.file.Paths; import java.util.*; /** * DBOptions to control the behavior of a database. It will be used - * during the creation of a {@link org.rocksdb.RocksDB} (i.e., RocksDB.open()). + * during the creation of a {@link org.terarkdb.RocksDB} (i.e., RocksDB.open()). * * If {@link #dispose()} function is not called, then it will be GC'd * automatically and native resources will be released as part of the process. @@ -62,7 +62,7 @@ public DBOptions(DBOptions other) { * * @param properties {@link java.util.Properties} instance. * - * @return {@link org.rocksdb.DBOptions instance} + * @return {@link org.terarkdb.DBOptions instance} * or null. * * @throws java.lang.IllegalArgumentException if null or empty diff --git a/java/src/main/java/org/rocksdb/DBOptionsInterface.java b/java/src/main/java/org/terarkdb/DBOptionsInterface.java similarity index 99% rename from java/src/main/java/org/rocksdb/DBOptionsInterface.java rename to java/src/main/java/org/terarkdb/DBOptionsInterface.java index 2210aff56b..587b2e4a9d 100644 --- a/java/src/main/java/org/rocksdb/DBOptionsInterface.java +++ b/java/src/main/java/org/terarkdb/DBOptionsInterface.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Collection; import java.util.List; @@ -56,10 +56,10 @@ public interface DBOptionsInterface { * Default: false * * @param flag a flag indicating whether to create a database the - * specified database in {@link RocksDB#open(org.rocksdb.Options, String)} operation + * specified database in {@link RocksDB#open(org.terarkdb.Options, String)} operation * is missing. * @return the instance of the current Options - * @see RocksDB#open(org.rocksdb.Options, String) + * @see RocksDB#open(org.terarkdb.Options, String) */ T setCreateIfMissing(boolean flag); @@ -102,7 +102,7 @@ public interface DBOptionsInterface { * @param errorIfExists if true, an exception will be thrown * during {@code RocksDB.open()} if the database already exists. * @return the reference to the current option. - * @see RocksDB#open(org.rocksdb.Options, String) + * @see RocksDB#open(org.terarkdb.Options, String) */ T setErrorIfExists(boolean errorIfExists); @@ -151,7 +151,7 @@ public interface DBOptionsInterface { * priority than compaction. Rate limiting is disabled if nullptr. * Default: nullptr * - * @param rateLimiter {@link org.rocksdb.RateLimiter} instance. + * @param rateLimiter {@link org.terarkdb.RateLimiter} instance. * @return the instance of the current object. * * @since 3.10.0 @@ -200,7 +200,7 @@ public interface DBOptionsInterface { /** *

Returns currently set log level.

- * @return {@link org.rocksdb.InfoLogLevel} instance. + * @return {@link org.terarkdb.InfoLogLevel} instance. */ InfoLogLevel infoLogLevel(); @@ -294,7 +294,7 @@ public interface DBOptionsInterface { * * @return the instance of the current object. * - * @see RocksDB#open(org.rocksdb.Options, String) + * @see RocksDB#open(org.terarkdb.Options, String) */ T setStatistics(final Statistics statistics); diff --git a/java/src/main/java/org/rocksdb/DbPath.java b/java/src/main/java/org/terarkdb/DbPath.java similarity index 98% rename from java/src/main/java/org/rocksdb/DbPath.java rename to java/src/main/java/org/terarkdb/DbPath.java index 3f0b67557c..ea8007eca8 100644 --- a/java/src/main/java/org/rocksdb/DbPath.java +++ b/java/src/main/java/org/terarkdb/DbPath.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.nio.file.Path; diff --git a/java/src/main/java/org/rocksdb/DirectComparator.java b/java/src/main/java/org/terarkdb/DirectComparator.java similarity index 89% rename from java/src/main/java/org/rocksdb/DirectComparator.java rename to java/src/main/java/org/terarkdb/DirectComparator.java index e33004f5d8..d345bbec76 100644 --- a/java/src/main/java/org/rocksdb/DirectComparator.java +++ b/java/src/main/java/org/terarkdb/DirectComparator.java @@ -3,16 +3,16 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Base class for comparators which will receive - * ByteBuffer based access via org.rocksdb.DirectSlice + * ByteBuffer based access via org.terarkdb.DirectSlice * in their compare method implementation. * * ByteBuffer based slices perform better when large keys * are involved. When using smaller keys consider - * using @see org.rocksdb.Comparator + * using @see org.terarkdb.Comparator */ public abstract class DirectComparator extends AbstractComparator { diff --git a/java/src/main/java/org/rocksdb/DirectSlice.java b/java/src/main/java/org/terarkdb/DirectSlice.java similarity index 98% rename from java/src/main/java/org/rocksdb/DirectSlice.java rename to java/src/main/java/org/terarkdb/DirectSlice.java index b0d35c3cc5..ecf6d6df8f 100644 --- a/java/src/main/java/org/rocksdb/DirectSlice.java +++ b/java/src/main/java/org/terarkdb/DirectSlice.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.nio.ByteBuffer; @@ -13,7 +13,7 @@ * * ByteBuffer backed slices typically perform better with * larger keys and values. When using smaller keys and - * values consider using @see org.rocksdb.Slice + * values consider using @see org.terarkdb.Slice */ public class DirectSlice extends AbstractSlice { public final static DirectSlice NONE = new DirectSlice(); diff --git a/java/src/main/java/org/rocksdb/EncodingType.java b/java/src/main/java/org/terarkdb/EncodingType.java similarity index 98% rename from java/src/main/java/org/rocksdb/EncodingType.java rename to java/src/main/java/org/terarkdb/EncodingType.java index 5ceeb54c82..a6b0bd894a 100644 --- a/java/src/main/java/org/rocksdb/EncodingType.java +++ b/java/src/main/java/org/terarkdb/EncodingType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * EncodingType diff --git a/java/src/main/java/org/rocksdb/Env.java b/java/src/main/java/org/terarkdb/Env.java similarity index 96% rename from java/src/main/java/org/rocksdb/Env.java rename to java/src/main/java/org/terarkdb/Env.java index a46f06178d..fb8234fabb 100644 --- a/java/src/main/java/org/rocksdb/Env.java +++ b/java/src/main/java/org/terarkdb/Env.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Base class for all Env implementations in RocksDB. @@ -21,7 +21,7 @@ public abstract class Env extends RocksObject { * have the ownership of its c++ resource, and calling its dispose() * will be no-op.

* - * @return the default {@link org.rocksdb.RocksEnv} instance. + * @return the default {@link org.terarkdb.RocksEnv} instance. */ public static Env getDefault() { return default_env_; diff --git a/java/src/main/java/org/rocksdb/EnvOptions.java b/java/src/main/java/org/terarkdb/EnvOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/EnvOptions.java rename to java/src/main/java/org/terarkdb/EnvOptions.java index 2bca0355e4..f26a17bd58 100644 --- a/java/src/main/java/org/rocksdb/EnvOptions.java +++ b/java/src/main/java/org/terarkdb/EnvOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public class EnvOptions extends RocksObject { static { diff --git a/java/src/main/java/org/rocksdb/Experimental.java b/java/src/main/java/org/terarkdb/Experimental.java similarity index 97% rename from java/src/main/java/org/rocksdb/Experimental.java rename to java/src/main/java/org/terarkdb/Experimental.java index 64b404d6f1..ee31dcb0ea 100644 --- a/java/src/main/java/org/rocksdb/Experimental.java +++ b/java/src/main/java/org/terarkdb/Experimental.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.lang.annotation.ElementType; import java.lang.annotation.Documented; diff --git a/java/src/main/java/org/rocksdb/Filter.java b/java/src/main/java/org/terarkdb/Filter.java similarity index 97% rename from java/src/main/java/org/rocksdb/Filter.java rename to java/src/main/java/org/terarkdb/Filter.java index 011be20856..7314d127f8 100644 --- a/java/src/main/java/org/rocksdb/Filter.java +++ b/java/src/main/java/org/terarkdb/Filter.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Filters are stored in rocksdb and are consulted automatically diff --git a/java/src/main/java/org/rocksdb/FlinkCompactionFilter.java b/java/src/main/java/org/terarkdb/FlinkCompactionFilter.java similarity index 99% rename from java/src/main/java/org/rocksdb/FlinkCompactionFilter.java rename to java/src/main/java/org/terarkdb/FlinkCompactionFilter.java index 577b7547a5..ab4ea2d497 100644 --- a/java/src/main/java/org/rocksdb/FlinkCompactionFilter.java +++ b/java/src/main/java/org/terarkdb/FlinkCompactionFilter.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). - package org.rocksdb; + package org.terarkdb; /** * Just a Java wrapper around FlinkCompactionFilter implemented in C++. diff --git a/java/src/main/java/org/rocksdb/FlushOptions.java b/java/src/main/java/org/terarkdb/FlushOptions.java similarity index 95% rename from java/src/main/java/org/rocksdb/FlushOptions.java rename to java/src/main/java/org/terarkdb/FlushOptions.java index ce54a528bf..5e92e28549 100644 --- a/java/src/main/java/org/rocksdb/FlushOptions.java +++ b/java/src/main/java/org/terarkdb/FlushOptions.java @@ -1,8 +1,8 @@ -package org.rocksdb; +package org.terarkdb; /** * FlushOptions to be passed to flush operations of - * {@link org.rocksdb.RocksDB}. + * {@link org.terarkdb.RocksDB}. */ public class FlushOptions extends RocksObject { static { diff --git a/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java b/java/src/main/java/org/terarkdb/HashLinkedListMemTableConfig.java similarity index 99% rename from java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java rename to java/src/main/java/org/terarkdb/HashLinkedListMemTableConfig.java index d56c46c290..85cb22e1d0 100644 --- a/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java +++ b/java/src/main/java/org/terarkdb/HashLinkedListMemTableConfig.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** * The config for hash linked list memtable representation diff --git a/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java b/java/src/main/java/org/terarkdb/HashSkipListMemTableConfig.java similarity index 99% rename from java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java rename to java/src/main/java/org/terarkdb/HashSkipListMemTableConfig.java index fe1779b1cf..3fc7714e90 100644 --- a/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java +++ b/java/src/main/java/org/terarkdb/HashSkipListMemTableConfig.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** * The config for hash skip-list mem-table representation. diff --git a/java/src/main/java/org/rocksdb/HistogramData.java b/java/src/main/java/org/terarkdb/HistogramData.java similarity index 98% rename from java/src/main/java/org/rocksdb/HistogramData.java rename to java/src/main/java/org/terarkdb/HistogramData.java index 11798eb59f..0b89a069bd 100644 --- a/java/src/main/java/org/rocksdb/HistogramData.java +++ b/java/src/main/java/org/terarkdb/HistogramData.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public class HistogramData { private final double median_; diff --git a/java/src/main/java/org/rocksdb/HistogramType.java b/java/src/main/java/org/terarkdb/HistogramType.java similarity index 98% rename from java/src/main/java/org/rocksdb/HistogramType.java rename to java/src/main/java/org/terarkdb/HistogramType.java index 2d95f5149f..8db17bc54e 100644 --- a/java/src/main/java/org/rocksdb/HistogramType.java +++ b/java/src/main/java/org/terarkdb/HistogramType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public enum HistogramType { diff --git a/java/src/main/java/org/rocksdb/IndexType.java b/java/src/main/java/org/terarkdb/IndexType.java similarity index 97% rename from java/src/main/java/org/rocksdb/IndexType.java rename to java/src/main/java/org/terarkdb/IndexType.java index e0c113d39a..8c91275aa9 100644 --- a/java/src/main/java/org/rocksdb/IndexType.java +++ b/java/src/main/java/org/terarkdb/IndexType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * IndexType used in conjunction with BlockBasedTable. diff --git a/java/src/main/java/org/rocksdb/InfoLogLevel.java b/java/src/main/java/org/terarkdb/InfoLogLevel.java similarity index 92% rename from java/src/main/java/org/rocksdb/InfoLogLevel.java rename to java/src/main/java/org/terarkdb/InfoLogLevel.java index 2c97991b5b..aa8cb8ef12 100644 --- a/java/src/main/java/org/rocksdb/InfoLogLevel.java +++ b/java/src/main/java/org/terarkdb/InfoLogLevel.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** * RocksDB log levels. @@ -32,7 +32,7 @@ public byte getValue() { * * @param value byte representation of InfoLogLevel. * - * @return {@link org.rocksdb.InfoLogLevel} instance. + * @return {@link org.terarkdb.InfoLogLevel} instance. * @throws java.lang.IllegalArgumentException if an invalid * value is provided. */ diff --git a/java/src/main/java/org/rocksdb/IngestExternalFileOptions.java b/java/src/main/java/org/terarkdb/IngestExternalFileOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/IngestExternalFileOptions.java rename to java/src/main/java/org/terarkdb/IngestExternalFileOptions.java index 7343691817..9d8dc922e3 100644 --- a/java/src/main/java/org/rocksdb/IngestExternalFileOptions.java +++ b/java/src/main/java/org/terarkdb/IngestExternalFileOptions.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/java/src/main/java/org/rocksdb/LRUCache.java b/java/src/main/java/org/terarkdb/LRUCache.java similarity index 99% rename from java/src/main/java/org/rocksdb/LRUCache.java rename to java/src/main/java/org/terarkdb/LRUCache.java index 5e5bdeea27..f057e298f9 100644 --- a/java/src/main/java/org/rocksdb/LRUCache.java +++ b/java/src/main/java/org/terarkdb/LRUCache.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Least Recently Used Cache diff --git a/java/src/main/java/org/rocksdb/Logger.java b/java/src/main/java/org/terarkdb/Logger.java similarity index 84% rename from java/src/main/java/org/rocksdb/Logger.java rename to java/src/main/java/org/terarkdb/Logger.java index 41ee3a3dd5..cf59737faf 100644 --- a/java/src/main/java/org/rocksdb/Logger.java +++ b/java/src/main/java/org/terarkdb/Logger.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** *

This class provides a custom logger functionality @@ -20,7 +20,7 @@ *

* *

- * A log level can be set using {@link org.rocksdb.Options} or + * A log level can be set using {@link org.terarkdb.Options} or * {@link Logger#setInfoLogLevel(InfoLogLevel)}. The set log level * influences the underlying native code. Each log message is * checked against the set log level and if the log level is more @@ -31,8 +31,8 @@ *

Every log message which will be emitted by native code will * trigger expensive native to Java transitions. So the preferred * setting for production use is either - * {@link org.rocksdb.InfoLogLevel#ERROR_LEVEL} or - * {@link org.rocksdb.InfoLogLevel#FATAL_LEVEL}. + * {@link org.terarkdb.InfoLogLevel#ERROR_LEVEL} or + * {@link org.terarkdb.InfoLogLevel#FATAL_LEVEL}. *

*/ public abstract class Logger extends RocksCallbackObject { @@ -44,10 +44,10 @@ public abstract class Logger extends RocksCallbackObject { *

AbstractLogger constructor.

* *

Important: the log level set within - * the {@link org.rocksdb.Options} instance will be used as + * the {@link org.terarkdb.Options} instance will be used as * maximum log level of RocksDB.

* - * @param options {@link org.rocksdb.Options} instance. + * @param options {@link org.terarkdb.Options} instance. */ public Logger(final Options options) { super(options.nativeHandle_, WITH_OPTIONS); @@ -58,10 +58,10 @@ public Logger(final Options options) { *

AbstractLogger constructor.

* *

Important: the log level set within - * the {@link org.rocksdb.DBOptions} instance will be used + * the {@link org.terarkdb.DBOptions} instance will be used * as maximum log level of RocksDB.

* - * @param dboptions {@link org.rocksdb.DBOptions} instance. + * @param dboptions {@link org.terarkdb.DBOptions} instance. */ public Logger(final DBOptions dboptions) { super(dboptions.nativeHandle_, WITH_DBOPTIONS); @@ -79,9 +79,9 @@ protected long initializeNative(long... nativeParameterHandles) { } /** - * Set {@link org.rocksdb.InfoLogLevel} to AbstractLogger. + * Set {@link org.terarkdb.InfoLogLevel} to AbstractLogger. * - * @param infoLogLevel {@link org.rocksdb.InfoLogLevel} instance. + * @param infoLogLevel {@link org.terarkdb.InfoLogLevel} instance. */ public void setInfoLogLevel(final InfoLogLevel infoLogLevel) { setInfoLogLevel(nativeHandle_, infoLogLevel.getValue()); @@ -90,7 +90,7 @@ public void setInfoLogLevel(final InfoLogLevel infoLogLevel) { /** * Return the loggers log level. * - * @return {@link org.rocksdb.InfoLogLevel} instance. + * @return {@link org.terarkdb.InfoLogLevel} instance. */ public InfoLogLevel infoLogLevel() { return InfoLogLevel.getInfoLogLevel( diff --git a/java/src/main/java/org/rocksdb/MemTableConfig.java b/java/src/main/java/org/terarkdb/MemTableConfig.java similarity index 98% rename from java/src/main/java/org/rocksdb/MemTableConfig.java rename to java/src/main/java/org/terarkdb/MemTableConfig.java index 83cee974a7..79540f10f5 100644 --- a/java/src/main/java/org/rocksdb/MemTableConfig.java +++ b/java/src/main/java/org/terarkdb/MemTableConfig.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * MemTableConfig is used to config the internal mem-table of a RocksDB. diff --git a/java/src/main/java/org/rocksdb/MemoryUsageType.java b/java/src/main/java/org/terarkdb/MemoryUsageType.java similarity index 98% rename from java/src/main/java/org/rocksdb/MemoryUsageType.java rename to java/src/main/java/org/terarkdb/MemoryUsageType.java index 2ebdf33a32..d84cda7128 100644 --- a/java/src/main/java/org/rocksdb/MemoryUsageType.java +++ b/java/src/main/java/org/terarkdb/MemoryUsageType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * MemoryUsageType diff --git a/java/src/main/java/org/rocksdb/MemoryUtil.java b/java/src/main/java/org/terarkdb/MemoryUtil.java similarity index 99% rename from java/src/main/java/org/rocksdb/MemoryUtil.java rename to java/src/main/java/org/terarkdb/MemoryUtil.java index 52b2175e6b..7262d0b94d 100644 --- a/java/src/main/java/org/rocksdb/MemoryUtil.java +++ b/java/src/main/java/org/terarkdb/MemoryUtil.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.*; diff --git a/java/src/main/java/org/rocksdb/MergeOperator.java b/java/src/main/java/org/terarkdb/MergeOperator.java similarity index 96% rename from java/src/main/java/org/rocksdb/MergeOperator.java rename to java/src/main/java/org/terarkdb/MergeOperator.java index 296527f53f..ffe9c831a4 100644 --- a/java/src/main/java/org/rocksdb/MergeOperator.java +++ b/java/src/main/java/org/terarkdb/MergeOperator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * MergeOperator holds an operator to be applied when compacting diff --git a/java/src/main/java/org/rocksdb/MutableColumnFamilyOptions.java b/java/src/main/java/org/terarkdb/MutableColumnFamilyOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/MutableColumnFamilyOptions.java rename to java/src/main/java/org/terarkdb/MutableColumnFamilyOptions.java index 609839209f..3715ef5484 100644 --- a/java/src/main/java/org/rocksdb/MutableColumnFamilyOptions.java +++ b/java/src/main/java/org/terarkdb/MutableColumnFamilyOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.*; diff --git a/java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java b/java/src/main/java/org/terarkdb/MutableColumnFamilyOptionsInterface.java similarity index 99% rename from java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java rename to java/src/main/java/org/terarkdb/MutableColumnFamilyOptionsInterface.java index 5040e7186a..c6e4e95d44 100644 --- a/java/src/main/java/org/rocksdb/MutableColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/terarkdb/MutableColumnFamilyOptionsInterface.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public interface MutableColumnFamilyOptionsInterface diff --git a/java/src/main/java/org/rocksdb/NativeComparatorWrapper.java b/java/src/main/java/org/terarkdb/NativeComparatorWrapper.java similarity index 98% rename from java/src/main/java/org/rocksdb/NativeComparatorWrapper.java rename to java/src/main/java/org/terarkdb/NativeComparatorWrapper.java index 043ae5dcbd..60a8b63eb8 100644 --- a/java/src/main/java/org/rocksdb/NativeComparatorWrapper.java +++ b/java/src/main/java/org/terarkdb/NativeComparatorWrapper.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * A simple abstraction to allow a Java class to wrap a custom comparator diff --git a/java/src/main/java/org/rocksdb/NativeLibraryLoader.java b/java/src/main/java/org/terarkdb/NativeLibraryLoader.java similarity index 96% rename from java/src/main/java/org/rocksdb/NativeLibraryLoader.java rename to java/src/main/java/org/terarkdb/NativeLibraryLoader.java index cb43340715..30874229a5 100644 --- a/java/src/main/java/org/rocksdb/NativeLibraryLoader.java +++ b/java/src/main/java/org/terarkdb/NativeLibraryLoader.java @@ -1,10 +1,10 @@ -package org.rocksdb; +package org.terarkdb; import java.io.*; import java.nio.file.Files; import java.nio.file.StandardCopyOption; -import org.rocksdb.util.Environment; +import org.terarkdb.util.Environment; /** * This class is used to load the RocksDB shared library from within the jar. @@ -34,7 +34,7 @@ public static NativeLibraryLoader getInstance() { * Firstly attempts to load the library from java.library.path, * if that fails then it falls back to extracting * the library from the classpath - * {@link org.rocksdb.NativeLibraryLoader#loadLibraryFromJar(java.lang.String)} + * {@link org.terarkdb.NativeLibraryLoader#loadLibraryFromJar(java.lang.String)} * * @param tmpDir A temporary directory to use * to copy the native library to when loading from the classpath. diff --git a/java/src/main/java/org/rocksdb/OptimisticTransactionDB.java b/java/src/main/java/org/terarkdb/OptimisticTransactionDB.java similarity index 97% rename from java/src/main/java/org/rocksdb/OptimisticTransactionDB.java rename to java/src/main/java/org/terarkdb/OptimisticTransactionDB.java index 1610dc7390..2aa3f39122 100644 --- a/java/src/main/java/org/rocksdb/OptimisticTransactionDB.java +++ b/java/src/main/java/org/terarkdb/OptimisticTransactionDB.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.List; @@ -27,7 +27,7 @@ private OptimisticTransactionDB(final long nativeHandle) { * Open an OptimisticTransactionDB similar to * {@link RocksDB#open(Options, String)}. * - * @param options {@link org.rocksdb.Options} instance. + * @param options {@link org.terarkdb.Options} instance. * @param path the path to the rocksdb. * * @return a {@link OptimisticTransactionDB} instance on success, null if the @@ -52,7 +52,7 @@ public static OptimisticTransactionDB open(final Options options, * Open an OptimisticTransactionDB similar to * {@link RocksDB#open(DBOptions, String, List, List)}. * - * @param dbOptions {@link org.rocksdb.DBOptions} instance. + * @param dbOptions {@link org.terarkdb.DBOptions} instance. * @param path the path to the rocksdb. * @param columnFamilyDescriptors list of column family descriptors * @param columnFamilyHandles will be filled with ColumnFamilyHandle instances diff --git a/java/src/main/java/org/rocksdb/OptimisticTransactionOptions.java b/java/src/main/java/org/terarkdb/OptimisticTransactionOptions.java similarity index 98% rename from java/src/main/java/org/rocksdb/OptimisticTransactionOptions.java rename to java/src/main/java/org/terarkdb/OptimisticTransactionOptions.java index 650ee22550..e82fe208dd 100644 --- a/java/src/main/java/org/rocksdb/OptimisticTransactionOptions.java +++ b/java/src/main/java/org/terarkdb/OptimisticTransactionOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public class OptimisticTransactionOptions extends RocksObject implements TransactionalOptions { diff --git a/java/src/main/java/org/rocksdb/Options.java b/java/src/main/java/org/terarkdb/Options.java similarity index 99% rename from java/src/main/java/org/rocksdb/Options.java rename to java/src/main/java/org/terarkdb/Options.java index e2ea74d480..8b2452f1cc 100644 --- a/java/src/main/java/org/rocksdb/Options.java +++ b/java/src/main/java/org/terarkdb/Options.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.nio.file.Paths; import java.util.ArrayList; @@ -13,7 +13,7 @@ /** * Options to control the behavior of a database. It will be used - * during the creation of a {@link org.rocksdb.RocksDB} (i.e., RocksDB.open()). + * during the creation of a {@link org.terarkdb.RocksDB} (i.e., RocksDB.open()). * * If {@link #dispose()} function is not called, then it will be GC'd * automaticallyand native resources will be released as part of the process. @@ -40,8 +40,8 @@ public Options() { * Construct options for opening a RocksDB. Reusing database options * and column family options. * - * @param dbOptions {@link org.rocksdb.DBOptions} instance - * @param columnFamilyOptions {@link org.rocksdb.ColumnFamilyOptions} + * @param dbOptions {@link org.terarkdb.DBOptions} instance + * @param columnFamilyOptions {@link org.terarkdb.ColumnFamilyOptions} * instance */ public Options(final DBOptions dbOptions, diff --git a/java/src/main/java/org/rocksdb/OptionsUtil.java b/java/src/main/java/org/terarkdb/OptionsUtil.java similarity index 85% rename from java/src/main/java/org/rocksdb/OptionsUtil.java rename to java/src/main/java/org/terarkdb/OptionsUtil.java index f153556ba3..b6617131bb 100644 --- a/java/src/main/java/org/rocksdb/OptionsUtil.java +++ b/java/src/main/java/org/terarkdb/OptionsUtil.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.ArrayList; import java.util.List; @@ -36,10 +36,10 @@ public class OptionsUtil { * BlockBasedTableOptions and making necessary changes. * * @param dbPath the path to the RocksDB. - * @param env {@link org.rocksdb.Env} instance. - * @param dbOptions {@link org.rocksdb.DBOptions} instance. This will be + * @param env {@link org.terarkdb.Env} instance. + * @param dbOptions {@link org.terarkdb.DBOptions} instance. This will be * filled and returned. - * @param cfDescs A list of {@link org.rocksdb.ColumnFamilyDescriptor}'s be + * @param cfDescs A list of {@link org.terarkdb.ColumnFamilyDescriptor}'s be * returned. * * @throws RocksDBException thrown if error happens in underlying @@ -53,10 +53,10 @@ public static void loadLatestOptions(String dbPath, Env env, DBOptions dbOptions /** * @param dbPath the path to the RocksDB. - * @param env {@link org.rocksdb.Env} instance. - * @param dbOptions {@link org.rocksdb.DBOptions} instance. This will be + * @param env {@link org.terarkdb.Env} instance. + * @param dbOptions {@link org.terarkdb.DBOptions} instance. This will be * filled and returned. - * @param cfDescs A list of {@link org.rocksdb.ColumnFamilyDescriptor}'s be + * @param cfDescs A list of {@link org.terarkdb.ColumnFamilyDescriptor}'s be * returned. * @param ignoreUnknownOptions this flag can be set to true if you want to * ignore options that are from a newer version of the db, esentially for @@ -77,10 +77,10 @@ public static void loadLatestOptions(String dbPath, Env env, DBOptions dbOptions * See LoadLatestOptions above. * * @param optionsFileName the RocksDB options file path. - * @param env {@link org.rocksdb.Env} instance. - * @param dbOptions {@link org.rocksdb.DBOptions} instance. This will be + * @param env {@link org.terarkdb.Env} instance. + * @param dbOptions {@link org.terarkdb.DBOptions} instance. This will be * filled and returned. - * @param cfDescs A list of {@link org.rocksdb.ColumnFamilyDescriptor}'s be + * @param cfDescs A list of {@link org.terarkdb.ColumnFamilyDescriptor}'s be * returned. * * @throws RocksDBException thrown if error happens in underlying @@ -93,10 +93,10 @@ public static void loadOptionsFromFile(String optionsFileName, Env env, DBOption /** * @param optionsFileName the RocksDB options file path. - * @param env {@link org.rocksdb.Env} instance. - * @param dbOptions {@link org.rocksdb.DBOptions} instance. This will be + * @param env {@link org.terarkdb.Env} instance. + * @param dbOptions {@link org.terarkdb.DBOptions} instance. This will be * filled and returned. - * @param cfDescs A list of {@link org.rocksdb.ColumnFamilyDescriptor}'s be + * @param cfDescs A list of {@link org.terarkdb.ColumnFamilyDescriptor}'s be * returned. * @param ignoreUnknownOptions this flag can be set to true if you want to * ignore options that are from a newer version of the db, esentially for @@ -115,7 +115,7 @@ public static void loadOptionsFromFile(String optionsFileName, Env env, DBOption * Returns the latest options file name under the specified RocksDB path. * * @param dbPath the path to the RocksDB. - * @param env {@link org.rocksdb.Env} instance. + * @param env {@link org.terarkdb.Env} instance. * @return the latest options file name under the db path. * * @throws RocksDBException thrown if error happens in underlying diff --git a/java/src/main/java/org/rocksdb/PlainTableConfig.java b/java/src/main/java/org/terarkdb/PlainTableConfig.java similarity index 98% rename from java/src/main/java/org/rocksdb/PlainTableConfig.java rename to java/src/main/java/org/terarkdb/PlainTableConfig.java index c099981678..d2c29cb075 100644 --- a/java/src/main/java/org/rocksdb/PlainTableConfig.java +++ b/java/src/main/java/org/terarkdb/PlainTableConfig.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * The config for plain table sst format. @@ -163,7 +163,7 @@ public int hugePageTlbSize() { * different encoding types can co-exist in the same DB and * can be read.

* - * @param encodingType {@link org.rocksdb.EncodingType} value. + * @param encodingType {@link org.terarkdb.EncodingType} value. * @return the reference to the current config. */ public PlainTableConfig setEncodingType(EncodingType encodingType) { diff --git a/java/src/main/java/org/rocksdb/RateLimiter.java b/java/src/main/java/org/terarkdb/RateLimiter.java similarity index 99% rename from java/src/main/java/org/rocksdb/RateLimiter.java rename to java/src/main/java/org/terarkdb/RateLimiter.java index 4d6cb2129b..893c506544 100644 --- a/java/src/main/java/org/rocksdb/RateLimiter.java +++ b/java/src/main/java/org/terarkdb/RateLimiter.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * RateLimiter, which is used to control write rate of flush and diff --git a/java/src/main/java/org/rocksdb/RateLimiterMode.java b/java/src/main/java/org/terarkdb/RateLimiterMode.java similarity index 98% rename from java/src/main/java/org/rocksdb/RateLimiterMode.java rename to java/src/main/java/org/terarkdb/RateLimiterMode.java index 4b029d8165..8398d2fd64 100644 --- a/java/src/main/java/org/rocksdb/RateLimiterMode.java +++ b/java/src/main/java/org/terarkdb/RateLimiterMode.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Mode for {@link RateLimiter#RateLimiter(long, long, int, RateLimiterMode)}. diff --git a/java/src/main/java/org/rocksdb/ReadOptions.java b/java/src/main/java/org/terarkdb/ReadOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/ReadOptions.java rename to java/src/main/java/org/terarkdb/ReadOptions.java index 1de0ec0230..fb71acf1fe 100644 --- a/java/src/main/java/org/rocksdb/ReadOptions.java +++ b/java/src/main/java/org/terarkdb/ReadOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * The class that controls the get behavior. diff --git a/java/src/main/java/org/rocksdb/ReadTier.java b/java/src/main/java/org/terarkdb/ReadTier.java similarity index 93% rename from java/src/main/java/org/rocksdb/ReadTier.java rename to java/src/main/java/org/terarkdb/ReadTier.java index 78f83f6ad6..cb5150e03b 100644 --- a/java/src/main/java/org/rocksdb/ReadTier.java +++ b/java/src/main/java/org/terarkdb/ReadTier.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * RocksDB {@link ReadOptions} read tiers. @@ -34,7 +34,7 @@ public byte getValue() { * * @param value byte representation of ReadTier. * - * @return {@link org.rocksdb.ReadTier} instance or null. + * @return {@link org.terarkdb.ReadTier} instance or null. * @throws java.lang.IllegalArgumentException if an invalid * value is provided. */ diff --git a/java/src/main/java/org/rocksdb/RemoveEmptyValueCompactionFilter.java b/java/src/main/java/org/terarkdb/RemoveEmptyValueCompactionFilter.java similarity index 96% rename from java/src/main/java/org/rocksdb/RemoveEmptyValueCompactionFilter.java rename to java/src/main/java/org/terarkdb/RemoveEmptyValueCompactionFilter.java index 6ee81d858c..aac374e7e5 100644 --- a/java/src/main/java/org/rocksdb/RemoveEmptyValueCompactionFilter.java +++ b/java/src/main/java/org/terarkdb/RemoveEmptyValueCompactionFilter.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Just a Java wrapper around EmptyValueCompactionFilter implemented in C++ diff --git a/java/src/main/java/org/rocksdb/RestoreOptions.java b/java/src/main/java/org/terarkdb/RestoreOptions.java similarity index 98% rename from java/src/main/java/org/rocksdb/RestoreOptions.java rename to java/src/main/java/org/terarkdb/RestoreOptions.java index 94d93fc719..25a5478e9a 100644 --- a/java/src/main/java/org/rocksdb/RestoreOptions.java +++ b/java/src/main/java/org/terarkdb/RestoreOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * RestoreOptions to control the behavior of restore. diff --git a/java/src/main/java/org/rocksdb/RocksCallbackObject.java b/java/src/main/java/org/terarkdb/RocksCallbackObject.java similarity index 98% rename from java/src/main/java/org/rocksdb/RocksCallbackObject.java rename to java/src/main/java/org/terarkdb/RocksCallbackObject.java index a662f78fd7..ec350f5ac0 100644 --- a/java/src/main/java/org/rocksdb/RocksCallbackObject.java +++ b/java/src/main/java/org/terarkdb/RocksCallbackObject.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * RocksCallbackObject is similar to {@link RocksObject} but varies diff --git a/java/src/main/java/org/rocksdb/RocksDB.java b/java/src/main/java/org/terarkdb/RocksDB.java similarity index 97% rename from java/src/main/java/org/rocksdb/RocksDB.java rename to java/src/main/java/org/terarkdb/RocksDB.java index 23fa1311b9..e94e731edd 100644 --- a/java/src/main/java/org/rocksdb/RocksDB.java +++ b/java/src/main/java/org/terarkdb/RocksDB.java @@ -3,14 +3,14 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.*; import java.io.IOException; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; -import org.rocksdb.util.Environment; +import org.terarkdb.util.Environment; /** * A RocksDB is a persistent ordered map from keys to values. It is safe for @@ -221,7 +221,7 @@ public static RocksDB open(final String path, * with new Options instance as underlying native statistics instance does not * use any locks to prevent concurrent updates.

* - * @param options {@link org.rocksdb.Options} instance. + * @param options {@link org.terarkdb.Options} instance. * @param path the path to the rocksdb. * @return a {@link RocksDB} instance on success, null if the specified * {@link RocksDB} can not be opened. @@ -264,7 +264,7 @@ public static RocksDB open(final Options options, final String path) * ColumnFamily handles are disposed when the RocksDB instance is disposed. *

* - * @param options {@link org.rocksdb.DBOptions} instance. + * @param options {@link org.terarkdb.DBOptions} instance. * @param path the path to the rocksdb. * @param columnFamilyDescriptors list of column family descriptors * @param columnFamilyHandles will be filled with ColumnFamilyHandle instances @@ -493,7 +493,7 @@ public void put(final byte[] key, int offset, int len, final byte[] value, int v * Set the database entry for "key" to "value" in the specified * column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the specified key to be inserted. * @param value the value associated with the specified key. @@ -513,7 +513,7 @@ public void put(final ColumnFamilyHandle columnFamilyHandle, * Set the database entry for "key" to "value" in the specified * column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key The specified key to be inserted * @param offset the offset of the "key" array to be used, must be non-negative and @@ -538,7 +538,7 @@ public void put(final ColumnFamilyHandle columnFamilyHandle, final byte[] key, i /** * Set the database entry for "key" to "value". * - * @param writeOpts {@link org.rocksdb.WriteOptions} instance. + * @param writeOpts {@link org.terarkdb.WriteOptions} instance. * @param key the specified key to be inserted. * @param value the value associated with the specified key. * @@ -554,7 +554,7 @@ public void put(final WriteOptions writeOpts, final byte[] key, /** * Set the database entry for "key" to "value". * - * @param writeOpts {@link org.rocksdb.WriteOptions} instance. + * @param writeOpts {@link org.terarkdb.WriteOptions} instance. * @param key The specified key to be inserted * @param offset the offset of the "key" array to be used, must be non-negative and * no larger than "key".length @@ -581,9 +581,9 @@ public void put(final WriteOptions writeOpts, byte[] key, int offset, int len, b * Set the database entry for "key" to "value" for the specified * column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance - * @param writeOpts {@link org.rocksdb.WriteOptions} instance. + * @param writeOpts {@link org.terarkdb.WriteOptions} instance. * @param key the specified key to be inserted. * @param value the value associated with the specified key. * @@ -604,9 +604,9 @@ public void put(final ColumnFamilyHandle columnFamilyHandle, * Set the database entry for "key" to "value" for the specified * column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance - * @param writeOpts {@link org.rocksdb.WriteOptions} instance. + * @param writeOpts {@link org.terarkdb.WriteOptions} instance. * @param key The specified key to be inserted * @param offset the offset of the "key" array to be used, must be non-negative and * no larger than "key".length @@ -1057,7 +1057,7 @@ public int get(final byte[] key, int offset, int len, final byte[] value, int vO /** * Get the value associated with the specified key within column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key to retrieve the value. * @param value the out-value to receive the retrieved value. @@ -1080,7 +1080,7 @@ public int get(final ColumnFamilyHandle columnFamilyHandle, final byte[] key, /** * Get the value associated with the specified key within column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key to retrieve the value. * @param offset the offset of the "key" array to be used, must be non-negative and @@ -1113,7 +1113,7 @@ public int get(final ColumnFamilyHandle columnFamilyHandle, final byte[] key, in /** * Get the value associated with the specified key. * - * @param opt {@link org.rocksdb.ReadOptions} instance. + * @param opt {@link org.terarkdb.ReadOptions} instance. * @param key the key to retrieve the value. * @param value the out-value to receive the retrieved value. * @return The size of the actual value that matches the specified @@ -1135,7 +1135,7 @@ public int get(final ReadOptions opt, final byte[] key, /** * Get the value associated with the specified key. * - * @param opt {@link org.rocksdb.ReadOptions} instance. + * @param opt {@link org.terarkdb.ReadOptions} instance. * @param key the key to retrieve the value. * @param offset the offset of the "key" array to be used, must be non-negative and * no larger than "key".length @@ -1166,9 +1166,9 @@ public int get(final ReadOptions opt, final byte[] key, int offset, int len, /** * Get the value associated with the specified key within column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance - * @param opt {@link org.rocksdb.ReadOptions} instance. + * @param opt {@link org.terarkdb.ReadOptions} instance. * @param key the key to retrieve the value. * @param value the out-value to receive the retrieved value. * @return The size of the actual value that matches the specified @@ -1191,9 +1191,9 @@ public int get(final ColumnFamilyHandle columnFamilyHandle, /** * Get the value associated with the specified key within column family. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance - * @param opt {@link org.rocksdb.ReadOptions} instance. + * @param opt {@link org.terarkdb.ReadOptions} instance. * @param key the key to retrieve the value. * @param offset the offset of the "key" array to be used, must be non-negative and * no larger than "key".length @@ -1263,7 +1263,7 @@ public byte[] get(final byte[] key, int offset, int len) throws RocksDBException * the value associated with the specified input key if any. null will be * returned if the specified key is not found. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key retrieve the value. * @return a byte array storing the value associated with the input key if @@ -1283,7 +1283,7 @@ public byte[] get(final ColumnFamilyHandle columnFamilyHandle, * the value associated with the specified input key if any. null will be * returned if the specified key is not found. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key retrieve the value. * @param offset the offset of the "key" array to be used, must be non-negative and @@ -1347,7 +1347,7 @@ public byte[] get(final ReadOptions opt, final byte[] key, int offset, int len) * the value associated with the specified input key if any. null will be * returned if the specified key is not found. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key retrieve the value. * @param opt Read options. @@ -1368,7 +1368,7 @@ public byte[] get(final ColumnFamilyHandle columnFamilyHandle, * the value associated with the specified input key if any. null will be * returned if the specified key is not found. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key retrieve the value. * @param offset the offset of the "key" array to be used, must be non-negative and @@ -1439,7 +1439,7 @@ private static int computeCapacityHint(final int estimatedNumberOfItems) { *

* * @param columnFamilyHandleList {@link java.util.List} containing - * {@link org.rocksdb.ColumnFamilyHandle} instances. + * {@link org.terarkdb.ColumnFamilyHandle} instances. * @param keys List of keys for which values need to be retrieved. * @return Map where key of map is the key passed by user and value for map * entry is the corresponding value in DB. @@ -1533,7 +1533,7 @@ public Map multiGet(final ReadOptions opt, * * @param opt Read options. * @param columnFamilyHandleList {@link java.util.List} containing - * {@link org.rocksdb.ColumnFamilyHandle} instances. + * {@link org.terarkdb.ColumnFamilyHandle} instances. * @param keys of keys for which values need to be retrieved. * @return Map where key of map is the key passed by user and value for map * entry is the corresponding value in DB. @@ -1633,7 +1633,7 @@ public void delete(final byte[] key, int offset, int len) throws RocksDBExceptio * success, and a non-OK status on error. It is not an error if "key" * did not exist in the database. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key Key to delete within database * @@ -1653,7 +1653,7 @@ public void remove(final ColumnFamilyHandle columnFamilyHandle, * success, and a non-OK status on error. It is not an error if "key" * did not exist in the database. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key Key to delete within database * @@ -1670,7 +1670,7 @@ public void delete(final ColumnFamilyHandle columnFamilyHandle, * success, and a non-OK status on error. It is not an error if "key" * did not exist in the database. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key Key to delete within database * @param offset the offset of the "key" array to be used, must be non-negative and @@ -1744,7 +1744,7 @@ public void delete(final WriteOptions writeOpt, final byte[] key, int offset, in * success, and a non-OK status on error. It is not an error if "key" * did not exist in the database. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param writeOpt WriteOptions to be used with delete operation * @param key Key to delete within database @@ -1766,7 +1766,7 @@ public void remove(final ColumnFamilyHandle columnFamilyHandle, * success, and a non-OK status on error. It is not an error if "key" * did not exist in the database. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param writeOpt WriteOptions to be used with delete operation * @param key Key to delete within database @@ -1786,7 +1786,7 @@ public void delete(final ColumnFamilyHandle columnFamilyHandle, * success, and a non-OK status on error. It is not an error if "key" * did not exist in the database. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param writeOpt WriteOptions to be used with delete operation * @param key Key to delete within database @@ -1940,7 +1940,7 @@ public void singleDelete(final ColumnFamilyHandle columnFamilyHandle, * of the sstables that make up the db contents. * * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param property to be fetched. See above for examples * @return property value @@ -1985,7 +1985,7 @@ public void deleteRange(final byte[] beginKey, final byte[] endKey) throws Rocks * database. * * @param columnFamilyHandle - * {@link org.rocksdb.ColumnFamilyHandle} instance + * {@link org.terarkdb.ColumnFamilyHandle} instance * @param beginKey * First key to delete within database (included) * @param endKey @@ -2034,7 +2034,7 @@ public void deleteRange(final WriteOptions writeOpt, final byte[] beginKey, fina * non-OK status on error. It is not an error if "key" did not exist in the * database. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param writeOpt * WriteOptions to be used with delete operation @@ -2121,7 +2121,7 @@ public long getLongProperty(final String property) throws RocksDBException { *

Java 8: In Java 8 the value should be treated as * unsigned long using provided methods of type {@link Long}.

* - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param property to be fetched. * @@ -2235,7 +2235,7 @@ public void releaseSnapshot(final Snapshot snapshot) { * The returned iterator should be closed before this db is closed. *

* - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @return instance of iterator object. */ @@ -2255,7 +2255,7 @@ public RocksIterator newIterator( * The returned iterator should be closed before this db is closed. *

* - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param readOptions {@link ReadOptions} instance. * @return instance of iterator object. @@ -2272,8 +2272,8 @@ public RocksIterator newIterator(final ColumnFamilyHandle columnFamilyHandle, * before the db is deleted * * @param columnFamilyHandleList {@link java.util.List} containing - * {@link org.rocksdb.ColumnFamilyHandle} instances. - * @return {@link java.util.List} containing {@link org.rocksdb.RocksIterator} + * {@link org.terarkdb.ColumnFamilyHandle} instances. + * @return {@link java.util.List} containing {@link org.terarkdb.RocksIterator} * instances * * @throws RocksDBException thrown if error happens in underlying @@ -2291,9 +2291,9 @@ public List newIterators( * before the db is deleted * * @param columnFamilyHandleList {@link java.util.List} containing - * {@link org.rocksdb.ColumnFamilyHandle} instances. + * {@link org.terarkdb.ColumnFamilyHandle} instances. * @param readOptions {@link ReadOptions} instance. - * @return {@link java.util.List} containing {@link org.rocksdb.RocksIterator} + * @return {@link java.util.List} containing {@link org.terarkdb.RocksIterator} * instances * * @throws RocksDBException thrown if error happens in underlying @@ -2337,7 +2337,7 @@ public ColumnFamilyHandle getDefaultColumnFamily() { * The ColumnFamilyHandle is automatically disposed with DB disposal. * * @param columnFamilyDescriptor column family to be created. - * @return {@link org.rocksdb.ColumnFamilyHandle} instance. + * @return {@link org.terarkdb.ColumnFamilyHandle} instance. * * @throws RocksDBException thrown if error happens in underlying * native library. @@ -2355,7 +2355,7 @@ public ColumnFamilyHandle createColumnFamily( * handles to this column family will be disposed. If the column family * is not known removal will fail. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * * @throws RocksDBException thrown if error happens in underlying @@ -2376,7 +2376,7 @@ public void dropColumnFamily(final ColumnFamilyHandle columnFamilyHandle) * is not GC'ed before this method finishes. If the wait parameter is * set to false, flush processing is asynchronous.

* - * @param flushOptions {@link org.rocksdb.FlushOptions} instance. + * @param flushOptions {@link org.terarkdb.FlushOptions} instance. * @throws RocksDBException thrown if an error occurs within the native * part of the library. */ @@ -2392,8 +2392,8 @@ public void flush(final FlushOptions flushOptions) * is not GC'ed before this method finishes. If the wait parameter is * set to false, flush processing is asynchronous.

* - * @param flushOptions {@link org.rocksdb.FlushOptions} instance. - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} instance. + * @param flushOptions {@link org.terarkdb.FlushOptions} instance. + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} instance. * @throws RocksDBException thrown if an error occurs within the native * part of the library. */ @@ -2539,7 +2539,7 @@ public void compactRange(final byte[] begin, final byte[] end, * * * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance. * * @throws RocksDBException thrown if an error occurs within the native @@ -2569,7 +2569,7 @@ public void compactRange(final ColumnFamilyHandle columnFamilyHandle) * * * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance. * @param begin start of key range (included in range) * @param end end of key range (excluded from range) @@ -2590,7 +2590,7 @@ public void compactRange(final ColumnFamilyHandle columnFamilyHandle, * all data will have been pushed down to the last level containing * any data.

* - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} instance. + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} instance. * @param begin start of key range (included in range) * @param end end of key range (excluded from range) * @param compactRangeOptions options for the compaction @@ -2628,7 +2628,7 @@ public void compactRange(final ColumnFamilyHandle columnFamilyHandle, * * @deprecated Use {@link #compactRange(ColumnFamilyHandle, byte[], byte[], CompactRangeOptions)} instead * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance. * @param reduce_level reduce level after compaction * @param target_level target level to compact to @@ -2668,7 +2668,7 @@ public void compactRange(final ColumnFamilyHandle columnFamilyHandle, * * @deprecated Use {@link #compactRange(ColumnFamilyHandle, byte[], byte[], CompactRangeOptions)} instead * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance. * @param begin start of key range (included in range) * @param end end of key range (excluded from range) @@ -2769,9 +2769,9 @@ public void enableFileDeletions(final boolean force) * * @param sequenceNumber sequence number offset * - * @return {@link org.rocksdb.TransactionLogIterator} instance. + * @return {@link org.terarkdb.TransactionLogIterator} instance. * - * @throws org.rocksdb.RocksDBException if iterator cannot be retrieved + * @throws org.terarkdb.RocksDBException if iterator cannot be retrieved * from native-side. */ public TransactionLogIterator getUpdatesSince(final long sequenceNumber) @@ -2854,7 +2854,7 @@ public void ingestExternalFile(final ColumnFamilyHandle columnFamilyHandle, * Be very careful using this method. * * @param path the path to the Rocksdb database. - * @param options {@link org.rocksdb.Options} instance. + * @param options {@link org.terarkdb.Options} instance. * * @throws RocksDBException thrown if error happens in underlying * native library. diff --git a/java/src/main/java/org/rocksdb/RocksDBException.java b/java/src/main/java/org/terarkdb/RocksDBException.java similarity index 98% rename from java/src/main/java/org/rocksdb/RocksDBException.java rename to java/src/main/java/org/terarkdb/RocksDBException.java index 8b035f458f..4e7db06df7 100644 --- a/java/src/main/java/org/rocksdb/RocksDBException.java +++ b/java/src/main/java/org/terarkdb/RocksDBException.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * A RocksDBException encapsulates the error of an operation. This exception diff --git a/java/src/main/java/org/rocksdb/RocksEnv.java b/java/src/main/java/org/terarkdb/RocksEnv.java similarity index 98% rename from java/src/main/java/org/rocksdb/RocksEnv.java rename to java/src/main/java/org/terarkdb/RocksEnv.java index 8fe61fd451..bf4f700b8e 100644 --- a/java/src/main/java/org/rocksdb/RocksEnv.java +++ b/java/src/main/java/org/terarkdb/RocksEnv.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** *

A RocksEnv is an interface used by the rocksdb implementation to access diff --git a/java/src/main/java/org/rocksdb/RocksIterator.java b/java/src/main/java/org/terarkdb/RocksIterator.java similarity index 97% rename from java/src/main/java/org/rocksdb/RocksIterator.java rename to java/src/main/java/org/terarkdb/RocksIterator.java index 12c06f04e5..8532157211 100644 --- a/java/src/main/java/org/rocksdb/RocksIterator.java +++ b/java/src/main/java/org/terarkdb/RocksIterator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** *

An iterator that yields a sequence of key/value pairs from a source. @@ -16,7 +16,7 @@ * non-const method, all threads accessing the same RocksIterator must use * external synchronization.

* - * @see org.rocksdb.RocksObject + * @see org.terarkdb.RocksObject */ public class RocksIterator extends AbstractRocksIterator { protected RocksIterator(RocksDB rocksDB, long nativeHandle) { diff --git a/java/src/main/java/org/rocksdb/RocksIteratorInterface.java b/java/src/main/java/org/terarkdb/RocksIteratorInterface.java similarity index 98% rename from java/src/main/java/org/rocksdb/RocksIteratorInterface.java rename to java/src/main/java/org/terarkdb/RocksIteratorInterface.java index 7ce31509ef..5008f2314c 100644 --- a/java/src/main/java/org/rocksdb/RocksIteratorInterface.java +++ b/java/src/main/java/org/terarkdb/RocksIteratorInterface.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** *

Defines the interface for an Iterator which provides @@ -16,7 +16,7 @@ * non-const method, all threads accessing the same RocksIterator must use * external synchronization.

* - * @see org.rocksdb.RocksObject + * @see org.terarkdb.RocksObject */ public interface RocksIteratorInterface { diff --git a/java/src/main/java/org/rocksdb/RocksMemEnv.java b/java/src/main/java/org/terarkdb/RocksMemEnv.java similarity index 97% rename from java/src/main/java/org/rocksdb/RocksMemEnv.java rename to java/src/main/java/org/terarkdb/RocksMemEnv.java index d18d0ceb97..2a2364bdd2 100644 --- a/java/src/main/java/org/rocksdb/RocksMemEnv.java +++ b/java/src/main/java/org/terarkdb/RocksMemEnv.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * RocksDB memory environment. diff --git a/java/src/main/java/org/rocksdb/RocksMutableObject.java b/java/src/main/java/org/terarkdb/RocksMutableObject.java similarity index 99% rename from java/src/main/java/org/rocksdb/RocksMutableObject.java rename to java/src/main/java/org/terarkdb/RocksMutableObject.java index e92289dc0c..f5d3637a75 100644 --- a/java/src/main/java/org/rocksdb/RocksMutableObject.java +++ b/java/src/main/java/org/terarkdb/RocksMutableObject.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * RocksMutableObject is an implementation of {@link AbstractNativeReference} diff --git a/java/src/main/java/org/rocksdb/RocksObject.java b/java/src/main/java/org/terarkdb/RocksObject.java similarity index 98% rename from java/src/main/java/org/rocksdb/RocksObject.java rename to java/src/main/java/org/terarkdb/RocksObject.java index 545dd896a0..f0068928f4 100644 --- a/java/src/main/java/org/rocksdb/RocksObject.java +++ b/java/src/main/java/org/terarkdb/RocksObject.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * RocksObject is an implementation of {@link AbstractNativeReference} which diff --git a/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java b/java/src/main/java/org/terarkdb/SkipListMemTableConfig.java similarity index 98% rename from java/src/main/java/org/rocksdb/SkipListMemTableConfig.java rename to java/src/main/java/org/terarkdb/SkipListMemTableConfig.java index e31e199161..8233bc3bf9 100644 --- a/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java +++ b/java/src/main/java/org/terarkdb/SkipListMemTableConfig.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** * The config for skip-list memtable representation. diff --git a/java/src/main/java/org/rocksdb/Slice.java b/java/src/main/java/org/terarkdb/Slice.java similarity index 96% rename from java/src/main/java/org/rocksdb/Slice.java rename to java/src/main/java/org/terarkdb/Slice.java index 08a940c3f3..eac8261184 100644 --- a/java/src/main/java/org/rocksdb/Slice.java +++ b/java/src/main/java/org/terarkdb/Slice.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** *

Base class for slices which will receive @@ -11,7 +11,7 @@ * *

byte[] backed slices typically perform better with * small keys and values. When using larger keys and - * values consider using {@link org.rocksdb.DirectSlice}

+ * values consider using {@link org.terarkdb.DirectSlice}

*/ public class Slice extends AbstractSlice { @@ -27,7 +27,7 @@ public class Slice extends AbstractSlice { * at creation time.

* *

Note: You should be aware that - * {@see org.rocksdb.RocksObject#disOwnNativeHandle()} is intentionally + * {@see org.terarkdb.RocksObject#disOwnNativeHandle()} is intentionally * called from the default Slice constructor, and that it is marked as * private. This is so that developers cannot construct their own default * Slice objects (at present). As developers cannot construct their own diff --git a/java/src/main/java/org/rocksdb/Snapshot.java b/java/src/main/java/org/terarkdb/Snapshot.java similarity index 97% rename from java/src/main/java/org/rocksdb/Snapshot.java rename to java/src/main/java/org/terarkdb/Snapshot.java index 39cdf0c2d2..0bd0cc57af 100644 --- a/java/src/main/java/org/rocksdb/Snapshot.java +++ b/java/src/main/java/org/terarkdb/Snapshot.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Snapshot of database diff --git a/java/src/main/java/org/rocksdb/SstFileManager.java b/java/src/main/java/org/terarkdb/SstFileManager.java similarity index 99% rename from java/src/main/java/org/rocksdb/SstFileManager.java rename to java/src/main/java/org/terarkdb/SstFileManager.java index f1dfc516ec..413442e175 100644 --- a/java/src/main/java/org/rocksdb/SstFileManager.java +++ b/java/src/main/java/org/terarkdb/SstFileManager.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Map; diff --git a/java/src/main/java/org/rocksdb/SstFileWriter.java b/java/src/main/java/org/terarkdb/SstFileWriter.java similarity index 96% rename from java/src/main/java/org/rocksdb/SstFileWriter.java rename to java/src/main/java/org/terarkdb/SstFileWriter.java index 447e41ea9d..e185534b68 100644 --- a/java/src/main/java/org/rocksdb/SstFileWriter.java +++ b/java/src/main/java/org/terarkdb/SstFileWriter.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * SstFileWriter is used to create sst files that can be added to the @@ -18,8 +18,8 @@ public class SstFileWriter extends RocksObject { /** * SstFileWriter Constructor. * - * @param envOptions {@link org.rocksdb.EnvOptions} instance. - * @param options {@link org.rocksdb.Options} instance. + * @param envOptions {@link org.terarkdb.EnvOptions} instance. + * @param options {@link org.terarkdb.Options} instance. * @param comparator the comparator to specify the ordering of keys. * * @deprecated Use {@link #SstFileWriter(EnvOptions, Options)}. @@ -37,8 +37,8 @@ public SstFileWriter(final EnvOptions envOptions, final Options options, /** * SstFileWriter Constructor. * - * @param envOptions {@link org.rocksdb.EnvOptions} instance. - * @param options {@link org.rocksdb.Options} instance. + * @param envOptions {@link org.terarkdb.EnvOptions} instance. + * @param options {@link org.terarkdb.Options} instance. */ public SstFileWriter(final EnvOptions envOptions, final Options options) { super(newSstFileWriter( diff --git a/java/src/main/java/org/rocksdb/Statistics.java b/java/src/main/java/org/terarkdb/Statistics.java similarity index 99% rename from java/src/main/java/org/rocksdb/Statistics.java rename to java/src/main/java/org/terarkdb/Statistics.java index 0938a6d583..a9348eda06 100644 --- a/java/src/main/java/org/rocksdb/Statistics.java +++ b/java/src/main/java/org/terarkdb/Statistics.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.EnumSet; diff --git a/java/src/main/java/org/rocksdb/StatisticsCollector.java b/java/src/main/java/org/terarkdb/StatisticsCollector.java similarity index 99% rename from java/src/main/java/org/rocksdb/StatisticsCollector.java rename to java/src/main/java/org/terarkdb/StatisticsCollector.java index fb3f57150f..7e039ac220 100644 --- a/java/src/main/java/org/rocksdb/StatisticsCollector.java +++ b/java/src/main/java/org/terarkdb/StatisticsCollector.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.List; import java.util.concurrent.Executors; diff --git a/java/src/main/java/org/rocksdb/StatisticsCollectorCallback.java b/java/src/main/java/org/terarkdb/StatisticsCollectorCallback.java similarity index 98% rename from java/src/main/java/org/rocksdb/StatisticsCollectorCallback.java rename to java/src/main/java/org/terarkdb/StatisticsCollectorCallback.java index f3785b15f6..a08a4111de 100644 --- a/java/src/main/java/org/rocksdb/StatisticsCollectorCallback.java +++ b/java/src/main/java/org/terarkdb/StatisticsCollectorCallback.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Callback interface provided to StatisticsCollector. diff --git a/java/src/main/java/org/rocksdb/StatsCollectorInput.java b/java/src/main/java/org/terarkdb/StatsCollectorInput.java similarity index 97% rename from java/src/main/java/org/rocksdb/StatsCollectorInput.java rename to java/src/main/java/org/terarkdb/StatsCollectorInput.java index 5bf43ade5a..ed8f92cb83 100644 --- a/java/src/main/java/org/rocksdb/StatsCollectorInput.java +++ b/java/src/main/java/org/terarkdb/StatsCollectorInput.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Contains all information necessary to collect statistics from one instance diff --git a/java/src/main/java/org/rocksdb/StatsLevel.java b/java/src/main/java/org/terarkdb/StatsLevel.java similarity index 95% rename from java/src/main/java/org/rocksdb/StatsLevel.java rename to java/src/main/java/org/terarkdb/StatsLevel.java index cc2a87c6a2..cceff7002b 100644 --- a/java/src/main/java/org/rocksdb/StatsLevel.java +++ b/java/src/main/java/org/terarkdb/StatsLevel.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * The level of Statistics to report. @@ -49,7 +49,7 @@ public byte getValue() { * * @param value byte representation of StatsLevel. * - * @return {@link org.rocksdb.StatsLevel} instance. + * @return {@link org.terarkdb.StatsLevel} instance. * @throws java.lang.IllegalArgumentException if an invalid * value is provided. */ diff --git a/java/src/main/java/org/rocksdb/Status.java b/java/src/main/java/org/terarkdb/Status.java similarity index 99% rename from java/src/main/java/org/rocksdb/Status.java rename to java/src/main/java/org/terarkdb/Status.java index e633940c29..249c0fc865 100644 --- a/java/src/main/java/org/rocksdb/Status.java +++ b/java/src/main/java/org/terarkdb/Status.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Represents the status returned by a function call in RocksDB. diff --git a/java/src/main/java/org/rocksdb/StringAppendOperator.java b/java/src/main/java/org/terarkdb/StringAppendOperator.java similarity index 97% rename from java/src/main/java/org/rocksdb/StringAppendOperator.java rename to java/src/main/java/org/terarkdb/StringAppendOperator.java index 978cad6ccf..2be855c3f0 100644 --- a/java/src/main/java/org/rocksdb/StringAppendOperator.java +++ b/java/src/main/java/org/terarkdb/StringAppendOperator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * StringAppendOperator is a merge operator that concatenates diff --git a/java/src/main/java/org/rocksdb/StringAppendOperatorWithVariableDelimitor.java b/java/src/main/java/org/terarkdb/StringAppendOperatorWithVariableDelimitor.java similarity index 98% rename from java/src/main/java/org/rocksdb/StringAppendOperatorWithVariableDelimitor.java rename to java/src/main/java/org/terarkdb/StringAppendOperatorWithVariableDelimitor.java index 0d06be0b30..c5eaf793e1 100644 --- a/java/src/main/java/org/rocksdb/StringAppendOperatorWithVariableDelimitor.java +++ b/java/src/main/java/org/terarkdb/StringAppendOperatorWithVariableDelimitor.java @@ -16,7 +16,7 @@ * limitations under the License. */ -package org.rocksdb; +package org.terarkdb; import java.nio.charset.Charset; diff --git a/java/src/main/java/org/rocksdb/TableFormatConfig.java b/java/src/main/java/org/terarkdb/TableFormatConfig.java similarity index 97% rename from java/src/main/java/org/rocksdb/TableFormatConfig.java rename to java/src/main/java/org/terarkdb/TableFormatConfig.java index dbe524c422..c2036072f5 100644 --- a/java/src/main/java/org/rocksdb/TableFormatConfig.java +++ b/java/src/main/java/org/terarkdb/TableFormatConfig.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * TableFormatConfig is used to config the internal Table format of a RocksDB. diff --git a/java/src/main/java/org/rocksdb/TickerType.java b/java/src/main/java/org/terarkdb/TickerType.java similarity index 99% rename from java/src/main/java/org/rocksdb/TickerType.java rename to java/src/main/java/org/terarkdb/TickerType.java index 1831602dcc..7251e9f85a 100644 --- a/java/src/main/java/org/rocksdb/TickerType.java +++ b/java/src/main/java/org/terarkdb/TickerType.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public enum TickerType { diff --git a/java/src/main/java/org/rocksdb/Transaction.java b/java/src/main/java/org/terarkdb/Transaction.java similarity index 97% rename from java/src/main/java/org/rocksdb/Transaction.java rename to java/src/main/java/org/terarkdb/Transaction.java index c619bb1053..462e7d35de 100644 --- a/java/src/main/java/org/rocksdb/Transaction.java +++ b/java/src/main/java/org/terarkdb/Transaction.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.List; @@ -14,8 +14,8 @@ * {@link OptimisticTransactionDB} or a {@link TransactionDB} * * To create a transaction, use - * {@link OptimisticTransactionDB#beginTransaction(org.rocksdb.WriteOptions)} or - * {@link TransactionDB#beginTransaction(org.rocksdb.WriteOptions)} + * {@link OptimisticTransactionDB#beginTransaction(org.terarkdb.WriteOptions)} or + * {@link TransactionDB#beginTransaction(org.terarkdb.WriteOptions)} * * It is up to the caller to synchronize access to this object. * @@ -30,8 +30,8 @@ public class Transaction extends RocksObject { /** * Intentionally package private * as this is called from - * {@link OptimisticTransactionDB#beginTransaction(org.rocksdb.WriteOptions)} - * or {@link TransactionDB#beginTransaction(org.rocksdb.WriteOptions)} + * {@link OptimisticTransactionDB#beginTransaction(org.terarkdb.WriteOptions)} + * or {@link TransactionDB#beginTransaction(org.terarkdb.WriteOptions)} * * @param parent This must be either {@link TransactionDB} or * {@link OptimisticTransactionDB} @@ -260,7 +260,7 @@ public void rollbackToSavePoint() throws RocksDBException { * transaction (the keys in this transaction do not yet belong to any snapshot * and will be fetched regardless). * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} instance + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} instance * @param readOptions Read options. * @param key the key to retrieve the value for. * @@ -326,7 +326,7 @@ public byte[] get(final ReadOptions readOptions, final byte[] key) * * @param readOptions Read options. * @param columnFamilyHandles {@link java.util.List} containing - * {@link org.rocksdb.ColumnFamilyHandle} instances. + * {@link org.terarkdb.ColumnFamilyHandle} instances. * @param keys of keys for which values need to be retrieved. * * @return Array of values, one for each key @@ -375,7 +375,7 @@ public byte[][] multiGet(final ReadOptions readOptions, * and will be fetched regardless). * * @param readOptions Read options.= - * {@link org.rocksdb.ColumnFamilyHandle} instances. + * {@link org.terarkdb.ColumnFamilyHandle} instances. * @param keys of keys for which values need to be retrieved. * * @return Array of values, one for each key @@ -428,7 +428,7 @@ public byte[][] multiGet(final ReadOptions readOptions, * resolved. * * @param readOptions Read options. - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key to retrieve the value for. * @param exclusive true if the transaction should have exclusive access to @@ -505,7 +505,7 @@ public byte[] getForUpdate(final ReadOptions readOptions, final byte[] key, * * * @param readOptions Read options. - * @param columnFamilyHandles {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandles {@link org.terarkdb.ColumnFamilyHandle} * instances * @param keys the keys to retrieve the values for. * @@ -600,7 +600,7 @@ public RocksIterator getIterator(final ReadOptions readOptions) { * {@link #rollback()}, or {@link #rollbackToSavePoint()} is called. * * @param readOptions Read options. - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * * @return instance of iterator object. @@ -670,7 +670,7 @@ public void put(final byte[] key, final byte[] value) put(nativeHandle_, key, key.length, value, value.length); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #put(ColumnFamilyHandle, byte[], byte[])} but allows * you to specify the key and value in several parts that will be @@ -691,7 +691,7 @@ public void put(final ColumnFamilyHandle columnFamilyHandle, columnFamilyHandle.nativeHandle_); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #put(byte[], byte[])} but allows * you to specify the key and value in several parts that will be @@ -822,7 +822,7 @@ public void delete(final byte[] key) throws RocksDBException { delete(nativeHandle_, key, key.length); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #delete(ColumnFamilyHandle, byte[])} but allows * you to specify the key in several parts that will be @@ -841,7 +841,7 @@ public void delete(final ColumnFamilyHandle columnFamilyHandle, columnFamilyHandle.nativeHandle_); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #delete(byte[])} but allows * you to specify key the in several parts that will be @@ -914,7 +914,7 @@ public void singleDelete(final byte[] key) throws RocksDBException { singleDelete(nativeHandle_, key, key.length); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #singleDelete(ColumnFamilyHandle, byte[])} but allows * you to specify the key in several parts that will be @@ -934,7 +934,7 @@ public void singleDelete(final ColumnFamilyHandle columnFamilyHandle, columnFamilyHandle.nativeHandle_); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #singleDelete(byte[])} but allows * you to specify the key in several parts that will be @@ -1003,7 +1003,7 @@ public void putUntracked(final byte[] key, final byte[] value) putUntracked(nativeHandle_, key, key.length, value, value.length); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #putUntracked(ColumnFamilyHandle, byte[], byte[])} but * allows you to specify the key and value in several parts that will be @@ -1024,7 +1024,7 @@ public void putUntracked(final ColumnFamilyHandle columnFamilyHandle, valueParts.length, columnFamilyHandle.nativeHandle_); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #putUntracked(byte[], byte[])} but * allows you to specify the key and value in several parts that will be @@ -1143,7 +1143,7 @@ public void deleteUntracked(final byte[] key) throws RocksDBException { deleteUntracked(nativeHandle_, key, key.length); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #deleteUntracked(ColumnFamilyHandle, byte[])} but allows * you to specify the key in several parts that will be @@ -1162,7 +1162,7 @@ public void deleteUntracked(final ColumnFamilyHandle columnFamilyHandle, columnFamilyHandle.nativeHandle_); } - //TODO(AR) refactor if we implement org.rocksdb.SliceParts in future + //TODO(AR) refactor if we implement org.terarkdb.SliceParts in future /** * Similar to {@link #deleteUntracked(byte[])} but allows * you to specify the key in several parts that will be @@ -1354,7 +1354,7 @@ public void setWriteOptions(final WriteOptions writeOptions) { * calling {@link #undoGetForUpdate(ColumnFamilyHandle, byte[])} may release * any held locks for this key. * - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the key to retrieve the value for. */ @@ -1548,7 +1548,7 @@ public enum TransactionState { * * @param value byte representation of TransactionState. * - * @return {@link org.rocksdb.Transaction.TransactionState} instance or null. + * @return {@link org.terarkdb.Transaction.TransactionState} instance or null. * @throws java.lang.IllegalArgumentException if an invalid * value is provided. */ diff --git a/java/src/main/java/org/rocksdb/TransactionDB.java b/java/src/main/java/org/terarkdb/TransactionDB.java similarity index 97% rename from java/src/main/java/org/rocksdb/TransactionDB.java rename to java/src/main/java/org/terarkdb/TransactionDB.java index fcecf3faff..028fcb9ddf 100644 --- a/java/src/main/java/org/rocksdb/TransactionDB.java +++ b/java/src/main/java/org/terarkdb/TransactionDB.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.ArrayList; import java.util.HashMap; @@ -30,8 +30,8 @@ private TransactionDB(final long nativeHandle) { /** * Open a TransactionDB, similar to {@link RocksDB#open(Options, String)}. * - * @param options {@link org.rocksdb.Options} instance. - * @param transactionDbOptions {@link org.rocksdb.TransactionDBOptions} + * @param options {@link org.terarkdb.Options} instance. + * @param transactionDbOptions {@link org.terarkdb.TransactionDBOptions} * instance. * @param path the path to the rocksdb. * @@ -59,8 +59,8 @@ public static TransactionDB open(final Options options, * Open a TransactionDB, similar to * {@link RocksDB#open(DBOptions, String, List, List)}. * - * @param dbOptions {@link org.rocksdb.DBOptions} instance. - * @param transactionDbOptions {@link org.rocksdb.TransactionDBOptions} + * @param dbOptions {@link org.terarkdb.DBOptions} instance. + * @param transactionDbOptions {@link org.terarkdb.TransactionDBOptions} * instance. * @param path the path to the rocksdb. * @param columnFamilyDescriptors list of column family descriptors diff --git a/java/src/main/java/org/rocksdb/TransactionDBOptions.java b/java/src/main/java/org/terarkdb/TransactionDBOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/TransactionDBOptions.java rename to java/src/main/java/org/terarkdb/TransactionDBOptions.java index 76f545cde6..0590049806 100644 --- a/java/src/main/java/org/rocksdb/TransactionDBOptions.java +++ b/java/src/main/java/org/terarkdb/TransactionDBOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public class TransactionDBOptions extends RocksObject { diff --git a/java/src/main/java/org/rocksdb/TransactionLogIterator.java b/java/src/main/java/org/terarkdb/TransactionLogIterator.java similarity index 89% rename from java/src/main/java/org/rocksdb/TransactionLogIterator.java rename to java/src/main/java/org/terarkdb/TransactionLogIterator.java index b6bfc495bc..4ee2f1cf40 100644 --- a/java/src/main/java/org/rocksdb/TransactionLogIterator.java +++ b/java/src/main/java/org/terarkdb/TransactionLogIterator.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** *

A TransactionLogIterator is used to iterate over the transactions in a db. @@ -29,7 +29,7 @@ public void next() { /** *

Throws RocksDBException if something went wrong.

* - * @throws org.rocksdb.RocksDBException if something went + * @throws org.terarkdb.RocksDBException if something went * wrong in the underlying C++ code. */ public void status() throws RocksDBException { @@ -43,7 +43,7 @@ public void status() throws RocksDBException { * *

ONLY use if Valid() is true and status() is OK.

* - * @return {@link org.rocksdb.TransactionLogIterator.BatchResult} + * @return {@link org.terarkdb.TransactionLogIterator.BatchResult} * instance. */ public BatchResult getBatch() { @@ -70,7 +70,7 @@ public static final class BatchResult { *

Constructor of BatchResult class.

* * @param sequenceNumber related to this BatchResult instance. - * @param nativeHandle to {@link org.rocksdb.WriteBatch} + * @param nativeHandle to {@link org.terarkdb.WriteBatch} * native instance. */ public BatchResult(final long sequenceNumber, @@ -89,10 +89,10 @@ public long sequenceNumber() { } /** - *

Return contained {@link org.rocksdb.WriteBatch} + *

Return contained {@link org.terarkdb.WriteBatch} * instance

* - * @return {@link org.rocksdb.WriteBatch} instance. + * @return {@link org.terarkdb.WriteBatch} instance. */ public WriteBatch writeBatch() { return writeBatch_; diff --git a/java/src/main/java/org/rocksdb/TransactionOptions.java b/java/src/main/java/org/terarkdb/TransactionOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/TransactionOptions.java rename to java/src/main/java/org/terarkdb/TransactionOptions.java index 1cd936ae64..229304206e 100644 --- a/java/src/main/java/org/rocksdb/TransactionOptions.java +++ b/java/src/main/java/org/terarkdb/TransactionOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public class TransactionOptions extends RocksObject implements TransactionalOptions { diff --git a/java/src/main/java/org/rocksdb/TransactionalDB.java b/java/src/main/java/org/terarkdb/TransactionalDB.java similarity index 99% rename from java/src/main/java/org/rocksdb/TransactionalDB.java rename to java/src/main/java/org/terarkdb/TransactionalDB.java index 3f0eceda85..e725a07e0d 100644 --- a/java/src/main/java/org/rocksdb/TransactionalDB.java +++ b/java/src/main/java/org/terarkdb/TransactionalDB.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; interface TransactionalDB diff --git a/java/src/main/java/org/rocksdb/TransactionalOptions.java b/java/src/main/java/org/terarkdb/TransactionalOptions.java similarity index 97% rename from java/src/main/java/org/rocksdb/TransactionalOptions.java rename to java/src/main/java/org/terarkdb/TransactionalOptions.java index 87aaa7986f..5e7ecdee7c 100644 --- a/java/src/main/java/org/rocksdb/TransactionalOptions.java +++ b/java/src/main/java/org/terarkdb/TransactionalOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; interface TransactionalOptions extends AutoCloseable { diff --git a/java/src/main/java/org/rocksdb/TtlDB.java b/java/src/main/java/org/terarkdb/TtlDB.java similarity index 95% rename from java/src/main/java/org/rocksdb/TtlDB.java rename to java/src/main/java/org/terarkdb/TtlDB.java index 28e9386e33..b5dbb07dc9 100644 --- a/java/src/main/java/org/rocksdb/TtlDB.java +++ b/java/src/main/java/org/terarkdb/TtlDB.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.List; @@ -55,7 +55,7 @@ public class TtlDB extends RocksDB { * *

Database is opened in read-write mode without default TTL.

* - * @param options {@link org.rocksdb.Options} instance. + * @param options {@link org.terarkdb.Options} instance. * @param db_path path to database. * * @return TtlDB instance. @@ -71,7 +71,7 @@ public static TtlDB open(final Options options, final String db_path) /** *

Opens a TtlDB.

* - * @param options {@link org.rocksdb.Options} instance. + * @param options {@link org.terarkdb.Options} instance. * @param db_path path to database. * @param ttl time to live for new entries. * @param readOnly boolean value indicating if database if db is @@ -90,7 +90,7 @@ public static TtlDB open(final Options options, final String db_path, /** *

Opens a TtlDB.

* - * @param options {@link org.rocksdb.Options} instance. + * @param options {@link org.terarkdb.Options} instance. * @param db_path path to database. * @param columnFamilyDescriptors list of column family descriptors * @param columnFamilyHandles will be filled with ColumnFamilyHandle instances @@ -150,7 +150,7 @@ public static TtlDB open(final DBOptions options, final String db_path, * @param columnFamilyDescriptor column family to be created. * @param ttl TTL to set for this column family. * - * @return {@link org.rocksdb.ColumnFamilyHandle} instance. + * @return {@link org.terarkdb.ColumnFamilyHandle} instance. * * @throws RocksDBException thrown if error happens in underlying * native library. @@ -168,7 +168,7 @@ public ColumnFamilyHandle createColumnFamilyWithTtl( *

Close the TtlDB instance and release resource.

* *

Internally, TtlDB owns the {@code TERARKDB_NAMESPACE::DB} pointer - * to its associated {@link org.rocksdb.RocksDB}. The release + * to its associated {@link org.terarkdb.RocksDB}. The release * of that RocksDB pointer is handled in the destructor of the * c++ {@code TERARKDB_NAMESPACE::TtlDB} and should be transparent to * Java developers.

diff --git a/java/src/main/java/org/rocksdb/TxnDBWritePolicy.java b/java/src/main/java/org/terarkdb/TxnDBWritePolicy.java similarity index 98% rename from java/src/main/java/org/rocksdb/TxnDBWritePolicy.java rename to java/src/main/java/org/terarkdb/TxnDBWritePolicy.java index 837ce6157f..4771493d0d 100644 --- a/java/src/main/java/org/rocksdb/TxnDBWritePolicy.java +++ b/java/src/main/java/org/terarkdb/TxnDBWritePolicy.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * The transaction db write policy. diff --git a/java/src/main/java/org/rocksdb/UInt64AddOperator.java b/java/src/main/java/org/terarkdb/UInt64AddOperator.java similarity index 96% rename from java/src/main/java/org/rocksdb/UInt64AddOperator.java rename to java/src/main/java/org/terarkdb/UInt64AddOperator.java index cce9b298d8..5773e72914 100644 --- a/java/src/main/java/org/rocksdb/UInt64AddOperator.java +++ b/java/src/main/java/org/terarkdb/UInt64AddOperator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Uint64AddOperator is a merge operator that accumlates a long diff --git a/java/src/main/java/org/rocksdb/VectorMemTableConfig.java b/java/src/main/java/org/terarkdb/VectorMemTableConfig.java similarity index 98% rename from java/src/main/java/org/rocksdb/VectorMemTableConfig.java rename to java/src/main/java/org/terarkdb/VectorMemTableConfig.java index 378340248f..6efcbb90d5 100644 --- a/java/src/main/java/org/rocksdb/VectorMemTableConfig.java +++ b/java/src/main/java/org/terarkdb/VectorMemTableConfig.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; /** * The config for vector memtable representation. diff --git a/java/src/main/java/org/rocksdb/WALRecoveryMode.java b/java/src/main/java/org/terarkdb/WALRecoveryMode.java similarity index 99% rename from java/src/main/java/org/rocksdb/WALRecoveryMode.java rename to java/src/main/java/org/terarkdb/WALRecoveryMode.java index d8b9eeceda..c4cce7b1a0 100644 --- a/java/src/main/java/org/rocksdb/WALRecoveryMode.java +++ b/java/src/main/java/org/terarkdb/WALRecoveryMode.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * The WAL Recover Mode diff --git a/java/src/main/java/org/rocksdb/WBWIRocksIterator.java b/java/src/main/java/org/terarkdb/WBWIRocksIterator.java similarity index 94% rename from java/src/main/java/org/rocksdb/WBWIRocksIterator.java rename to java/src/main/java/org/terarkdb/WBWIRocksIterator.java index 482351e996..b83634b6ec 100644 --- a/java/src/main/java/org/rocksdb/WBWIRocksIterator.java +++ b/java/src/main/java/org/terarkdb/WBWIRocksIterator.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public class WBWIRocksIterator extends AbstractRocksIterator { @@ -86,11 +86,11 @@ public void close() { /** * Represents an entry returned by - * {@link org.rocksdb.WBWIRocksIterator#entry()} + * {@link org.terarkdb.WBWIRocksIterator#entry()} * * It is worth noting that a WriteEntry with - * the type {@link org.rocksdb.WBWIRocksIterator.WriteType#DELETE} - * or {@link org.rocksdb.WBWIRocksIterator.WriteType#LOG} + * the type {@link org.terarkdb.WBWIRocksIterator.WriteType#DELETE} + * or {@link org.terarkdb.WBWIRocksIterator.WriteType#LOG} * will not have a value. */ public static class WriteEntry implements AutoCloseable { @@ -103,7 +103,7 @@ public static class WriteEntry implements AutoCloseable { * should only be instantiated in * this manner by the outer WBWIRocksIterator * class; The class members are then modified - * by calling {@link org.rocksdb.WBWIRocksIterator#entry()} + * by calling {@link org.terarkdb.WBWIRocksIterator#entry()} */ private WriteEntry() { key = new DirectSlice(); diff --git a/java/src/main/java/org/rocksdb/WriteBatch.java b/java/src/main/java/org/terarkdb/WriteBatch.java similarity index 99% rename from java/src/main/java/org/rocksdb/WriteBatch.java rename to java/src/main/java/org/terarkdb/WriteBatch.java index 5673a25efb..0927a0284c 100644 --- a/java/src/main/java/org/rocksdb/WriteBatch.java +++ b/java/src/main/java/org/terarkdb/WriteBatch.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * WriteBatch holds a collection of updates to apply atomically to a DB. diff --git a/java/src/main/java/org/rocksdb/WriteBatchInterface.java b/java/src/main/java/org/terarkdb/WriteBatchInterface.java similarity index 98% rename from java/src/main/java/org/rocksdb/WriteBatchInterface.java rename to java/src/main/java/org/terarkdb/WriteBatchInterface.java index 21c8b6fae0..6b7454c1ff 100644 --- a/java/src/main/java/org/rocksdb/WriteBatchInterface.java +++ b/java/src/main/java/org/terarkdb/WriteBatchInterface.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** *

Defines the interface for a Write Batch which @@ -30,7 +30,7 @@ public interface WriteBatchInterface { *

Store the mapping "key->value" within given column * family.

* - * @param columnFamilyHandle {@link org.rocksdb.ColumnFamilyHandle} + * @param columnFamilyHandle {@link org.terarkdb.ColumnFamilyHandle} * instance * @param key the specified key to be inserted. * @param value the value associated with the specified key. diff --git a/java/src/main/java/org/rocksdb/WriteBatchWithIndex.java b/java/src/main/java/org/terarkdb/WriteBatchWithIndex.java similarity index 94% rename from java/src/main/java/org/rocksdb/WriteBatchWithIndex.java rename to java/src/main/java/org/terarkdb/WriteBatchWithIndex.java index 2c03508376..2d249be0a9 100644 --- a/java/src/main/java/org/rocksdb/WriteBatchWithIndex.java +++ b/java/src/main/java/org/terarkdb/WriteBatchWithIndex.java @@ -3,18 +3,18 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** - * Similar to {@link org.rocksdb.WriteBatch} but with a binary searchable + * Similar to {@link org.terarkdb.WriteBatch} but with a binary searchable * index built for all the keys inserted. * * Calling put, merge, remove or putLogData calls the same function - * as with {@link org.rocksdb.WriteBatch} whilst also building an index. + * as with {@link org.terarkdb.WriteBatch} whilst also building an index. * - * A user can call {@link org.rocksdb.WriteBatchWithIndex#newIterator()} to + * A user can call {@link org.terarkdb.WriteBatchWithIndex#newIterator()} to * create an iterator over the write batch or - * {@link org.rocksdb.WriteBatchWithIndex#newIteratorWithBase(org.rocksdb.RocksIterator)} + * {@link org.terarkdb.WriteBatchWithIndex#newIteratorWithBase(org.terarkdb.RocksIterator)} * to get an iterator for the database with Read-Your-Own-Writes like capability */ public class WriteBatchWithIndex extends AbstractWriteBatch { @@ -79,7 +79,7 @@ public WriteBatchWithIndex( /** * Create an iterator of a column family. User can call - * {@link org.rocksdb.RocksIteratorInterface#seek(byte[])} to + * {@link org.terarkdb.RocksIteratorInterface#seek(byte[])} to * search to the next entry of or after a key. Keys will be iterated in the * order given by index_comparator. For multiple updates on the same key, * each update will be returned as a separate entry, in the order of update @@ -97,7 +97,7 @@ public WBWIRocksIterator newIterator( /** * Create an iterator of the default column family. User can call - * {@link org.rocksdb.RocksIteratorInterface#seek(byte[])} to + * {@link org.terarkdb.RocksIteratorInterface#seek(byte[])} to * search to the next entry of or after a key. Keys will be iterated in the * order given by index_comparator. For multiple updates on the same key, * each update will be returned as a separate entry, in the order of update @@ -111,7 +111,7 @@ public WBWIRocksIterator newIterator() { /** * Provides Read-Your-Own-Writes like functionality by - * creating a new Iterator that will use {@link org.rocksdb.WBWIRocksIterator} + * creating a new Iterator that will use {@link org.terarkdb.WBWIRocksIterator} * as a delta and baseIterator as a base * * Updating write batch with the current key of the iterator is not safe. @@ -122,7 +122,7 @@ public WBWIRocksIterator newIterator() { * * @param columnFamilyHandle The column family to iterate over * @param baseIterator The base iterator, - * e.g. {@link org.rocksdb.RocksDB#newIterator()} + * e.g. {@link org.terarkdb.RocksDB#newIterator()} * @return An iterator which shows a view comprised of both the database * point-in-time from baseIterator and modifications made in this write batch. */ @@ -141,12 +141,12 @@ public RocksIterator newIteratorWithBase( /** * Provides Read-Your-Own-Writes like functionality by - * creating a new Iterator that will use {@link org.rocksdb.WBWIRocksIterator} + * creating a new Iterator that will use {@link org.terarkdb.WBWIRocksIterator} * as a delta and baseIterator as a base. Operates on the default column * family. * * @param baseIterator The base iterator, - * e.g. {@link org.rocksdb.RocksDB#newIterator()} + * e.g. {@link org.terarkdb.RocksDB#newIterator()} * @return An iterator which shows a view comprised of both the database * point-in-timefrom baseIterator and modifications made in this write batch. */ diff --git a/java/src/main/java/org/rocksdb/WriteBufferManager.java b/java/src/main/java/org/terarkdb/WriteBufferManager.java similarity index 95% rename from java/src/main/java/org/rocksdb/WriteBufferManager.java rename to java/src/main/java/org/terarkdb/WriteBufferManager.java index a5f80644fb..ba6f887be2 100644 --- a/java/src/main/java/org/rocksdb/WriteBufferManager.java +++ b/java/src/main/java/org/terarkdb/WriteBufferManager.java @@ -1,6 +1,6 @@ -package org.rocksdb; +package org.terarkdb; -import org.rocksdb.Cache; +import org.terarkdb.Cache; /** * Java wrapper over native write_buffer_manager class diff --git a/java/src/main/java/org/rocksdb/WriteOptions.java b/java/src/main/java/org/terarkdb/WriteOptions.java similarity index 99% rename from java/src/main/java/org/rocksdb/WriteOptions.java rename to java/src/main/java/org/terarkdb/WriteOptions.java index db662aa509..75ab37e2aa 100644 --- a/java/src/main/java/org/rocksdb/WriteOptions.java +++ b/java/src/main/java/org/terarkdb/WriteOptions.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Options that control write operations. diff --git a/java/src/main/java/org/rocksdb/util/BytewiseComparator.java b/java/src/main/java/org/terarkdb/util/BytewiseComparator.java similarity index 95% rename from java/src/main/java/org/rocksdb/util/BytewiseComparator.java rename to java/src/main/java/org/terarkdb/util/BytewiseComparator.java index 18f73919da..dd27ed1444 100644 --- a/java/src/main/java/org/rocksdb/util/BytewiseComparator.java +++ b/java/src/main/java/org/terarkdb/util/BytewiseComparator.java @@ -3,9 +3,9 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.util; +package org.terarkdb.util; -import org.rocksdb.*; +import org.terarkdb.*; import java.nio.ByteBuffer; @@ -17,7 +17,7 @@ * less than their C++ counterparts due to the bridging overhead, * as such you likely don't want to use this apart from benchmarking * and you most likely instead wanted - * {@link org.rocksdb.BuiltinComparator#BYTEWISE_COMPARATOR} + * {@link org.terarkdb.BuiltinComparator#BYTEWISE_COMPARATOR} */ public class BytewiseComparator extends Comparator { diff --git a/java/src/main/java/org/rocksdb/util/DirectBytewiseComparator.java b/java/src/main/java/org/terarkdb/util/DirectBytewiseComparator.java similarity index 92% rename from java/src/main/java/org/rocksdb/util/DirectBytewiseComparator.java rename to java/src/main/java/org/terarkdb/util/DirectBytewiseComparator.java index 9417544f7a..4e5fea41b7 100644 --- a/java/src/main/java/org/rocksdb/util/DirectBytewiseComparator.java +++ b/java/src/main/java/org/terarkdb/util/DirectBytewiseComparator.java @@ -3,11 +3,11 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.util; +package org.terarkdb.util; -import org.rocksdb.ComparatorOptions; -import org.rocksdb.DirectComparator; -import org.rocksdb.DirectSlice; +import org.terarkdb.ComparatorOptions; +import org.terarkdb.DirectComparator; +import org.terarkdb.DirectSlice; import java.nio.ByteBuffer; @@ -19,7 +19,7 @@ * less than their C++ counterparts due to the bridging overhead, * as such you likely don't want to use this apart from benchmarking * and you most likely instead wanted - * {@link org.rocksdb.BuiltinComparator#BYTEWISE_COMPARATOR} + * {@link org.terarkdb.BuiltinComparator#BYTEWISE_COMPARATOR} */ public class DirectBytewiseComparator extends DirectComparator { diff --git a/java/src/main/java/org/rocksdb/util/Environment.java b/java/src/main/java/org/terarkdb/util/Environment.java similarity index 99% rename from java/src/main/java/org/rocksdb/util/Environment.java rename to java/src/main/java/org/terarkdb/util/Environment.java index bf005a3481..096e260ea4 100644 --- a/java/src/main/java/org/rocksdb/util/Environment.java +++ b/java/src/main/java/org/terarkdb/util/Environment.java @@ -1,4 +1,4 @@ -package org.rocksdb.util; +package org.terarkdb.util; public class Environment { private static String OS = System.getProperty("os.name").toLowerCase(); diff --git a/java/src/main/java/org/rocksdb/util/ReverseBytewiseComparator.java b/java/src/main/java/org/terarkdb/util/ReverseBytewiseComparator.java similarity index 88% rename from java/src/main/java/org/rocksdb/util/ReverseBytewiseComparator.java rename to java/src/main/java/org/terarkdb/util/ReverseBytewiseComparator.java index 7fbac2fd6b..6c2326fc64 100644 --- a/java/src/main/java/org/rocksdb/util/ReverseBytewiseComparator.java +++ b/java/src/main/java/org/terarkdb/util/ReverseBytewiseComparator.java @@ -3,11 +3,11 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.util; +package org.terarkdb.util; -import org.rocksdb.BuiltinComparator; -import org.rocksdb.ComparatorOptions; -import org.rocksdb.Slice; +import org.terarkdb.BuiltinComparator; +import org.terarkdb.ComparatorOptions; +import org.terarkdb.Slice; /** * This is a Java Native implementation of the C++ diff --git a/java/src/main/java/org/rocksdb/util/SizeUnit.java b/java/src/main/java/org/terarkdb/util/SizeUnit.java similarity index 95% rename from java/src/main/java/org/rocksdb/util/SizeUnit.java rename to java/src/main/java/org/terarkdb/util/SizeUnit.java index 0f717e8d45..3a8ae3c491 100644 --- a/java/src/main/java/org/rocksdb/util/SizeUnit.java +++ b/java/src/main/java/org/terarkdb/util/SizeUnit.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.util; +package org.terarkdb.util; public class SizeUnit { public static final long KB = 1024L; diff --git a/java/src/test/java/org/rocksdb/AbstractComparatorTest.java b/java/src/test/java/org/terarkdb/AbstractComparatorTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/AbstractComparatorTest.java rename to java/src/test/java/org/terarkdb/AbstractComparatorTest.java index 91a1e99942..610242ee86 100644 --- a/java/src/test/java/org/rocksdb/AbstractComparatorTest.java +++ b/java/src/test/java/org/terarkdb/AbstractComparatorTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.io.IOException; import java.nio.file.*; @@ -13,8 +13,8 @@ import java.util.Random; import static org.assertj.core.api.Assertions.assertThat; -import static org.rocksdb.Types.byteToInt; -import static org.rocksdb.Types.intToByte; +import static org.terarkdb.Types.byteToInt; +import static org.terarkdb.Types.intToByte; /** * Abstract tests for both Comparator and DirectComparator diff --git a/java/src/test/java/org/rocksdb/AbstractTransactionTest.java b/java/src/test/java/org/terarkdb/AbstractTransactionTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/AbstractTransactionTest.java rename to java/src/test/java/org/terarkdb/AbstractTransactionTest.java index 7cac3015b9..021d0c7bbf 100644 --- a/java/src/test/java/org/rocksdb/AbstractTransactionTest.java +++ b/java/src/test/java/org/terarkdb/AbstractTransactionTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Rule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/BackupEngineTest.java b/java/src/test/java/org/terarkdb/BackupEngineTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/BackupEngineTest.java rename to java/src/test/java/org/terarkdb/BackupEngineTest.java index 7c50df3571..42e6f01ba7 100644 --- a/java/src/test/java/org/rocksdb/BackupEngineTest.java +++ b/java/src/test/java/org/terarkdb/BackupEngineTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/BackupableDBOptionsTest.java b/java/src/test/java/org/terarkdb/BackupableDBOptionsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/BackupableDBOptionsTest.java rename to java/src/test/java/org/terarkdb/BackupableDBOptionsTest.java index c223014fd2..99cf2dc5e9 100644 --- a/java/src/test/java/org/rocksdb/BackupableDBOptionsTest.java +++ b/java/src/test/java/org/terarkdb/BackupableDBOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import static org.assertj.core.api.Assertions.assertThat; diff --git a/java/src/test/java/org/rocksdb/BlockBasedTableConfigTest.java b/java/src/test/java/org/terarkdb/BlockBasedTableConfigTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/BlockBasedTableConfigTest.java rename to java/src/test/java/org/terarkdb/BlockBasedTableConfigTest.java index 754cf11c03..9fd63cf53d 100644 --- a/java/src/test/java/org/rocksdb/BlockBasedTableConfigTest.java +++ b/java/src/test/java/org/terarkdb/BlockBasedTableConfigTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/CheckPointTest.java b/java/src/test/java/org/terarkdb/CheckPointTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/CheckPointTest.java rename to java/src/test/java/org/terarkdb/CheckPointTest.java index e79569fb8b..aff64efad6 100644 --- a/java/src/test/java/org/rocksdb/CheckPointTest.java +++ b/java/src/test/java/org/terarkdb/CheckPointTest.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; diff --git a/java/src/test/java/org/rocksdb/ClockCacheTest.java b/java/src/test/java/org/terarkdb/ClockCacheTest.java similarity index 96% rename from java/src/test/java/org/rocksdb/ClockCacheTest.java rename to java/src/test/java/org/terarkdb/ClockCacheTest.java index d1241ac75b..7068ffcca7 100644 --- a/java/src/test/java/org/rocksdb/ClockCacheTest.java +++ b/java/src/test/java/org/terarkdb/ClockCacheTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java b/java/src/test/java/org/terarkdb/ColumnFamilyOptionsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java rename to java/src/test/java/org/terarkdb/ColumnFamilyOptionsTest.java index 5dff13be33..79adcda811 100644 --- a/java/src/test/java/org/rocksdb/ColumnFamilyOptionsTest.java +++ b/java/src/test/java/org/terarkdb/ColumnFamilyOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/ColumnFamilyTest.java b/java/src/test/java/org/terarkdb/ColumnFamilyTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/ColumnFamilyTest.java rename to java/src/test/java/org/terarkdb/ColumnFamilyTest.java index 0b943ac96e..8ca4999f64 100644 --- a/java/src/test/java/org/rocksdb/ColumnFamilyTest.java +++ b/java/src/test/java/org/terarkdb/ColumnFamilyTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.*; diff --git a/java/src/test/java/org/rocksdb/CompactRangeOptionsTest.java b/java/src/test/java/org/terarkdb/CompactRangeOptionsTest.java similarity index 97% rename from java/src/test/java/org/rocksdb/CompactRangeOptionsTest.java rename to java/src/test/java/org/terarkdb/CompactRangeOptionsTest.java index 18c187ddba..a6b02219e4 100644 --- a/java/src/test/java/org/rocksdb/CompactRangeOptionsTest.java +++ b/java/src/test/java/org/terarkdb/CompactRangeOptionsTest.java @@ -3,10 +3,10 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; -import org.rocksdb.CompactRangeOptions.BottommostLevelCompaction; +import org.terarkdb.CompactRangeOptions.BottommostLevelCompaction; import static org.assertj.core.api.Assertions.assertThat; diff --git a/java/src/test/java/org/rocksdb/CompactionFilterFactoryTest.java b/java/src/test/java/org/terarkdb/CompactionFilterFactoryTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/CompactionFilterFactoryTest.java rename to java/src/test/java/org/terarkdb/CompactionFilterFactoryTest.java index e90307b0df..58a311f872 100644 --- a/java/src/test/java/org/rocksdb/CompactionFilterFactoryTest.java +++ b/java/src/test/java/org/terarkdb/CompactionFilterFactoryTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Rule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/CompactionOptionsUniversalTest.java b/java/src/test/java/org/terarkdb/CompactionOptionsUniversalTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/CompactionOptionsUniversalTest.java rename to java/src/test/java/org/terarkdb/CompactionOptionsUniversalTest.java index 5e2d195b6e..28fbb5e520 100644 --- a/java/src/test/java/org/rocksdb/CompactionOptionsUniversalTest.java +++ b/java/src/test/java/org/terarkdb/CompactionOptionsUniversalTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/CompactionPriorityTest.java b/java/src/test/java/org/terarkdb/CompactionPriorityTest.java similarity index 97% rename from java/src/test/java/org/rocksdb/CompactionPriorityTest.java rename to java/src/test/java/org/terarkdb/CompactionPriorityTest.java index b078e132f9..26797ff114 100644 --- a/java/src/test/java/org/rocksdb/CompactionPriorityTest.java +++ b/java/src/test/java/org/terarkdb/CompactionPriorityTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/CompactionStopStyleTest.java b/java/src/test/java/org/terarkdb/CompactionStopStyleTest.java similarity index 97% rename from java/src/test/java/org/rocksdb/CompactionStopStyleTest.java rename to java/src/test/java/org/terarkdb/CompactionStopStyleTest.java index 4c8a20950c..73d2ce8c08 100644 --- a/java/src/test/java/org/rocksdb/CompactionStopStyleTest.java +++ b/java/src/test/java/org/terarkdb/CompactionStopStyleTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/ComparatorOptionsTest.java b/java/src/test/java/org/terarkdb/ComparatorOptionsTest.java similarity index 97% rename from java/src/test/java/org/rocksdb/ComparatorOptionsTest.java rename to java/src/test/java/org/terarkdb/ComparatorOptionsTest.java index a45c7173c2..73a3ebb7d3 100644 --- a/java/src/test/java/org/rocksdb/ComparatorOptionsTest.java +++ b/java/src/test/java/org/terarkdb/ComparatorOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/ComparatorTest.java b/java/src/test/java/org/terarkdb/ComparatorTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/ComparatorTest.java rename to java/src/test/java/org/terarkdb/ComparatorTest.java index 63dee7257d..f3a5bb574e 100644 --- a/java/src/test/java/org/rocksdb/ComparatorTest.java +++ b/java/src/test/java/org/terarkdb/ComparatorTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/CompressionOptionsTest.java b/java/src/test/java/org/terarkdb/CompressionOptionsTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/CompressionOptionsTest.java rename to java/src/test/java/org/terarkdb/CompressionOptionsTest.java index c49224ca36..28655f3deb 100644 --- a/java/src/test/java/org/rocksdb/CompressionOptionsTest.java +++ b/java/src/test/java/org/terarkdb/CompressionOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/CompressionTypesTest.java b/java/src/test/java/org/terarkdb/CompressionTypesTest.java similarity index 96% rename from java/src/test/java/org/rocksdb/CompressionTypesTest.java rename to java/src/test/java/org/terarkdb/CompressionTypesTest.java index e26cc0aca0..fa85a83655 100644 --- a/java/src/test/java/org/rocksdb/CompressionTypesTest.java +++ b/java/src/test/java/org/terarkdb/CompressionTypesTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/DBOptionsTest.java b/java/src/test/java/org/terarkdb/DBOptionsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/DBOptionsTest.java rename to java/src/test/java/org/terarkdb/DBOptionsTest.java index 65559665d0..adea8c9da7 100644 --- a/java/src/test/java/org/rocksdb/DBOptionsTest.java +++ b/java/src/test/java/org/terarkdb/DBOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/DirectComparatorTest.java b/java/src/test/java/org/terarkdb/DirectComparatorTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/DirectComparatorTest.java rename to java/src/test/java/org/terarkdb/DirectComparatorTest.java index 9b593d0565..b7ac5e65a9 100644 --- a/java/src/test/java/org/rocksdb/DirectComparatorTest.java +++ b/java/src/test/java/org/terarkdb/DirectComparatorTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/DirectSliceTest.java b/java/src/test/java/org/terarkdb/DirectSliceTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/DirectSliceTest.java rename to java/src/test/java/org/terarkdb/DirectSliceTest.java index 48ae52afd6..818dcd33bf 100644 --- a/java/src/test/java/org/rocksdb/DirectSliceTest.java +++ b/java/src/test/java/org/terarkdb/DirectSliceTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/EnvOptionsTest.java b/java/src/test/java/org/terarkdb/EnvOptionsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/EnvOptionsTest.java rename to java/src/test/java/org/terarkdb/EnvOptionsTest.java index 9933b1e1db..8357450660 100644 --- a/java/src/test/java/org/rocksdb/EnvOptionsTest.java +++ b/java/src/test/java/org/terarkdb/EnvOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/FilterTest.java b/java/src/test/java/org/terarkdb/FilterTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/FilterTest.java rename to java/src/test/java/org/terarkdb/FilterTest.java index c6109639e3..0c098588c5 100644 --- a/java/src/test/java/org/rocksdb/FilterTest.java +++ b/java/src/test/java/org/terarkdb/FilterTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/FlinkCompactionFilterTest.java b/java/src/test/java/org/terarkdb/FlinkCompactionFilterTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/FlinkCompactionFilterTest.java rename to java/src/test/java/org/terarkdb/FlinkCompactionFilterTest.java index 476bad5d7c..87827a5bf2 100644 --- a/java/src/test/java/org/rocksdb/FlinkCompactionFilterTest.java +++ b/java/src/test/java/org/terarkdb/FlinkCompactionFilterTest.java @@ -16,15 +16,15 @@ * limitations under the License. */ - package org.rocksdb; + package org.terarkdb; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import org.rocksdb.FlinkCompactionFilter.StateType; -import org.rocksdb.FlinkCompactionFilter.TimeProvider; +import org.terarkdb.FlinkCompactionFilter.StateType; +import org.terarkdb.FlinkCompactionFilter.TimeProvider; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; diff --git a/java/src/test/java/org/rocksdb/FlushTest.java b/java/src/test/java/org/terarkdb/FlushTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/FlushTest.java rename to java/src/test/java/org/terarkdb/FlushTest.java index 46a5cdc680..1b6002adeb 100644 --- a/java/src/test/java/org/rocksdb/FlushTest.java +++ b/java/src/test/java/org/terarkdb/FlushTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/InfoLogLevelTest.java b/java/src/test/java/org/terarkdb/InfoLogLevelTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/InfoLogLevelTest.java rename to java/src/test/java/org/terarkdb/InfoLogLevelTest.java index 48ecfa16a9..ed3fb08b74 100644 --- a/java/src/test/java/org/rocksdb/InfoLogLevelTest.java +++ b/java/src/test/java/org/terarkdb/InfoLogLevelTest.java @@ -1,10 +1,10 @@ -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import org.rocksdb.util.Environment; +import org.terarkdb.util.Environment; import java.io.IOException; diff --git a/java/src/test/java/org/rocksdb/IngestExternalFileOptionsTest.java b/java/src/test/java/org/terarkdb/IngestExternalFileOptionsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/IngestExternalFileOptionsTest.java rename to java/src/test/java/org/terarkdb/IngestExternalFileOptionsTest.java index 83e0dd17af..f25678c6ee 100644 --- a/java/src/test/java/org/rocksdb/IngestExternalFileOptionsTest.java +++ b/java/src/test/java/org/terarkdb/IngestExternalFileOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/KeyMayExistTest.java b/java/src/test/java/org/terarkdb/KeyMayExistTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/KeyMayExistTest.java rename to java/src/test/java/org/terarkdb/KeyMayExistTest.java index 577fe2eadf..4156a61187 100644 --- a/java/src/test/java/org/rocksdb/KeyMayExistTest.java +++ b/java/src/test/java/org/terarkdb/KeyMayExistTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/LRUCacheTest.java b/java/src/test/java/org/terarkdb/LRUCacheTest.java similarity index 96% rename from java/src/test/java/org/rocksdb/LRUCacheTest.java rename to java/src/test/java/org/terarkdb/LRUCacheTest.java index d2cd15b7e9..941e1e2529 100644 --- a/java/src/test/java/org/rocksdb/LRUCacheTest.java +++ b/java/src/test/java/org/terarkdb/LRUCacheTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/LoggerTest.java b/java/src/test/java/org/terarkdb/LoggerTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/LoggerTest.java rename to java/src/test/java/org/terarkdb/LoggerTest.java index f83cff3b7f..2faed45af6 100644 --- a/java/src/test/java/org/rocksdb/LoggerTest.java +++ b/java/src/test/java/org/terarkdb/LoggerTest.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/MemTableTest.java b/java/src/test/java/org/terarkdb/MemTableTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/MemTableTest.java rename to java/src/test/java/org/terarkdb/MemTableTest.java index 59503d4818..3b50ebc928 100644 --- a/java/src/test/java/org/rocksdb/MemTableTest.java +++ b/java/src/test/java/org/terarkdb/MemTableTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/MemoryUtilTest.java b/java/src/test/java/org/terarkdb/MemoryUtilTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/MemoryUtilTest.java rename to java/src/test/java/org/terarkdb/MemoryUtilTest.java index 73fcc87c32..f143a945d0 100644 --- a/java/src/test/java/org/rocksdb/MemoryUtilTest.java +++ b/java/src/test/java/org/terarkdb/MemoryUtilTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/MergeTest.java b/java/src/test/java/org/terarkdb/MergeTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/MergeTest.java rename to java/src/test/java/org/terarkdb/MergeTest.java index b7f5f3be22..a5958be23b 100644 --- a/java/src/test/java/org/rocksdb/MergeTest.java +++ b/java/src/test/java/org/terarkdb/MergeTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.nio.ByteBuffer; import java.nio.ByteOrder; diff --git a/java/src/test/java/org/rocksdb/MixedOptionsTest.java b/java/src/test/java/org/terarkdb/MixedOptionsTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/MixedOptionsTest.java rename to java/src/test/java/org/terarkdb/MixedOptionsTest.java index ff68b1b00e..e6f1c89355 100644 --- a/java/src/test/java/org/rocksdb/MixedOptionsTest.java +++ b/java/src/test/java/org/terarkdb/MixedOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/MutableColumnFamilyOptionsTest.java b/java/src/test/java/org/terarkdb/MutableColumnFamilyOptionsTest.java similarity index 96% rename from java/src/test/java/org/rocksdb/MutableColumnFamilyOptionsTest.java rename to java/src/test/java/org/terarkdb/MutableColumnFamilyOptionsTest.java index f631905e19..292ecf4ae1 100644 --- a/java/src/test/java/org/rocksdb/MutableColumnFamilyOptionsTest.java +++ b/java/src/test/java/org/terarkdb/MutableColumnFamilyOptionsTest.java @@ -2,10 +2,10 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; -import org.rocksdb.MutableColumnFamilyOptions.MutableColumnFamilyOptionsBuilder; +import org.terarkdb.MutableColumnFamilyOptions.MutableColumnFamilyOptionsBuilder; import java.util.NoSuchElementException; diff --git a/java/src/test/java/org/rocksdb/NativeComparatorWrapperTest.java b/java/src/test/java/org/terarkdb/NativeComparatorWrapperTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/NativeComparatorWrapperTest.java rename to java/src/test/java/org/terarkdb/NativeComparatorWrapperTest.java index d1bdf0f884..36eb782c56 100644 --- a/java/src/test/java/org/rocksdb/NativeComparatorWrapperTest.java +++ b/java/src/test/java/org/terarkdb/NativeComparatorWrapperTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Rule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/NativeLibraryLoaderTest.java b/java/src/test/java/org/terarkdb/NativeLibraryLoaderTest.java similarity index 95% rename from java/src/test/java/org/rocksdb/NativeLibraryLoaderTest.java rename to java/src/test/java/org/terarkdb/NativeLibraryLoaderTest.java index ab60081a07..02414926fc 100644 --- a/java/src/test/java/org/rocksdb/NativeLibraryLoaderTest.java +++ b/java/src/test/java/org/terarkdb/NativeLibraryLoaderTest.java @@ -2,12 +2,12 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import org.rocksdb.util.Environment; +import org.terarkdb.util.Environment; import java.io.File; import java.io.IOException; diff --git a/java/src/test/java/org/rocksdb/OptimisticTransactionDBTest.java b/java/src/test/java/org/terarkdb/OptimisticTransactionDBTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/OptimisticTransactionDBTest.java rename to java/src/test/java/org/terarkdb/OptimisticTransactionDBTest.java index 519b70b1d2..18ac872ba2 100644 --- a/java/src/test/java/org/rocksdb/OptimisticTransactionDBTest.java +++ b/java/src/test/java/org/terarkdb/OptimisticTransactionDBTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Rule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/OptimisticTransactionOptionsTest.java b/java/src/test/java/org/terarkdb/OptimisticTransactionOptionsTest.java similarity index 93% rename from java/src/test/java/org/rocksdb/OptimisticTransactionOptionsTest.java rename to java/src/test/java/org/terarkdb/OptimisticTransactionOptionsTest.java index 4a57e33568..ce7d790688 100644 --- a/java/src/test/java/org/rocksdb/OptimisticTransactionOptionsTest.java +++ b/java/src/test/java/org/terarkdb/OptimisticTransactionOptionsTest.java @@ -3,10 +3,10 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; -import org.rocksdb.util.DirectBytewiseComparator; +import org.terarkdb.util.DirectBytewiseComparator; import java.util.Random; diff --git a/java/src/test/java/org/rocksdb/OptimisticTransactionTest.java b/java/src/test/java/org/terarkdb/OptimisticTransactionTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/OptimisticTransactionTest.java rename to java/src/test/java/org/terarkdb/OptimisticTransactionTest.java index f44816e64b..b5b88a5873 100644 --- a/java/src/test/java/org/rocksdb/OptimisticTransactionTest.java +++ b/java/src/test/java/org/terarkdb/OptimisticTransactionTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/OptionsTest.java b/java/src/test/java/org/terarkdb/OptionsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/OptionsTest.java rename to java/src/test/java/org/terarkdb/OptionsTest.java index b81f9e99c1..d867ca1bbc 100644 --- a/java/src/test/java/org/rocksdb/OptionsTest.java +++ b/java/src/test/java/org/terarkdb/OptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.nio.file.Paths; import java.util.ArrayList; diff --git a/java/src/test/java/org/rocksdb/OptionsUtilTest.java b/java/src/test/java/org/terarkdb/OptionsUtilTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/OptionsUtilTest.java rename to java/src/test/java/org/terarkdb/OptionsUtilTest.java index e79951aa85..312abc6080 100644 --- a/java/src/test/java/org/rocksdb/OptionsUtilTest.java +++ b/java/src/test/java/org/terarkdb/OptionsUtilTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/PlainTableConfigTest.java b/java/src/test/java/org/terarkdb/PlainTableConfigTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/PlainTableConfigTest.java rename to java/src/test/java/org/terarkdb/PlainTableConfigTest.java index dcb6cc39f8..e63dd2132b 100644 --- a/java/src/test/java/org/rocksdb/PlainTableConfigTest.java +++ b/java/src/test/java/org/terarkdb/PlainTableConfigTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/PlatformRandomHelper.java b/java/src/test/java/org/terarkdb/PlatformRandomHelper.java similarity index 98% rename from java/src/test/java/org/rocksdb/PlatformRandomHelper.java rename to java/src/test/java/org/terarkdb/PlatformRandomHelper.java index 80ea4d197f..fab5c39cae 100644 --- a/java/src/test/java/org/rocksdb/PlatformRandomHelper.java +++ b/java/src/test/java/org/terarkdb/PlatformRandomHelper.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Random; diff --git a/java/src/test/java/org/rocksdb/RateLimiterTest.java b/java/src/test/java/org/terarkdb/RateLimiterTest.java similarity index 97% rename from java/src/test/java/org/rocksdb/RateLimiterTest.java rename to java/src/test/java/org/terarkdb/RateLimiterTest.java index c78f9876e6..134d013c1d 100644 --- a/java/src/test/java/org/rocksdb/RateLimiterTest.java +++ b/java/src/test/java/org/terarkdb/RateLimiterTest.java @@ -2,13 +2,13 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; -import static org.rocksdb.RateLimiter.*; +import static org.terarkdb.RateLimiter.*; public class RateLimiterTest { diff --git a/java/src/test/java/org/rocksdb/ReadOnlyTest.java b/java/src/test/java/org/terarkdb/ReadOnlyTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/ReadOnlyTest.java rename to java/src/test/java/org/terarkdb/ReadOnlyTest.java index 6b4c7b2596..64ed8e4ef0 100644 --- a/java/src/test/java/org/rocksdb/ReadOnlyTest.java +++ b/java/src/test/java/org/terarkdb/ReadOnlyTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/ReadOptionsTest.java b/java/src/test/java/org/terarkdb/ReadOptionsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/ReadOptionsTest.java rename to java/src/test/java/org/terarkdb/ReadOptionsTest.java index 078d3f9d43..d5134abed5 100644 --- a/java/src/test/java/org/rocksdb/ReadOptionsTest.java +++ b/java/src/test/java/org/terarkdb/ReadOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Arrays; import java.util.Random; diff --git a/java/src/test/java/org/rocksdb/RocksDBExceptionTest.java b/java/src/test/java/org/terarkdb/RocksDBExceptionTest.java similarity index 97% rename from java/src/test/java/org/rocksdb/RocksDBExceptionTest.java rename to java/src/test/java/org/terarkdb/RocksDBExceptionTest.java index d3bd4ece7f..88d768c4fa 100644 --- a/java/src/test/java/org/rocksdb/RocksDBExceptionTest.java +++ b/java/src/test/java/org/terarkdb/RocksDBExceptionTest.java @@ -3,12 +3,12 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; -import org.rocksdb.Status.Code; -import org.rocksdb.Status.SubCode; +import org.terarkdb.Status.Code; +import org.terarkdb.Status.SubCode; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.fail; diff --git a/java/src/test/java/org/rocksdb/RocksDBTest.java b/java/src/test/java/org/terarkdb/RocksDBTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/RocksDBTest.java rename to java/src/test/java/org/terarkdb/RocksDBTest.java index 66ebc69db8..35fd7f1901 100644 --- a/java/src/test/java/org/rocksdb/RocksDBTest.java +++ b/java/src/test/java/org/terarkdb/RocksDBTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Assert; import org.junit.Assume; diff --git a/java/src/test/java/org/rocksdb/RocksEnvTest.java b/java/src/test/java/org/terarkdb/RocksEnvTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/RocksEnvTest.java rename to java/src/test/java/org/terarkdb/RocksEnvTest.java index dfb7961073..32a0fdecea 100644 --- a/java/src/test/java/org/rocksdb/RocksEnvTest.java +++ b/java/src/test/java/org/terarkdb/RocksEnvTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/RocksIteratorTest.java b/java/src/test/java/org/terarkdb/RocksIteratorTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/RocksIteratorTest.java rename to java/src/test/java/org/terarkdb/RocksIteratorTest.java index 45893eec11..1f0583d62b 100644 --- a/java/src/test/java/org/rocksdb/RocksIteratorTest.java +++ b/java/src/test/java/org/terarkdb/RocksIteratorTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/RocksMemEnvTest.java b/java/src/test/java/org/terarkdb/RocksMemEnvTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/RocksMemEnvTest.java rename to java/src/test/java/org/terarkdb/RocksMemEnvTest.java index 04fae2e95d..0f7711141c 100644 --- a/java/src/test/java/org/rocksdb/RocksMemEnvTest.java +++ b/java/src/test/java/org/terarkdb/RocksMemEnvTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/RocksMemoryResource.java b/java/src/test/java/org/terarkdb/RocksMemoryResource.java similarity index 95% rename from java/src/test/java/org/rocksdb/RocksMemoryResource.java rename to java/src/test/java/org/terarkdb/RocksMemoryResource.java index 6fd1c7e667..3e4b57e42a 100644 --- a/java/src/test/java/org/rocksdb/RocksMemoryResource.java +++ b/java/src/test/java/org/terarkdb/RocksMemoryResource.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; import org.junit.rules.ExternalResource; diff --git a/java/src/test/java/org/rocksdb/SliceTest.java b/java/src/test/java/org/terarkdb/SliceTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/SliceTest.java rename to java/src/test/java/org/terarkdb/SliceTest.java index 7ee656cd28..d27d66086b 100644 --- a/java/src/test/java/org/rocksdb/SliceTest.java +++ b/java/src/test/java/org/terarkdb/SliceTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/SnapshotTest.java b/java/src/test/java/org/terarkdb/SnapshotTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/SnapshotTest.java rename to java/src/test/java/org/terarkdb/SnapshotTest.java index de48c898bd..fa1393b1b8 100644 --- a/java/src/test/java/org/rocksdb/SnapshotTest.java +++ b/java/src/test/java/org/terarkdb/SnapshotTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/SstFileManagerTest.java b/java/src/test/java/org/terarkdb/SstFileManagerTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/SstFileManagerTest.java rename to java/src/test/java/org/terarkdb/SstFileManagerTest.java index 2e136e8200..af9863a8bb 100644 --- a/java/src/test/java/org/rocksdb/SstFileManagerTest.java +++ b/java/src/test/java/org/terarkdb/SstFileManagerTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/SstFileWriterTest.java b/java/src/test/java/org/terarkdb/SstFileWriterTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/SstFileWriterTest.java rename to java/src/test/java/org/terarkdb/SstFileWriterTest.java index 6261210b12..53c9b58f59 100644 --- a/java/src/test/java/org/rocksdb/SstFileWriterTest.java +++ b/java/src/test/java/org/terarkdb/SstFileWriterTest.java @@ -3,13 +3,13 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import org.rocksdb.util.BytewiseComparator; +import org.terarkdb.util.BytewiseComparator; import java.io.File; import java.io.IOException; diff --git a/java/src/test/java/org/rocksdb/StatisticsCollectorTest.java b/java/src/test/java/org/terarkdb/StatisticsCollectorTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/StatisticsCollectorTest.java rename to java/src/test/java/org/terarkdb/StatisticsCollectorTest.java index 8dd0cd4930..6400c6e632 100644 --- a/java/src/test/java/org/rocksdb/StatisticsCollectorTest.java +++ b/java/src/test/java/org/terarkdb/StatisticsCollectorTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Collections; diff --git a/java/src/test/java/org/rocksdb/StatisticsTest.java b/java/src/test/java/org/terarkdb/StatisticsTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/StatisticsTest.java rename to java/src/test/java/org/terarkdb/StatisticsTest.java index 2103c2fc78..3b551dc93d 100644 --- a/java/src/test/java/org/rocksdb/StatisticsTest.java +++ b/java/src/test/java/org/terarkdb/StatisticsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/StatsCallbackMock.java b/java/src/test/java/org/terarkdb/StatsCallbackMock.java similarity index 96% rename from java/src/test/java/org/rocksdb/StatsCallbackMock.java rename to java/src/test/java/org/terarkdb/StatsCallbackMock.java index af8db0caab..0ff9d050fb 100644 --- a/java/src/test/java/org/rocksdb/StatsCallbackMock.java +++ b/java/src/test/java/org/terarkdb/StatsCallbackMock.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; public class StatsCallbackMock implements StatisticsCollectorCallback { public int tickerCallbackCount = 0; diff --git a/java/src/test/java/org/rocksdb/TransactionDBOptionsTest.java b/java/src/test/java/org/terarkdb/TransactionDBOptionsTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/TransactionDBOptionsTest.java rename to java/src/test/java/org/terarkdb/TransactionDBOptionsTest.java index 7eaa6b16cd..ed541987e2 100644 --- a/java/src/test/java/org/rocksdb/TransactionDBOptionsTest.java +++ b/java/src/test/java/org/terarkdb/TransactionDBOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/TransactionDBTest.java b/java/src/test/java/org/terarkdb/TransactionDBTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/TransactionDBTest.java rename to java/src/test/java/org/terarkdb/TransactionDBTest.java index b0ea813ff5..94b895af25 100644 --- a/java/src/test/java/org/rocksdb/TransactionDBTest.java +++ b/java/src/test/java/org/terarkdb/TransactionDBTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Rule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java b/java/src/test/java/org/terarkdb/TransactionLogIteratorTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java rename to java/src/test/java/org/terarkdb/TransactionLogIteratorTest.java index b619258ecc..1cacc75188 100644 --- a/java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java +++ b/java/src/test/java/org/terarkdb/TransactionLogIteratorTest.java @@ -1,4 +1,4 @@ -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/TransactionOptionsTest.java b/java/src/test/java/org/terarkdb/TransactionOptionsTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/TransactionOptionsTest.java rename to java/src/test/java/org/terarkdb/TransactionOptionsTest.java index add0439e03..2af2fbd1c7 100644 --- a/java/src/test/java/org/rocksdb/TransactionOptionsTest.java +++ b/java/src/test/java/org/terarkdb/TransactionOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/TransactionTest.java b/java/src/test/java/org/terarkdb/TransactionTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/TransactionTest.java rename to java/src/test/java/org/terarkdb/TransactionTest.java index 57a05c9e3a..04cb32fb74 100644 --- a/java/src/test/java/org/rocksdb/TransactionTest.java +++ b/java/src/test/java/org/terarkdb/TransactionTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/TtlDBTest.java b/java/src/test/java/org/terarkdb/TtlDBTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/TtlDBTest.java rename to java/src/test/java/org/terarkdb/TtlDBTest.java index cd72634a23..8d8c9a4fae 100644 --- a/java/src/test/java/org/rocksdb/TtlDBTest.java +++ b/java/src/test/java/org/terarkdb/TtlDBTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/Types.java b/java/src/test/java/org/terarkdb/Types.java similarity index 97% rename from java/src/test/java/org/rocksdb/Types.java rename to java/src/test/java/org/terarkdb/Types.java index c3c1de833a..043e2efbd5 100644 --- a/java/src/test/java/org/rocksdb/Types.java +++ b/java/src/test/java/org/terarkdb/Types.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; /** * Simple type conversion methods diff --git a/java/src/test/java/org/rocksdb/WALRecoveryModeTest.java b/java/src/test/java/org/terarkdb/WALRecoveryModeTest.java similarity index 96% rename from java/src/test/java/org/rocksdb/WALRecoveryModeTest.java rename to java/src/test/java/org/terarkdb/WALRecoveryModeTest.java index 2a0133f6b8..8701e41993 100644 --- a/java/src/test/java/org/rocksdb/WALRecoveryModeTest.java +++ b/java/src/test/java/org/terarkdb/WALRecoveryModeTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/WriteBatchHandlerTest.java b/java/src/test/java/org/terarkdb/WriteBatchHandlerTest.java similarity index 91% rename from java/src/test/java/org/rocksdb/WriteBatchHandlerTest.java rename to java/src/test/java/org/terarkdb/WriteBatchHandlerTest.java index 0c7b0d3cad..cb899f4d84 100644 --- a/java/src/test/java/org/rocksdb/WriteBatchHandlerTest.java +++ b/java/src/test/java/org/terarkdb/WriteBatchHandlerTest.java @@ -3,18 +3,18 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import java.util.Arrays; import java.util.List; import org.junit.ClassRule; import org.junit.Test; -import org.rocksdb.util.CapturingWriteBatchHandler; -import org.rocksdb.util.CapturingWriteBatchHandler.Event; +import org.terarkdb.util.CapturingWriteBatchHandler; +import org.terarkdb.util.CapturingWriteBatchHandler.Event; import static org.assertj.core.api.Assertions.assertThat; -import static org.rocksdb.util.CapturingWriteBatchHandler.Action.*; +import static org.terarkdb.util.CapturingWriteBatchHandler.Action.*; public class WriteBatchHandlerTest { diff --git a/java/src/test/java/org/rocksdb/WriteBatchTest.java b/java/src/test/java/org/terarkdb/WriteBatchTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/WriteBatchTest.java rename to java/src/test/java/org/terarkdb/WriteBatchTest.java index 1e3e50b7e4..1c568180f7 100644 --- a/java/src/test/java/org/rocksdb/WriteBatchTest.java +++ b/java/src/test/java/org/terarkdb/WriteBatchTest.java @@ -6,18 +6,18 @@ // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import org.rocksdb.util.CapturingWriteBatchHandler; -import org.rocksdb.util.CapturingWriteBatchHandler.Event; -import org.rocksdb.util.WriteBatchGetter; +import org.terarkdb.util.CapturingWriteBatchHandler; +import org.terarkdb.util.CapturingWriteBatchHandler.Event; +import org.terarkdb.util.WriteBatchGetter; import static org.assertj.core.api.Assertions.assertThat; -import static org.rocksdb.util.CapturingWriteBatchHandler.Action.*; +import static org.terarkdb.util.CapturingWriteBatchHandler.Action.*; import static java.nio.charset.StandardCharsets.UTF_8; /** diff --git a/java/src/test/java/org/rocksdb/WriteBatchThreadedTest.java b/java/src/test/java/org/terarkdb/WriteBatchThreadedTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/WriteBatchThreadedTest.java rename to java/src/test/java/org/terarkdb/WriteBatchThreadedTest.java index c5090dbceb..cce6393d3d 100644 --- a/java/src/test/java/org/rocksdb/WriteBatchThreadedTest.java +++ b/java/src/test/java/org/terarkdb/WriteBatchThreadedTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.After; import org.junit.Before; diff --git a/java/src/test/java/org/rocksdb/WriteBatchWithIndexTest.java b/java/src/test/java/org/terarkdb/WriteBatchWithIndexTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/WriteBatchWithIndexTest.java rename to java/src/test/java/org/terarkdb/WriteBatchWithIndexTest.java index 061af2b8fd..47ee1e6123 100644 --- a/java/src/test/java/org/rocksdb/WriteBatchWithIndexTest.java +++ b/java/src/test/java/org/terarkdb/WriteBatchWithIndexTest.java @@ -7,7 +7,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/WriteOptionsTest.java b/java/src/test/java/org/terarkdb/WriteOptionsTest.java similarity index 98% rename from java/src/test/java/org/rocksdb/WriteOptionsTest.java rename to java/src/test/java/org/terarkdb/WriteOptionsTest.java index 27071e8f29..82497725a1 100644 --- a/java/src/test/java/org/rocksdb/WriteOptionsTest.java +++ b/java/src/test/java/org/terarkdb/WriteOptionsTest.java @@ -3,7 +3,7 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb; +package org.terarkdb; import org.junit.ClassRule; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/test/RocksJunitRunner.java b/java/src/test/java/org/terarkdb/test/RocksJunitRunner.java similarity index 97% rename from java/src/test/java/org/rocksdb/test/RocksJunitRunner.java rename to java/src/test/java/org/terarkdb/test/RocksJunitRunner.java index 42d3148ef2..373ab96519 100644 --- a/java/src/test/java/org/rocksdb/test/RocksJunitRunner.java +++ b/java/src/test/java/org/terarkdb/test/RocksJunitRunner.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.test; +package org.terarkdb.test; import org.junit.internal.JUnitSystem; import org.junit.internal.RealSystem; @@ -11,7 +11,7 @@ import org.junit.runner.JUnitCore; import org.junit.runner.Result; import org.junit.runner.notification.Failure; -import org.rocksdb.RocksDB; +import org.terarkdb.RocksDB; import java.io.PrintStream; import java.text.DecimalFormat; @@ -19,7 +19,7 @@ import java.util.ArrayList; import java.util.List; -import static org.rocksdb.test.RocksJunitRunner.RocksJunitListener.Status.*; +import static org.terarkdb.test.RocksJunitRunner.RocksJunitListener.Status.*; /** * Custom Junit Runner to print also Test classes diff --git a/java/src/test/java/org/rocksdb/util/BytewiseComparatorTest.java b/java/src/test/java/org/terarkdb/util/BytewiseComparatorTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/util/BytewiseComparatorTest.java rename to java/src/test/java/org/terarkdb/util/BytewiseComparatorTest.java index 8149a4800a..39266b5281 100644 --- a/java/src/test/java/org/rocksdb/util/BytewiseComparatorTest.java +++ b/java/src/test/java/org/terarkdb/util/BytewiseComparatorTest.java @@ -3,11 +3,11 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.util; +package org.terarkdb.util; import org.junit.Test; -import org.rocksdb.*; -import org.rocksdb.Comparator; +import org.terarkdb.*; +import org.terarkdb.Comparator; import java.io.IOException; import java.nio.charset.StandardCharsets; diff --git a/java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java b/java/src/test/java/org/terarkdb/util/CapturingWriteBatchHandler.java similarity index 98% rename from java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java rename to java/src/test/java/org/terarkdb/util/CapturingWriteBatchHandler.java index 51bf647a6a..25882cc31f 100644 --- a/java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java +++ b/java/src/test/java/org/terarkdb/util/CapturingWriteBatchHandler.java @@ -1,7 +1,7 @@ -package org.rocksdb.util; +package org.terarkdb.util; -import org.rocksdb.RocksDBException; -import org.rocksdb.WriteBatch; +import org.terarkdb.RocksDBException; +import org.terarkdb.WriteBatch; import java.util.ArrayList; import java.util.Arrays; diff --git a/java/src/test/java/org/rocksdb/util/EnvironmentTest.java b/java/src/test/java/org/terarkdb/util/EnvironmentTest.java similarity index 99% rename from java/src/test/java/org/rocksdb/util/EnvironmentTest.java rename to java/src/test/java/org/terarkdb/util/EnvironmentTest.java index 18984bb07e..7142e9ddd6 100644 --- a/java/src/test/java/org/rocksdb/util/EnvironmentTest.java +++ b/java/src/test/java/org/terarkdb/util/EnvironmentTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.util; +package org.terarkdb.util; import org.junit.AfterClass; import org.junit.BeforeClass; diff --git a/java/src/test/java/org/rocksdb/util/SizeUnitTest.java b/java/src/test/java/org/terarkdb/util/SizeUnitTest.java similarity index 96% rename from java/src/test/java/org/rocksdb/util/SizeUnitTest.java rename to java/src/test/java/org/terarkdb/util/SizeUnitTest.java index 990aa5f47a..107355377b 100644 --- a/java/src/test/java/org/rocksdb/util/SizeUnitTest.java +++ b/java/src/test/java/org/terarkdb/util/SizeUnitTest.java @@ -2,7 +2,7 @@ // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). -package org.rocksdb.util; +package org.terarkdb.util; import org.junit.Test; diff --git a/java/src/test/java/org/rocksdb/util/WriteBatchGetter.java b/java/src/test/java/org/terarkdb/util/WriteBatchGetter.java similarity index 96% rename from java/src/test/java/org/rocksdb/util/WriteBatchGetter.java rename to java/src/test/java/org/terarkdb/util/WriteBatchGetter.java index 0dcdb87cfd..f57dc19bbb 100644 --- a/java/src/test/java/org/rocksdb/util/WriteBatchGetter.java +++ b/java/src/test/java/org/terarkdb/util/WriteBatchGetter.java @@ -1,7 +1,7 @@ -package org.rocksdb.util; +package org.terarkdb.util; -import org.rocksdb.RocksDBException; -import org.rocksdb.WriteBatch; +import org.terarkdb.RocksDBException; +import org.terarkdb.WriteBatch; import java.util.Arrays; diff --git a/utilities/flink/flink_compaction_filter_test.cc b/utilities/flink/flink_compaction_filter_test.cc index 2d469c911b..21ce9878f4 100644 --- a/utilities/flink/flink_compaction_filter_test.cc +++ b/utilities/flink/flink_compaction_filter_test.cc @@ -143,8 +143,8 @@ void Deinit() { delete filter; } TEST(FlinkStateTtlTest, CheckStateTypeEnumOrder) { // NOLINT // if the order changes it also needs to be adjusted in Java client: - // in org.rocksdb.FlinkCompactionFilter - // and in org.rocksdb.FlinkCompactionFilterTest + // in org.terarkdb.FlinkCompactionFilter + // and in org.terarkdb.FlinkCompactionFilterTest EXPECT_EQ(DISABLED, 0); EXPECT_EQ(VALUE, 1); EXPECT_EQ(LIST, 2);