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

boli
20.27.2007 fceec4773fdc91fa7e11334a56f0403fd69292ed
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/OrderingIndexer.java
@@ -57,10 +57,10 @@
  /**
   * The attribute index configuration for which this instance will
   * The attribute type for which this instance will
   * generate index keys.
   */
  private IndexConfig indexConfig;
  private AttributeType attributeType;
  /**
   * The attribute type ordering matching rule which is also the
@@ -71,13 +71,13 @@
  /**
   * Create a new attribute ordering indexer for the given index configuration.
   * @param indexConfig The index configuration for which an indexer is
   * @param attributeType The attribute type for which an indexer is
   * required.
   */
  public OrderingIndexer(IndexConfig indexConfig)
  public OrderingIndexer(AttributeType attributeType)
  {
    this.indexConfig = indexConfig;
    orderingRule = indexConfig.getAttributeType().getOrderingMatchingRule();
    this.attributeType = attributeType;
    this.orderingRule = attributeType.getOrderingMatchingRule();
  }
  /**
@@ -87,7 +87,7 @@
   */
  public String toString()
  {
    return indexConfig.getAttributeType().getNameOrOID() + ".ordering";
    return attributeType.getNameOrOID() + ".ordering";
  }
  /**
@@ -113,7 +113,7 @@
                       Set<ASN1OctetString> keys)
  {
    List<Attribute> attrList =
         entry.getAttribute(indexConfig.getAttributeType());
         entry.getAttribute(attributeType);
    if (attrList != null)
    {
      indexAttribute(attrList, keys);
@@ -138,11 +138,11 @@
  {
    List<Attribute> attrList;
    attrList = oldEntry.getAttribute(indexConfig.getAttributeType());
    attrList = oldEntry.getAttribute(attributeType);
    Set<ASN1OctetString> oldSet = new HashSet<ASN1OctetString>();
    indexAttribute(attrList, oldSet);
    attrList = newEntry.getAttribute(indexConfig.getAttributeType());
    attrList = newEntry.getAttribute(attributeType);
    Set<ASN1OctetString> newSet = new HashSet<ASN1OctetString>();
    indexAttribute(attrList, newSet);
@@ -181,7 +181,7 @@
       throws DatabaseException
  {
    List<Attribute> beforeList;
    beforeList = oldEntry.getAttribute(indexConfig.getAttributeType());
    beforeList = oldEntry.getAttribute(attributeType);
    // Pick out the modifications that apply to this indexed attribute
@@ -203,7 +203,7 @@
    {
      Attribute modAttr = mod.getAttribute();
      AttributeType modAttrType = modAttr.getAttributeType();
      if (modAttrType.equals(indexConfig.getAttributeType()))
      if (modAttrType.equals(attributeType))
      {
        switch (mod.getModificationType())
        {