[RocksJava] Lint adjustments

main
fyrz 10 years ago
parent d7529b2de9
commit 3d78c7a8cf
  1. 198
      java/rocksjni/backupablejni.cc

@ -210,114 +210,114 @@ jboolean Java_org_rocksdb_BackupableDBOptions_sync(
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: setDestroyOldData * Method: setDestroyOldData
* Signature: (JZ)V * Signature: (JZ)V
*/ */
void Java_org_rocksdb_BackupableDBOptions_setDestroyOldData( void Java_org_rocksdb_BackupableDBOptions_setDestroyOldData(
JNIEnv* env, jobject jobj, jlong jhandle, jboolean flag) { JNIEnv* env, jobject jobj, jlong jhandle, jboolean flag) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
bopt->destroy_old_data = flag; bopt->destroy_old_data = flag;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: destroyOldData * Method: destroyOldData
* Signature: (J)Z * Signature: (J)Z
*/ */
jboolean Java_org_rocksdb_BackupableDBOptions_destroyOldData( jboolean Java_org_rocksdb_BackupableDBOptions_destroyOldData(
JNIEnv* env, jobject jobj, jlong jhandle) { JNIEnv* env, jobject jobj, jlong jhandle) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
return bopt->destroy_old_data; return bopt->destroy_old_data;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: setBackupLogFiles * Method: setBackupLogFiles
* Signature: (JZ)V * Signature: (JZ)V
*/ */
void Java_org_rocksdb_BackupableDBOptions_setBackupLogFiles( void Java_org_rocksdb_BackupableDBOptions_setBackupLogFiles(
JNIEnv* env, jobject jobj, jlong jhandle, jboolean flag) { JNIEnv* env, jobject jobj, jlong jhandle, jboolean flag) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
bopt->backup_log_files = flag; bopt->backup_log_files = flag;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: backupLogFiles * Method: backupLogFiles
* Signature: (J)Z * Signature: (J)Z
*/ */
jboolean Java_org_rocksdb_BackupableDBOptions_backupLogFiles( jboolean Java_org_rocksdb_BackupableDBOptions_backupLogFiles(
JNIEnv* env, jobject jobj, jlong jhandle) { JNIEnv* env, jobject jobj, jlong jhandle) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
return bopt->backup_log_files; return bopt->backup_log_files;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: setBackupRateLimit * Method: setBackupRateLimit
* Signature: (JJ)V * Signature: (JJ)V
*/ */
void Java_org_rocksdb_BackupableDBOptions_setBackupRateLimit( void Java_org_rocksdb_BackupableDBOptions_setBackupRateLimit(
JNIEnv* env, jobject jobj, jlong jhandle, jlong jbackup_rate_limit) { JNIEnv* env, jobject jobj, jlong jhandle, jlong jbackup_rate_limit) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
bopt->backup_rate_limit = jbackup_rate_limit; bopt->backup_rate_limit = jbackup_rate_limit;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: backupRateLimit * Method: backupRateLimit
* Signature: (J)J * Signature: (J)J
*/ */
jlong Java_org_rocksdb_BackupableDBOptions_backupRateLimit( jlong Java_org_rocksdb_BackupableDBOptions_backupRateLimit(
JNIEnv* env, jobject jobj, jlong jhandle) { JNIEnv* env, jobject jobj, jlong jhandle) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
return bopt->backup_rate_limit; return bopt->backup_rate_limit;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: setRestoreRateLimit * Method: setRestoreRateLimit
* Signature: (JJ)V * Signature: (JJ)V
*/ */
void Java_org_rocksdb_BackupableDBOptions_setRestoreRateLimit( void Java_org_rocksdb_BackupableDBOptions_setRestoreRateLimit(
JNIEnv* env, jobject jobj, jlong jhandle, jlong jrestore_rate_limit) { JNIEnv* env, jobject jobj, jlong jhandle, jlong jrestore_rate_limit) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
bopt->restore_rate_limit = jrestore_rate_limit; bopt->restore_rate_limit = jrestore_rate_limit;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: restoreRateLimit * Method: restoreRateLimit
* Signature: (J)J * Signature: (J)J
*/ */
jlong Java_org_rocksdb_BackupableDBOptions_restoreRateLimit( jlong Java_org_rocksdb_BackupableDBOptions_restoreRateLimit(
JNIEnv* env, jobject jobj, jlong jhandle) { JNIEnv* env, jobject jobj, jlong jhandle) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
return bopt->restore_rate_limit; return bopt->restore_rate_limit;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: setShareFilesWithChecksum * Method: setShareFilesWithChecksum
* Signature: (JZ)V * Signature: (JZ)V
*/ */
void Java_org_rocksdb_BackupableDBOptions_setShareFilesWithChecksum( void Java_org_rocksdb_BackupableDBOptions_setShareFilesWithChecksum(
JNIEnv* env, jobject jobj, jlong jhandle, jboolean flag) { JNIEnv* env, jobject jobj, jlong jhandle, jboolean flag) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
bopt->share_files_with_checksum = flag; bopt->share_files_with_checksum = flag;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions
* Method: shareFilesWithChecksum * Method: shareFilesWithChecksum
* Signature: (J)Z * Signature: (J)Z
*/ */
jboolean Java_org_rocksdb_BackupableDBOptions_shareFilesWithChecksum( jboolean Java_org_rocksdb_BackupableDBOptions_shareFilesWithChecksum(
JNIEnv* env, jobject jobj, jlong jhandle) { JNIEnv* env, jobject jobj, jlong jhandle) {
auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle); auto bopt = reinterpret_cast<rocksdb::BackupableDBOptions*>(jhandle);
return bopt->share_files_with_checksum; return bopt->share_files_with_checksum;
} }
/* /*
* Class: org_rocksdb_BackupableDBOptions * Class: org_rocksdb_BackupableDBOptions

Loading…
Cancel
Save