From 4cd06b3633e335f68d6cad0ad2483246076775b4 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 07 Apr 2015 15:43:34 +0000
Subject: [PATCH] Code simplification in AttributeIndex
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQueryFactoryImpl.java | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQueryFactoryImpl.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQueryFactoryImpl.java
index 577e8d6..d9d6073 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQueryFactoryImpl.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/IndexQueryFactoryImpl.java
@@ -81,7 +81,7 @@
{
// Read the database and get Record for the key.
// Select the right index to be used.
- final Index index = attributeIndex.getIndexById(indexID);
+ final Index index = attributeIndex.getNameToIndexes().get(indexID);
if (index == null)
{
if(debugMessage != null)
@@ -117,8 +117,7 @@
@Override
public EntryIDSet evaluate(LocalizableMessageBuilder debugMessage)
{
- // Find the right index.
- final Index index = attributeIndex.getIndexById(indexID);
+ final Index index = attributeIndex.getNameToIndexes().get(indexID);
if (index == null)
{
if (debugMessage != null)
@@ -265,7 +264,7 @@
public EntryIDSet evaluate(LocalizableMessageBuilder debugMessage)
{
final String indexID = PRESENCE_INDEX_KEY;
- final Index index = attributeIndex.getIndexById(indexID);
+ final Index index = attributeIndex.getNameToIndexes().get(indexID);
if (index == null)
{
if(debugMessage != null)
--
Gitblit v1.10.0