/** * Moves to the Cursor to the previous available entry, but only when * greater than the given limit key. Cursor key and value are set to null * if no applicable entry exists, and position will be undefined. * * @return {@link LockResult#UNOWNED UNOWNED}, {@link LockResult#ACQUIRED * ACQUIRED}, {@link LockResult#OWNED_SHARED OWNED_SHARED}, {@link * LockResult#OWNED_UPGRADABLE OWNED_UPGRADABLE}, or {@link * LockResult#OWNED_EXCLUSIVE OWNED_EXCLUSIVE} * @throws NullPointerException if limit key is null * @throws IllegalStateException if position is undefined at invocation time */ public default LockResult previousGt(byte[] limitKey) throws IOException { return ViewUtils.previousCmp(this, limitKey, 0); }
/** * Moves to the Cursor to the previous available entry, but only when * greater than or equal to the given limit key. Cursor key and value are * set to null if no applicable entry exists, and position will be * undefined. * * @return {@link LockResult#UNOWNED UNOWNED}, {@link LockResult#ACQUIRED * ACQUIRED}, {@link LockResult#OWNED_SHARED OWNED_SHARED}, {@link * LockResult#OWNED_UPGRADABLE OWNED_UPGRADABLE}, or {@link * LockResult#OWNED_EXCLUSIVE OWNED_EXCLUSIVE} * @throws NullPointerException if limit key is null * @throws IllegalStateException if position is undefined at invocation time */ public default LockResult previousGe(byte[] limitKey) throws IOException { return ViewUtils.previousCmp(this, limitKey, -1); }
/** * Moves to the Cursor to the previous available entry, but only when * greater than the given limit key. Cursor key and value are set to null * if no applicable entry exists, and position will be undefined. * * @return {@link LockResult#UNOWNED UNOWNED}, {@link LockResult#ACQUIRED * ACQUIRED}, {@link LockResult#OWNED_SHARED OWNED_SHARED}, {@link * LockResult#OWNED_UPGRADABLE OWNED_UPGRADABLE}, or {@link * LockResult#OWNED_EXCLUSIVE OWNED_EXCLUSIVE} * @throws NullPointerException if limit key is null * @throws IllegalStateException if position is undefined at invocation time */ public default LockResult previousGt(byte[] limitKey) throws IOException { return ViewUtils.previousCmp(this, limitKey, 0); }
/** * Moves to the Cursor to the previous available entry, but only when * greater than or equal to the given limit key. Cursor key and value are * set to null if no applicable entry exists, and position will be * undefined. * * @return {@link LockResult#UNOWNED UNOWNED}, {@link LockResult#ACQUIRED * ACQUIRED}, {@link LockResult#OWNED_SHARED OWNED_SHARED}, {@link * LockResult#OWNED_UPGRADABLE OWNED_UPGRADABLE}, or {@link * LockResult#OWNED_EXCLUSIVE OWNED_EXCLUSIVE} * @throws NullPointerException if limit key is null * @throws UnpositionedCursorException if position is undefined at invocation time */ public default LockResult previousGe(byte[] limitKey) throws IOException { return ViewUtils.previousCmp(this, limitKey, -1); }
/** * Moves to the Cursor to the previous available entry, but only when * greater than the given limit key. Cursor key and value are set to null * if no applicable entry exists, and position will be undefined. * * @return {@link LockResult#UNOWNED UNOWNED}, {@link LockResult#ACQUIRED * ACQUIRED}, {@link LockResult#OWNED_SHARED OWNED_SHARED}, {@link * LockResult#OWNED_UPGRADABLE OWNED_UPGRADABLE}, or {@link * LockResult#OWNED_EXCLUSIVE OWNED_EXCLUSIVE} * @throws NullPointerException if limit key is null * @throws UnpositionedCursorException if position is undefined at invocation time */ public default LockResult previousGt(byte[] limitKey) throws IOException { return ViewUtils.previousCmp(this, limitKey, 0); }
/** * Moves to the Cursor to the previous available entry, but only when * greater than or equal to the given limit key. Cursor key and value are * set to null if no applicable entry exists, and position will be * undefined. * * @return {@link LockResult#UNOWNED UNOWNED}, {@link LockResult#ACQUIRED * ACQUIRED}, {@link LockResult#OWNED_SHARED OWNED_SHARED}, {@link * LockResult#OWNED_UPGRADABLE OWNED_UPGRADABLE}, or {@link * LockResult#OWNED_EXCLUSIVE OWNED_EXCLUSIVE} * @throws NullPointerException if limit key is null * @throws IllegalStateException if position is undefined at invocation time */ public default LockResult previousGe(byte[] limitKey) throws IOException { return ViewUtils.previousCmp(this, limitKey, -1); }