From 9f0904fda87bfcf921deeccdbaeafe834fbad696 Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Fri, 24 Apr 2015 14:30:47 +0000
Subject: [PATCH] OPENDJ-1725: Persistit: very long recovery and many discarded txns after addrate test

---
 opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java |   34 ++--------------------------------
 1 files changed, 2 insertions(+), 32 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 48e9444..87455d0 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
@@ -25,16 +25,14 @@
  */
 package org.opends.server.backends.pluggable.spi;
 
-import java.io.Closeable;
-
 import org.forgerock.opendj.ldap.ByteSequence;
 
 /**
- * Cursor that iterates through records in a tree.
+ * Sequential cursor extended with navigation methods.
  * @param <K> Type of the record's key
  * @param <V> Type of the record's value
  */
-public interface Cursor<K,V> extends Closeable
+public interface Cursor<K,V> extends SequentialCursor<K, V>
 {
   /**
    * Positions the cursor to the provided key if it exists in the tree.
@@ -74,32 +72,4 @@
    * @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,
-   *         {@code false} if no next record exists
-   */
-  boolean next();
-
-  /**
-   * Returns the key of the record on which this cursor is currently positioned.
-   *
-   * @return the current record's key,
-   *         or {@code null} if this cursor is not positioned on any record.
-   */
-  K getKey();
-
-  /**
-   * Returns the value of the record on which this cursor is currently positioned.
-   *
-   * @return the current record's value,
-   *         or {@code null} if this cursor is not positioned on any record.
-   */
-  V getValue();
-
-  /** {@inheritDoc} */
-  @Override
-  void close();
 }
\ No newline at end of file

--
Gitblit v1.10.0