提交 14220442 编写于 作者: A Ankit Gupta

Fix formatting

上级 22d45de2
......@@ -162,7 +162,7 @@ public class Options {
/*
* Maximum number of concurrent background jobs, submitted to
* the default LOW priority thread pool
* the default LOW priority thread pool.
* Default: 1
*
* @param maximum number of concurrent background jobs.
......@@ -174,9 +174,9 @@ public class Options {
}
/*
* Returns maximum number of background concurrent jobs
* Returns maximum number of background concurrent jobs.
*
* @return maximum number of background concurrent jobs
* @return maximum number of background concurrent jobs.
* @see setMaxBackgroundCompactions
*/
public int maxBackgroundCompactions() {
......@@ -204,13 +204,16 @@ public class Options {
private native boolean createIfMissing(long handle);
private native void setWriteBufferSize(long handle, int writeBufferSize);
private native int writeBufferSize(long handle);
private native void setMaxWriteBufferNumber(long handle, int maxWriteBufferNumber);
private native void setMaxWriteBufferNumber(
long handle, int maxWriteBufferNumber);
private native int maxWriteBufferNumber(long handle);
private native void setBlockSize(long handle, int blockSize);
private native int blockSize(long handle);
private native void setDisableSeekCompaction(long handle, boolean disableSeekCompaction);
private native void setDisableSeekCompaction(
long handle, boolean disableSeekCompaction);
private native boolean disableSeekCompaction(long handle);
private native void setMaxBackgroundCompactions(long handle, int maxBackgroundCompactions);
private native void setMaxBackgroundCompactions(
long handle, int maxBackgroundCompactions);
private native int maxBackgroundCompactions(long handle);
long nativeHandle_;
......
......@@ -130,7 +130,7 @@ jint Java_org_rocksdb_Options_blockSize(
*/
void Java_org_rocksdb_Options_setDisableSeekCompaction(
JNIEnv* env, jobject jobj, jlong jhandle,
jboolean jdisable_seek_compaction) {
jboolean jdisable_seek_compaction) {
reinterpret_cast<rocksdb::Options*>(jhandle)->disable_seek_compaction =
jdisable_seek_compaction;
}
......@@ -152,7 +152,7 @@ jboolean Java_org_rocksdb_Options_disableSeekCompaction(
*/
void Java_org_rocksdb_Options_setMaxBackgroundCompactions(
JNIEnv* env, jobject jobj, jlong jhandle,
jint jmax_background_compactions) {
jint jmax_background_compactions) {
reinterpret_cast<rocksdb::Options*>(jhandle)->max_background_compactions =
jmax_background_compactions;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册