org.apache.directory.server.core.partition.impl.btree
Class SubstringEvaluator

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.SubstringEvaluator
All Implemented Interfaces:
Evaluator

public class SubstringEvaluator
extends java.lang.Object
implements Evaluator

Evaluates substring filter assertions on an entry.

Version:
$Rev: 493916 $
Author:
Apache Directory Project

Constructor Summary
SubstringEvaluator(BTreePartition db, OidRegistry oidRegistry, AttributeTypeRegistry attributeTypeRegistry)
          Creates a new SubstringEvaluator for substring expressions.
 
Method Summary
 boolean evaluate(org.apache.directory.shared.ldap.filter.ExprNode node, IndexRecord record)
          Evaluates a candidate to determine if a filter expression selects it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstringEvaluator

public SubstringEvaluator(BTreePartition db,
                          OidRegistry oidRegistry,
                          AttributeTypeRegistry attributeTypeRegistry)
Creates a new SubstringEvaluator for substring expressions.

Parameters:
db - the database this evaluator uses
oidRegistry - the OID registry for name to OID mapping
attributeTypeRegistry - the attributeType registry
Method Detail

evaluate

public boolean evaluate(org.apache.directory.shared.ldap.filter.ExprNode node,
                        IndexRecord record)
                 throws javax.naming.NamingException
Description copied from interface: Evaluator
Evaluates a candidate to determine if a filter expression selects it.

Specified by:
evaluate in interface Evaluator
Parameters:
node - the filter expression to evaluate on the candidate
record - the index record of the entry to evaluate
Returns:
true if the filter selects the candidate false otherwise
Throws:
javax.naming.NamingException - if there is a database fault during evaluation
See Also:
Evaluator.evaluate(ExprNode, IndexRecord)


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.