X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Frocksdb%2Fjava%2Fsrc%2Fmain%2Fjava%2Forg%2Frocksdb%2FCompactRangeOptions.java;h=c07bd96a552120e616816c3ae1b311cca622cb05;hb=494da23a05e25ed98f5539f3b89e6af3cafe3fec;hp=e8c892110cd0ec98ed729474ba1c52352343e7e5;hpb=931c18d5142274109ebfaecd012da8e5a3ebc67e;p=ceph.git diff --git a/ceph/src/rocksdb/java/src/main/java/org/rocksdb/CompactRangeOptions.java b/ceph/src/rocksdb/java/src/main/java/org/rocksdb/CompactRangeOptions.java index e8c892110..c07bd96a5 100644 --- a/ceph/src/rocksdb/java/src/main/java/org/rocksdb/CompactRangeOptions.java +++ b/ceph/src/rocksdb/java/src/main/java/org/rocksdb/CompactRangeOptions.java @@ -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); - }