]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/java/src/main/java/org/rocksdb/CompactRangeOptions.java
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / CompactRangeOptions.java
index e8c892110cd0ec98ed729474ba1c52352343e7e5..c07bd96a552120e616816c3ae1b311cca622cb05 100644 (file)
@@ -88,26 +88,6 @@ public class CompactRangeOptions extends RocksObject {
     return this;
   }
 
-
-  /**
-   * Returns the policy for compacting the bottommost level
-   * @return The BottommostLevelCompaction policy
-   */
-  public BottommostLevelCompaction bottommostLevelCompaction() {
-    return BottommostLevelCompaction.fromRocksId(bottommostLevelCompaction(nativeHandle_));
-  }
-
-  /**
-   * Sets the policy for compacting the bottommost level
-   *
-   * @param bottommostLevelCompaction The policy for compacting the bottommost level
-   * @return This CompactRangeOptions
-   */
-  public CompactRangeOptions setBottommostLevelCompaction(final BottommostLevelCompaction bottommostLevelCompaction) {
-    setBottommostLevelCompaction(nativeHandle_, bottommostLevelCompaction.getValue());
-    return this;
-  }
-
   /**
    * Returns whether compacted files will be moved to the minimum level capable of holding the data or given level
    * (specified non-negative target_level).
@@ -170,6 +150,25 @@ public class CompactRangeOptions extends RocksObject {
     return this;
   }
 
+  /**
+   * Returns the policy for compacting the bottommost level
+   * @return The BottommostLevelCompaction policy
+   */
+  public BottommostLevelCompaction bottommostLevelCompaction() {
+    return BottommostLevelCompaction.fromRocksId(bottommostLevelCompaction(nativeHandle_));
+  }
+
+  /**
+   * Sets the policy for compacting the bottommost level
+   *
+   * @param bottommostLevelCompaction The policy for compacting the bottommost level
+   * @return This CompactRangeOptions
+   */
+  public CompactRangeOptions setBottommostLevelCompaction(final BottommostLevelCompaction bottommostLevelCompaction) {
+    setBottommostLevelCompaction(nativeHandle_, bottommostLevelCompaction.getValue());
+    return this;
+  }
+
   /**
    * If true, compaction will execute immediately even if doing so would cause the DB to
    * enter write stall mode. Otherwise, it'll sleep until load is low enough.
@@ -212,22 +211,27 @@ public class CompactRangeOptions extends RocksObject {
   }
 
   private native static long newCompactRangeOptions();
+  @Override protected final native void disposeInternal(final long handle);
+
   private native boolean exclusiveManualCompaction(final long handle);
-  private native void setExclusiveManualCompaction(final long handle, final boolean exclusive_manual_compaction);
-  private native int bottommostLevelCompaction(final long handle);
-  private native void setBottommostLevelCompaction(final long handle, final int bottommostLevelCompaction);
+  private native void setExclusiveManualCompaction(final long handle,
+      final boolean exclusive_manual_compaction);
   private native boolean changeLevel(final long handle);
-  private native void setChangeLevel(final long handle, final boolean changeLevel);
+  private native void setChangeLevel(final long handle,
+      final boolean changeLevel);
   private native int targetLevel(final long handle);
-  private native void setTargetLevel(final long handle, final int targetLevel);
+  private native void setTargetLevel(final long handle,
+      final int targetLevel);
   private native int targetPathId(final long handle);
-  private native void setTargetPathId(final long handle, final int /* uint32_t */ targetPathId);
+  private native void setTargetPathId(final long handle,
+      final int targetPathId);
+  private native int bottommostLevelCompaction(final long handle);
+  private native void setBottommostLevelCompaction(final long handle,
+      final int bottommostLevelCompaction);
   private native boolean allowWriteStall(final long handle);
-  private native void setAllowWriteStall(final long handle, final boolean allowWriteStall);
-  private native void setMaxSubcompactions(final long handle, final int /* uint32_t */ maxSubcompactions);
+  private native void setAllowWriteStall(final long handle,
+      final boolean allowWriteStall);
+  private native void setMaxSubcompactions(final long handle,
+      final int maxSubcompactions);
   private native int maxSubcompactions(final long handle);
-
-  @Override
-  protected final native void disposeInternal(final long handle);
-
 }