| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public ByteString normalizeValue(ByteSequence value) |
| | | public ByteString normalizeAttributeValue(ByteSequence value) |
| | | throws DirectoryException |
| | | { |
| | | CollationKey key = collator.getCollationKey(value.toString()); |
| | |
| | | { |
| | | // Normalize the assertion value. |
| | | return factory.createExactMatchQuery(indexer |
| | | .getExtensibleIndexID(), normalizeValue(assertionValue)); |
| | | .getExtensibleIndexID(), normalizeAttributeValue(assertionValue)); |
| | | } |
| | | |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public ByteString normalizeValue(ByteSequence value) |
| | | public ByteString normalizeAttributeValue(ByteSequence value) |
| | | throws DirectoryException |
| | | { |
| | | CollationKey key = collator.getCollationKey(value.toString()); |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public ByteString normalizeValue(ByteSequence value) |
| | | public ByteString normalizeAttributeValue(ByteSequence value) |
| | | throws DirectoryException |
| | | { |
| | | CollationKey key = collator.getCollationKey(value.toString()); |
| | |
| | | { |
| | | return factory.createRangeMatchQuery(indexer |
| | | .getExtensibleIndexID(), ByteString.empty(), |
| | | normalizeValue(assertionValue), false, false); |
| | | normalizeAttributeValue(assertionValue), false, false); |
| | | } |
| | | } |
| | | |
| | |
| | | // Read the range: lower < keys <= upper. |
| | | return factory.createRangeMatchQuery(indexer |
| | | .getExtensibleIndexID(), ByteString.empty(), |
| | | normalizeValue(assertionValue), false, true); |
| | | normalizeAttributeValue(assertionValue), false, true); |
| | | } |
| | | } |
| | | |
| | |
| | | IndexQueryFactory<T> factory) throws DirectoryException |
| | | { |
| | | return factory.createRangeMatchQuery(indexer |
| | | .getExtensibleIndexID(), normalizeValue(assertionValue), |
| | | .getExtensibleIndexID(), normalizeAttributeValue(assertionValue), |
| | | ByteString.empty(), false, false); |
| | | } |
| | | } |
| | |
| | | { |
| | | // Read the range: lower <= keys < upper. |
| | | return factory.createRangeMatchQuery(indexer |
| | | .getExtensibleIndexID(), normalizeValue(assertionValue), |
| | | .getExtensibleIndexID(), normalizeAttributeValue(assertionValue), |
| | | ByteString.empty(), true, false); |
| | | } |
| | | } |
| | |
| | | ByteString key; |
| | | try |
| | | { |
| | | key = matchingRule.normalizeValue(value.getValue()); |
| | | key = matchingRule.normalizeAttributeValue(value.getValue()); |
| | | keys.add(key.toByteArray()); |
| | | } |
| | | catch (DirectoryException de) |