mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
13.32.2014 0c7ecbc4e3c91aa10086a9be077f97f25cd8ff0d
opendj3-server-dev/src/server/org/opends/server/backends/jeb/Indexer.java
@@ -31,6 +31,7 @@
import java.util.Map;
import java.util.Set;
import org.forgerock.opendj.ldap.ByteSequence;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.spi.IndexingOptions;
import org.opends.server.backends.jeb.AttributeIndex.BSKeyComparator;
@@ -45,12 +46,6 @@
public abstract class Indexer
{
  /**
   * The comparator for keys generated by this class.
   */
  private static final KeyComparator comparator = new KeyComparator();
  private static final BSKeyComparator bsComparator = new BSKeyComparator();
  /**
   * Get the comparator that must be used to compare index keys generated by
   * this class.
   *
@@ -58,7 +53,7 @@
   */
  public final Comparator<byte[]> getComparator()
  {
    return comparator;
    return KeyComparator.INSTANCE;
  }
  /**
@@ -67,9 +62,9 @@
   *
   * @return A byte string comparator.
   */
  public final Comparator<ByteString> getBSComparator()
  public final Comparator<ByteSequence> getBSComparator()
  {
    return bsComparator;
    return BSKeyComparator.INSTANCE;
  }
  /**
@@ -112,5 +107,6 @@
   * used to name an index created using this object.
   * @return A string representation of this object.
   */
  @Override
  public abstract String toString();
}