You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2008/03/29 20:26:11 UTC

svn commit: r642589 - /directory/sandbox/akarasulu/bigbang/apacheds/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/CursorBuilder.java

Author: akarasulu
Date: Sat Mar 29 12:26:10 2008
New Revision: 642589

URL: http://svn.apache.org/viewvc?rev=642589&view=rev
Log:
cleanup dead commented out code in CursorBuilder

Modified:
    directory/sandbox/akarasulu/bigbang/apacheds/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/CursorBuilder.java

Modified: directory/sandbox/akarasulu/bigbang/apacheds/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/CursorBuilder.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/CursorBuilder.java?rev=642589&r1=642588&r2=642589&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/CursorBuilder.java (original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/CursorBuilder.java Sat Mar 29 12:26:10 2008
@@ -181,60 +181,4 @@
         Cursor<IndexEntry<?,Attributes>> childCursor = build( minChild );
         return new AndCursor( childCursor, childEvaluators );
     }
-
-
-//    /**
-//     * Returns an enumeration over candidates that satisfy a presence attribute
-//     * value assertion.
-//     *
-//     * @param node the presence AVA node
-//     * @return an enumeration over the index records matching the AVA
-//     * @throws NamingException if there is a failure while accessing the db
-//     */
-//    private NamingEnumeration<ForwardIndexEntry> enumPresence( final PresenceNode node ) throws NamingException
-//    {
-//        if ( db.hasUserIndexOn( node.getAttribute() ) )
-//        {
-//            Index idx = db.getExistanceIndex();
-//            try
-//            {
-//                return idx.listIndices( node.getAttribute() );
-//            }
-//            catch ( java.io.IOException e )
-//            {
-//                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
-//            }
-//        }
-//
-//        return nonIndexedScan( node );
-//    }
-//
-//
-//    /**
-//     * Returns an enumeration over candidates that satisfy a simple greater than
-//     * or less than or equal to attribute value assertion.
-//     *
-//     * @param node the AVA node
-//     * @param isGreater true if >= false if <= is used
-//     * @return an enumeration over the index records matching the AVA
-//     * @throws NamingException if there is a failure while accessing the db
-//     */
-//    private NamingEnumeration<ForwardIndexEntry> enumGreaterOrLesser( final SimpleNode node, final boolean isGreaterOrLesser ) throws NamingException
-//    {
-//        if ( db.hasUserIndexOn( node.getAttribute() ) )
-//        {
-//            Index idx = db.getUserIndex( node.getAttribute() );
-//
-//            try
-//            {
-//                return idx.listIndices( node.getValue(), isGreaterOrLesser );
-//            }
-//            catch ( java.io.IOException e )
-//            {
-//                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
-//            }
-//        }
-//
-//        return nonIndexedScan( node );
-//    }
 }