From 8513213e8f8f1cd4d87a10b3218654c6988f5188 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 31 Mar 2015 10:00:47 +0000
Subject: [PATCH] CR-6474 OPENDJ-1711 - re-implement VLV support for pluggable backends

---
 opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java
index 8a4a427..a8add5c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java
@@ -65,6 +65,16 @@
   boolean positionToLastKey();
 
   /**
+   * Positions the cursor to the specified index within the tree. Implementations may take advantage
+   * of optimizations provided by the underlying storage, such as counted B-Trees.
+   *
+   * @param index
+   *          the index where the cursor should be positioned, (0 is the first record).
+   * @return {@code true} if the cursor could be positioned to the index, {@code false} otherwise
+   */
+  boolean positionToIndex(int index);
+
+  /**
    * Moves this cursor to the next record in the tree.
    *
    * @return {@code true} if the cursor could move to the next record,

--
Gitblit v1.10.0