From 540ea316e77eb38f09a74b07365964c2a1161d8e Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Tue, 31 Mar 2015 16:02:26 +0000
Subject: [PATCH] OPENDJ-1199: Reduce memory/disk usage of JE backend (variable length encoding for EntryIDSet)
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/Cursor.java | 9 +++++----
1 files changed, 5 insertions(+), 4 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 a8add5c..a5f84b3 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
@@ -28,12 +28,13 @@
import java.io.Closeable;
import org.forgerock.opendj.ldap.ByteSequence;
-import org.forgerock.opendj.ldap.ByteString;
/**
* Cursor that iterates through records in a tree.
+ * @param <K> Type of the record's key
+ * @param <V> Type of the record's value
*/
-public interface Cursor extends Closeable
+public interface Cursor<K,V> extends Closeable
{
/**
* Positions the cursor to the provided key if it exists in the tree.
@@ -96,7 +97,7 @@
* @return the current record's key,
* or {@code null} if this cursor is not positioned on any record.
*/
- ByteString getKey();
+ K getKey();
/**
* Returns the value of the record on which this cursor is currently positioned.
@@ -104,7 +105,7 @@
* @return the current record's value,
* or {@code null} if this cursor is not positioned on any record.
*/
- ByteString getValue();
+ V getValue();
/** {@inheritDoc} */
@Override
--
Gitblit v1.10.0