/** * Moves to the Cursor to the next available entry, but only when less 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 nextLe(byte[] limitKey) throws IOException { return ViewUtils.nextCmp(this, limitKey, 1); }
/** * Moves to the Cursor to the next available entry, but only when less 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 nextLt(byte[] limitKey) throws IOException { return ViewUtils.nextCmp(this, limitKey, 0); }
/** * Moves to the Cursor to the next available entry, but only when less 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 nextLt(byte[] limitKey) throws IOException { return ViewUtils.nextCmp(this, limitKey, 0); }
/** * Moves to the Cursor to the next available entry, but only when less 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 nextLt(byte[] limitKey) throws IOException { return ViewUtils.nextCmp(this, limitKey, 0); }
/** * Moves to the Cursor to the next available entry, but only when less 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 nextLe(byte[] limitKey) throws IOException { return ViewUtils.nextCmp(this, limitKey, 1); }
/** * Moves to the Cursor to the next available entry, but only when less 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 nextLe(byte[] limitKey) throws IOException { return ViewUtils.nextCmp(this, limitKey, 1); }