From 05875933ae6929bc8e53f366ce116f2fc431fd46 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Fri, 27 Jul 2007 21:06:35 +0000
Subject: [PATCH] These set of changes implement VLV and filter capability to OpenDS:

---
 opends/src/server/org/opends/server/backends/jeb/SortValues.java |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/jeb/SortValues.java b/opends/src/server/org/opends/server/backends/jeb/SortValues.java
index 1d26ff8..ed2bda1 100644
--- a/opends/src/server/org/opends/server/backends/jeb/SortValues.java
+++ b/opends/src/server/org/opends/server/backends/jeb/SortValues.java
@@ -38,7 +38,6 @@
 import org.opends.server.types.SortOrder;
 
 
-
 /**
  * This class defines a data structure that holds a set of attribute values that
  * are associated with a sort order for a given entry.  Any or all of the
@@ -66,6 +65,22 @@
   /**
    * Creates a new sort values object with the provided information.
    *
+   * @param entryID    The entry ID for the entry associated with this set of
+   *                   values.
+   * @param values     The attribute values for this sort values.
+   * @param sortOrder  The sort order to use to obtain the necessary values.
+   */
+  public SortValues(EntryID entryID, AttributeValue[] values,
+                    SortOrder sortOrder)
+  {
+    this.entryID = entryID;
+    this.sortOrder = sortOrder;
+    this.values = values;
+  }
+
+  /**
+   * Creates a new sort values object with the provided information.
+   *
    * @param  entryID    The entry ID for the entry associated with this set of
    *                    values.
    * @param  entry      The entry containing the values to extract and use when
@@ -243,5 +258,26 @@
     buffer.append(entryID.toString());
     buffer.append(")");
   }
+
+  /**
+   * Retrieve the attribute values in this sort values.
+   *
+   * @return The array of attribute values for this sort values.
+   */
+  public AttributeValue[] getValues()
+  {
+    return values;
+  }
+
+  /**
+   * Retrieve the entry ID in this sort values.
+   *
+   * @return The entry ID for this sort values.
+   */
+  public long getEntryID()
+  {
+    return entryID.longValue();
+  }
 }
 
+

--
Gitblit v1.10.0