private void moveToPrevious() { if (!previous.isValid()) { throw new IllegalStateException("Can move back only once and not in first key in the block."); } SeekerState tmp = previous; previous = current; current = tmp; // move after last key value currentBuffer.position(current.nextKvOffset); previous.invalidate(); }
private void moveToPrevious() { if (!previous.isValid()) { throw new IllegalStateException("Can move back only once and not in first key in the block."); } SeekerState tmp = previous; previous = current; current = tmp; // move after last key value currentBuffer.position(current.nextKvOffset); previous.invalidate(); }
private void moveToPrevious() { if (!previous.isValid()) { throw new IllegalStateException("Can move back only once and not in first key in the block."); } SeekerState tmp = previous; previous = current; current = tmp; // move after last key value currentBuffer.position(current.nextKvOffset); previous.invalidate(); }