From 9ff093de3e9f067d08bcc6d3134121128974a681 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 11 Apr 2014 13:47:56 +0000
Subject: [PATCH] OPENDJ-1308 Migrate schema support
---
opendj3-server-dev/src/server/org/opends/server/backends/jeb/SubstringIndexer.java | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/jeb/SubstringIndexer.java b/opendj3-server-dev/src/server/org/opends/server/backends/jeb/SubstringIndexer.java
index 9d0180e..072f84e 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/jeb/SubstringIndexer.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/jeb/SubstringIndexer.java
@@ -44,21 +44,16 @@
{
private SubstringMatchingRule substringRule;
- private IndexingOptions indexingOptions;
/**
* Create a new attribute substring indexer for the given index configuration.
*
* @param attributeType
* The attribute type for which an indexer is required.
- * @param indexingOptions
- * The decomposed substring length.
*/
- public SubstringIndexer(AttributeType attributeType,
- IndexingOptions indexingOptions)
+ public SubstringIndexer(AttributeType attributeType)
{
this.substringRule = attributeType.getSubstringMatchingRule();
- this.indexingOptions = indexingOptions;
}
/** {@inheritDoc} */
@@ -84,7 +79,7 @@
{ // FIXME Code similar to
// AbstractSubstringMatchingRuleImpl.SubstringIndexer.createKeys()
ByteString normValue = substringRule.normalizeAttributeValue(value);
- final int substringKeySize = indexingOptions.substringKeySize();
+ final int substringKeySize = options.substringKeySize();
// Example: The value is ABCDE and the substring length is 3.
// We produce the keys ABC BCD CDE DE E
--
Gitblit v1.10.0