Package org.apache.ldap.common.filter

Examples of org.apache.ldap.common.filter.LeafNode


            throw new IllegalArgumentException( "Cannot produce enumeration "
                + "on an AssertionNode" );
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;

            switch( leaf.getAssertionType() )
            {
            case( LeafNode.APPROXIMATE ):
                list = enumEquality( ( SimpleNode ) node );
                break;
            case( LeafNode.EQUALITY ):
View Full Code Here


        NamingEnumeration enumeration = null;

        // Iterates over entire set of index values
        if ( node.getChild().isLeaf() )
        {
            LeafNode child = ( LeafNode ) node.getChild();
            idx = db.getUserIndex( child.getAttribute() );
            childEnumeration = idx.listIndices();
        }
        // Iterates over the entire set of entries
        else
        {
View Full Code Here

             * scan count is not specified by the implementation.
             */
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;
           
            switch ( leaf.getAssertionType() )
            {
            case( LeafNode.APPROXIMATE ):
                /** Feature not implemented so we just use equality matching */
                count = getEqualityScan( ( SimpleNode ) leaf );
                break;
View Full Code Here

        if ( onlyChild.isLeaf()
            && ! ( onlyChild instanceof ScopeNode )
            && ! ( onlyChild instanceof AssertionNode
            && ! ( onlyChild instanceof PresenceNode ) )
        {
            LeafNode leaf = ( LeafNode ) onlyChild;
            Index idx = db.getUserIndex( leaf.getAttribute() );
            return BigInteger.valueOf( idx.count() );
        }

        return BigInteger.valueOf( db.count() );
    }
View Full Code Here

    {
        base = parser.parse( base.toString() );

        if ( filter.isLeaf() )
        {
            LeafNode ln = ( LeafNode ) filter;
            if ( ! registry.hasAttributeType( ln.getAttribute() ) )
            {
                StringBuffer buf = new StringBuffer();
                buf.append( "undefined filter based on undefined attributeType '" );
                buf.append( ln.getAttribute() );
                buf.append( "' not evaluted at all.  Returning empty enumeration." );
                log.warn( buf.toString() );
                return new EmptyEnumeration();
            }
        }
View Full Code Here

            throw new IllegalArgumentException( "Cannot produce enumeration "
                + "on an AssertionNode" );
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;

            switch( leaf.getAssertionType() )
            {
            case( LeafNode.APPROXIMATE ):
                list = enumEquality( ( SimpleNode ) node );
                break;
            case( LeafNode.EQUALITY ):
View Full Code Here

        NamingEnumeration enumeration = null;

        // Iterates over entire set of index values
        if ( node.getChild().isLeaf() )
        {
            LeafNode child = ( LeafNode ) node.getChild();
            idx = db.getUserIndex( child.getAttribute() );
            childEnumeration = idx.listIndices();
        }
        // Iterates over the entire set of entries
        else
        {
View Full Code Here

             * scan count is not specified by the implementation.
             */
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;
           
            switch ( leaf.getAssertionType() )
            {
            case( LeafNode.APPROXIMATE ):
                /** Feature not implemented so we just use equality matching */
                count = getEqualityScan( ( SimpleNode ) leaf );
                break;
View Full Code Here

        if ( onlyChild.isLeaf()
            && ! ( onlyChild instanceof ScopeNode )
            && ! ( onlyChild instanceof AssertionNode
            && ! ( onlyChild instanceof PresenceNode ) )
        {
            LeafNode leaf = ( LeafNode ) onlyChild;
            Index idx = db.getUserIndex( leaf.getAttribute() );
            return BigInteger.valueOf( idx.count() );
        }

        return BigInteger.valueOf( db.count() );
    }
View Full Code Here

            throw new IllegalArgumentException( "Cannot produce enumeration "
                + "on an AssertionNode" );
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;

            switch( leaf.getAssertionType() )
            {
            case( LeafNode.APPROXIMATE ):
                list = enumEquality( ( SimpleNode ) node );
                break;
            case( LeafNode.EQUALITY ):
View Full Code Here

TOP

Related Classes of org.apache.ldap.common.filter.LeafNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.