2019-02-22 22:36:38 +00:00
|
|
|
// 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
|
|
|
|
// (found in the LICENSE.Apache file in the root directory).
|
|
|
|
//
|
|
|
|
// This file implements the "bridge" between Java and C++ for
|
2020-02-20 20:07:53 +00:00
|
|
|
// ROCKSDB_NAMESPACE::CompactionJobStats.
|
2019-02-22 22:36:38 +00:00
|
|
|
|
2022-03-01 17:02:15 +00:00
|
|
|
#include "rocksdb/compaction_job_stats.h"
|
|
|
|
|
2019-02-22 22:36:38 +00:00
|
|
|
#include <jni.h>
|
|
|
|
|
|
|
|
#include "include/org_rocksdb_CompactionJobStats.h"
|
2022-03-01 17:02:15 +00:00
|
|
|
#include "rocksjni/cplusplus_to_java_convert.h"
|
2019-02-22 22:36:38 +00:00
|
|
|
#include "rocksjni/portal.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: newCompactionJobStats
|
|
|
|
* Signature: ()J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_newCompactionJobStats(JNIEnv*,
|
|
|
|
jclass) {
|
2020-02-20 20:07:53 +00:00
|
|
|
auto* compact_job_stats = new ROCKSDB_NAMESPACE::CompactionJobStats();
|
2022-03-01 17:02:15 +00:00
|
|
|
return GET_CPLUSPLUS_POINTER(compact_job_stats);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: disposeInternal
|
|
|
|
* Signature: (J)V
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
void Java_org_rocksdb_CompactionJobStats_disposeInternal(JNIEnv*, jobject,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2019-02-22 22:36:38 +00:00
|
|
|
delete compact_job_stats;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: reset
|
|
|
|
* Signature: (J)V
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
void Java_org_rocksdb_CompactionJobStats_reset(JNIEnv*, jclass, jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2019-02-22 22:36:38 +00:00
|
|
|
compact_job_stats->Reset();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: add
|
|
|
|
* Signature: (JJ)V
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
void Java_org_rocksdb_CompactionJobStats_add(JNIEnv*, jclass, jlong jhandle,
|
|
|
|
jlong jother_handle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* other_compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jother_handle);
|
2019-02-22 22:36:38 +00:00
|
|
|
compact_job_stats->Add(*other_compact_job_stats);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: elapsedMicros
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_elapsedMicros(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2019-02-22 22:36:38 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->elapsed_micros);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numInputRecords
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numInputRecords(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2019-02-22 22:36:38 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_input_records);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numInputFiles
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numInputFiles(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2019-02-22 22:36:38 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_input_files);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numInputFilesAtOutputLevel
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numInputFilesAtOutputLevel(
|
|
|
|
JNIEnv*, jclass, jlong jhandle) {
|
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_input_files_at_output_level);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numOutputRecords
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numOutputRecords(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_output_records);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numOutputFiles
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numOutputFiles(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_output_files);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: isManualCompaction
|
|
|
|
* Signature: (J)Z
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jboolean Java_org_rocksdb_CompactionJobStats_isManualCompaction(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2019-02-22 22:36:38 +00:00
|
|
|
if (compact_job_stats->is_manual_compaction) {
|
|
|
|
return JNI_TRUE;
|
|
|
|
} else {
|
|
|
|
return JNI_FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: totalInputBytes
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_totalInputBytes(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->total_input_bytes);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: totalOutputBytes
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_totalOutputBytes(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->total_output_bytes);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numRecordsReplaced
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numRecordsReplaced(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_records_replaced);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: totalInputRawKeyBytes
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_totalInputRawKeyBytes(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->total_input_raw_key_bytes);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: totalInputRawValueBytes
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_totalInputRawValueBytes(
|
|
|
|
JNIEnv*, jclass, jlong jhandle) {
|
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->total_input_raw_value_bytes);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numInputDeletionRecords
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numInputDeletionRecords(
|
|
|
|
JNIEnv*, jclass, jlong jhandle) {
|
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_input_deletion_records);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numExpiredDeletionRecords
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numExpiredDeletionRecords(
|
|
|
|
JNIEnv*, jclass, jlong jhandle) {
|
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_expired_deletion_records);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numCorruptKeys
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numCorruptKeys(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_corrupt_keys);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: fileWriteNanos
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_fileWriteNanos(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->file_write_nanos);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: fileRangeSyncNanos
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_fileRangeSyncNanos(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->file_range_sync_nanos);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: fileFsyncNanos
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_fileFsyncNanos(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->file_fsync_nanos);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: filePrepareWriteNanos
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_filePrepareWriteNanos(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->file_prepare_write_nanos);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: smallestOutputKeyPrefix
|
|
|
|
* Signature: (J)[B
|
|
|
|
*/
|
|
|
|
jbyteArray Java_org_rocksdb_CompactionJobStats_smallestOutputKeyPrefix(
|
|
|
|
JNIEnv* env, jclass, jlong jhandle) {
|
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
|
|
|
return ROCKSDB_NAMESPACE::JniUtil::copyBytes(
|
|
|
|
env, compact_job_stats->smallest_output_key_prefix);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: largestOutputKeyPrefix
|
|
|
|
* Signature: (J)[B
|
|
|
|
*/
|
|
|
|
jbyteArray Java_org_rocksdb_CompactionJobStats_largestOutputKeyPrefix(
|
|
|
|
JNIEnv* env, jclass, jlong jhandle) {
|
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
|
|
|
return ROCKSDB_NAMESPACE::JniUtil::copyBytes(
|
|
|
|
env, compact_job_stats->largest_output_key_prefix);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numSingleDelFallthru
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numSingleDelFallthru(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_single_del_fallthru);
|
2019-02-22 22:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_rocksdb_CompactionJobStats
|
|
|
|
* Method: numSingleDelMismatch
|
|
|
|
* Signature: (J)J
|
|
|
|
*/
|
2022-10-25 16:26:51 +00:00
|
|
|
jlong Java_org_rocksdb_CompactionJobStats_numSingleDelMismatch(JNIEnv*, jclass,
|
|
|
|
jlong jhandle) {
|
2019-02-22 22:36:38 +00:00
|
|
|
auto* compact_job_stats =
|
2020-02-20 20:07:53 +00:00
|
|
|
reinterpret_cast<ROCKSDB_NAMESPACE::CompactionJobStats*>(jhandle);
|
2022-10-25 16:26:51 +00:00
|
|
|
return static_cast<jlong>(compact_job_stats->num_single_del_mismatch);
|
2020-02-20 20:07:53 +00:00
|
|
|
}
|