Skip to content

Commit

Permalink
Remove unncessary JNIEXPORT and JNICALL
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpaxton committed Sep 16, 2024
1 parent f46987f commit 5447c92
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions java/rocksjni/ingest_external_file_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ void Java_org_rocksdb_IngestExternalFileOptions_setIngestBehind(
* Method: writeGlobalSeqno
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL
Java_org_rocksdb_IngestExternalFileOptions_writeGlobalSeqno(JNIEnv*, jclass,
jlong jhandle) {
jboolean Java_org_rocksdb_IngestExternalFileOptions_writeGlobalSeqno(
JNIEnv*, jclass, jlong jhandle) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
return options->write_global_seqno == JNI_TRUE;
Expand All @@ -177,8 +176,7 @@ Java_org_rocksdb_IngestExternalFileOptions_writeGlobalSeqno(JNIEnv*, jclass,
* Method: setWriteGlobalSeqno
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL
Java_org_rocksdb_IngestExternalFileOptions_setWriteGlobalSeqno(
void Java_org_rocksdb_IngestExternalFileOptions_setWriteGlobalSeqno(
JNIEnv*, jclass, jlong jhandle, jboolean jwrite_global_seqno) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand All @@ -190,8 +188,7 @@ Java_org_rocksdb_IngestExternalFileOptions_setWriteGlobalSeqno(
* Method: verifyChecksumsBeforeIngest
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL
Java_org_rocksdb_IngestExternalFileOptions_verifyChecksumsBeforeIngest(
jboolean Java_org_rocksdb_IngestExternalFileOptions_verifyChecksumsBeforeIngest(
JNIEnv*, jclass, jlong jhandle) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand All @@ -203,8 +200,7 @@ Java_org_rocksdb_IngestExternalFileOptions_verifyChecksumsBeforeIngest(
* Method: setVerifyChecksumsBeforeIngest
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL
Java_org_rocksdb_IngestExternalFileOptions_setVerifyChecksumsBeforeIngest(
void Java_org_rocksdb_IngestExternalFileOptions_setVerifyChecksumsBeforeIngest(
JNIEnv*, jclass, jlong jhandle, jboolean jverify_checksums_before_ingest) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand All @@ -217,8 +213,7 @@ Java_org_rocksdb_IngestExternalFileOptions_setVerifyChecksumsBeforeIngest(
* Method: verifyChecksumsReadaheadSize
* Signature: (J)Z
*/
JNIEXPORT jlong JNICALL
Java_org_rocksdb_IngestExternalFileOptions_verifyChecksumsReadaheadSize(
jlong Java_org_rocksdb_IngestExternalFileOptions_verifyChecksumsReadaheadSize(
JNIEnv*, jclass, jlong jhandle) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand All @@ -230,8 +225,7 @@ Java_org_rocksdb_IngestExternalFileOptions_verifyChecksumsReadaheadSize(
* Method: setVerifyChecksumsReadaheadSize
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL
Java_org_rocksdb_IngestExternalFileOptions_setVerifyChecksumsReadaheadSize(
void Java_org_rocksdb_IngestExternalFileOptions_setVerifyChecksumsReadaheadSize(
JNIEnv*, jclass, jlong jhandle, jlong jverify_checksums_readahead_size) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand All @@ -243,9 +237,8 @@ Java_org_rocksdb_IngestExternalFileOptions_setVerifyChecksumsReadaheadSize(
* Method: verifyFileChecksum
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL
Java_org_rocksdb_IngestExternalFileOptions_verifyFileChecksum(JNIEnv*, jclass,
jlong jhandle) {
jboolean Java_org_rocksdb_IngestExternalFileOptions_verifyFileChecksum(
JNIEnv*, jclass, jlong jhandle) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
return options->verify_file_checksum ? JNI_TRUE : JNI_FALSE;
Expand All @@ -256,8 +249,7 @@ Java_org_rocksdb_IngestExternalFileOptions_verifyFileChecksum(JNIEnv*, jclass,
* Method: setVerifyFileChecksum
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL
Java_org_rocksdb_IngestExternalFileOptions_setVerifyFileChecksum(
void Java_org_rocksdb_IngestExternalFileOptions_setVerifyFileChecksum(
JNIEnv*, jclass, jlong jhandle, jboolean jverify_file_checksum) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand All @@ -269,9 +261,8 @@ Java_org_rocksdb_IngestExternalFileOptions_setVerifyFileChecksum(
* Method: failIfNotLastLevel
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL
Java_org_rocksdb_IngestExternalFileOptions_failIfNotLastLevel(JNIEnv*, jclass,
jlong jhandle) {
jboolean Java_org_rocksdb_IngestExternalFileOptions_failIfNotLastLevel(
JNIEnv*, jclass, jlong jhandle) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
return options->fail_if_not_bottommost_level ? JNI_TRUE : JNI_FALSE;
Expand All @@ -282,8 +273,7 @@ Java_org_rocksdb_IngestExternalFileOptions_failIfNotLastLevel(JNIEnv*, jclass,
* Method: setFailIfNotLastLevel
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL
Java_org_rocksdb_IngestExternalFileOptions_setFailIfNotLastLevel(
void Java_org_rocksdb_IngestExternalFileOptions_setFailIfNotLastLevel(
JNIEnv*, jclass, jlong jhandle, jboolean jfail_if_not_bottommost_level) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand All @@ -296,8 +286,8 @@ Java_org_rocksdb_IngestExternalFileOptions_setFailIfNotLastLevel(
* Method: linkFiles
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_org_rocksdb_IngestExternalFileOptions_linkFiles(
JNIEnv*, jclass, jlong jhandle) {
jboolean Java_org_rocksdb_IngestExternalFileOptions_linkFiles(JNIEnv*, jclass,
jlong jhandle) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
return options->link_files ? JNI_TRUE : JNI_FALSE;
Expand All @@ -308,7 +298,7 @@ JNIEXPORT jboolean JNICALL Java_org_rocksdb_IngestExternalFileOptions_linkFiles(
* Method: setLinkFiles
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_org_rocksdb_IngestExternalFileOptions_setLinkFiles(
void Java_org_rocksdb_IngestExternalFileOptions_setLinkFiles(
JNIEnv*, jclass, jlong jhandle, jboolean jlink_files) {
auto* options =
reinterpret_cast<ROCKSDB_NAMESPACE::IngestExternalFileOptions*>(jhandle);
Expand Down

0 comments on commit 5447c92

Please sign in to comment.