org.apache.directory.server.core.partition.impl.btree
Class BTreeSearchResultEnumeration
java.lang.Object
org.apache.directory.server.core.partition.impl.btree.BTreeSearchResultEnumeration
- All Implemented Interfaces:
- java.util.Enumeration, javax.naming.NamingEnumeration, SearchResultEnumeration
public class BTreeSearchResultEnumeration
- extends java.lang.Object
- implements SearchResultEnumeration
An enumeration that transforms another underlying enumeration over a set of
IndexRecords into an enumeration over a set of SearchResults. Note that the
SearchResult created may not be complete and other parts of the system may
modify it before return. This enumeration simply creates a new copy of the
entry to return stuffing it with the attributes that were specified. This is
all that it does now but this may change later.
- Version:
- $Rev: 507354 $
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BTreeSearchResultEnumeration
public BTreeSearchResultEnumeration(java.lang.String[] attrIds,
javax.naming.NamingEnumeration underlying,
BTreePartition db,
AttributeTypeRegistry registry)
- Creates an enumeration that returns entries packaged within SearchResults
using the search parameters supplied to a search call.
- Parameters:
attrIds
- the returned attributesunderlying
- the enumeration over IndexRecords
close
public void close()
throws javax.naming.NamingException
- Specified by:
close
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
- See Also:
NamingEnumeration.close()
hasMore
public boolean hasMore()
throws javax.naming.NamingException
- Specified by:
hasMore
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
- See Also:
NamingEnumeration.hasMore()
next
public java.lang.Object next()
throws javax.naming.NamingException
- Specified by:
next
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
- See Also:
NamingEnumeration.next()
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
- See Also:
Enumeration.hasMoreElements()
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration
- See Also:
Enumeration.nextElement()
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.