org.apache.directory.server.xdbm.search.impl
Class LeafEvaluator<T,ID extends Comparable<ID>>

java.lang.Object
  extended by org.apache.directory.server.xdbm.search.impl.LeafEvaluator<T,ID>
All Implemented Interfaces:
Evaluator<org.apache.directory.shared.ldap.model.filter.SimpleNode<T>,org.apache.directory.shared.ldap.model.entry.Entry,ID>
Direct Known Subclasses:
ApproximateEvaluator, EqualityEvaluator, GreaterEqEvaluator, LessEqEvaluator

public abstract class LeafEvaluator<T,ID extends Comparable<ID>>
extends Object
implements Evaluator<org.apache.directory.shared.ldap.model.filter.SimpleNode<T>,org.apache.directory.shared.ldap.model.entry.Entry,ID>

An abstract evaluator to store the common fileds for the Simple node evaluators (ApproximateEvaluator, EqualityEvaluator, GreaterEqEvluator and LessEqEvluator)

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
protected  org.apache.directory.shared.ldap.model.schema.AttributeType attributeType
          The AttributeType we will use for the evaluation
protected  Store<org.apache.directory.shared.ldap.model.entry.Entry,ID> db
          The backend
protected  Index<T,org.apache.directory.shared.ldap.model.entry.Entry,ID> idx
          The index to use if any
protected  org.apache.directory.shared.ldap.model.schema.LdapComparator<? super Object> ldapComparator
          The associated comparator
protected  org.apache.directory.shared.ldap.model.filter.SimpleNode<T> node
          The ExprNode to evaluate
protected  org.apache.directory.shared.ldap.model.schema.Normalizer normalizer
          The associated normalizer
protected  org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager
          The SchemaManager instance
 
Constructor Summary
LeafEvaluator(org.apache.directory.shared.ldap.model.filter.SimpleNode<T> node, Store<org.apache.directory.shared.ldap.model.entry.Entry,ID> db, org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager)
           
 
Method Summary
 org.apache.directory.shared.ldap.model.schema.AttributeType getAttributeType()
           
 org.apache.directory.shared.ldap.model.schema.LdapComparator<? super Object> getComparator()
           
 org.apache.directory.shared.ldap.model.schema.Normalizer getNormalizer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.directory.server.xdbm.search.Evaluator
evaluate, evaluateEntry, getExpression
 

Field Detail

node

protected final org.apache.directory.shared.ldap.model.filter.SimpleNode<T> node
The ExprNode to evaluate


db

protected final Store<org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>> db
The backend


schemaManager

protected final org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager
The SchemaManager instance


attributeType

protected final org.apache.directory.shared.ldap.model.schema.AttributeType attributeType
The AttributeType we will use for the evaluation


normalizer

protected org.apache.directory.shared.ldap.model.schema.Normalizer normalizer
The associated normalizer


ldapComparator

protected org.apache.directory.shared.ldap.model.schema.LdapComparator<? super Object> ldapComparator
The associated comparator


idx

protected Index<T,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>> idx
The index to use if any

Constructor Detail

LeafEvaluator

public LeafEvaluator(org.apache.directory.shared.ldap.model.filter.SimpleNode<T> node,
                     Store<org.apache.directory.shared.ldap.model.entry.Entry,ID> db,
                     org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager)
              throws Exception
Throws:
Exception
Method Detail

getAttributeType

public org.apache.directory.shared.ldap.model.schema.AttributeType getAttributeType()
Returns:
The AttributeType

getNormalizer

public org.apache.directory.shared.ldap.model.schema.Normalizer getNormalizer()
Returns:
The Normalizer associated with the AttributeType

getComparator

public org.apache.directory.shared.ldap.model.schema.LdapComparator<? super Object> getComparator()
Returns:
The LdapComparator associated with the AttributeType


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.