1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ldap.server.partition.impl.btree;
18
19
20 import javax.naming.NamingException;
21
22
23 /***
24 * TupleBrowser interface used to abstract
25 *
26 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
27 * @version $Rev: 264732 $
28 */
29 public interface TupleBrowser
30 {
31 /***
32 * Gets the next value deemed greater than the last using the key
33 * comparator.
34 *
35 * @param tuple the tuple to populate with a key/value pair
36 * @return true if there was a next that was populated or false otherwise
37 * @throws NamingException @todo
38 */
39 boolean getNext( Tuple tuple ) throws NamingException;
40
41 /***
42 * Gets the previous value deemed greater than the last using the key
43 * comparator.
44 *
45 * @param tuple the tuple to populate with a key/value pair
46 * @return true if there was a previous value populated or false otherwise
47 * @throws NamingException @todo
48 */
49 boolean getPrevious( Tuple tuple ) throws NamingException;
50 }