export_import_files_metadatajni.cc 771 B

12345678910111213141516171819202122
  1. // Copyright (c) Meta Platforms, Inc. and affiliates.
  2. //
  3. // This source code is licensed under both the GPLv2 (found in the
  4. // COPYING file in the root directory) and Apache 2.0 License
  5. // (found in the LICENSE.Apache file in the root directory).
  6. #include "include/org_rocksdb_ExportImportFilesMetaData.h"
  7. #include "include/org_rocksdb_LiveFileMetaData.h"
  8. #include "rocksjni/portal.h"
  9. /*
  10. * Class: org_rocksdb_ExportImportFilesMetaData
  11. * Method: disposeInternal
  12. * Signature: (J)V
  13. */
  14. void Java_org_rocksdb_ExportImportFilesMetaData_disposeInternal(
  15. JNIEnv* /*env*/, jobject /*jopt*/, jlong jhandle) {
  16. auto* metadata =
  17. reinterpret_cast<ROCKSDB_NAMESPACE::ExportImportFilesMetaData*>(jhandle);
  18. assert(metadata != nullptr);
  19. delete metadata;
  20. }