KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > tree > SearchResult


1 /*
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: SearchResult.java,v 1.12 2006/10/30 21:14:26 bostic Exp $:
7  */

8
9 package com.sleepycat.je.tree;
10
11 /**
12  * Contains the result of a tree search
13  */

14 public class SearchResult {
15     public boolean exactParentFound;
16     public boolean keepSearching;
17     /*
18      * Set to true if a search stopped because a child was not resident, and
19      * we are doing a do-not-fetch kind of search.
20      */

21     public boolean childNotResident;
22     public IN parent;
23     public int index;
24     
25     public SearchResult() {
26         exactParentFound = false;
27         keepSearching = true;
28         parent = null;
29         index = -1;
30         childNotResident = false;
31     }
32
33     public String JavaDoc toString() {
34         return
35             "exactParentFound="+ exactParentFound +
36             " keepSearching=" + keepSearching +
37             " parent=" + ((parent == null)? "null":
38                           Long.toString(parent.getNodeId())) +
39             " index=" + index +
40             " childNotResident=" + childNotResident;
41     }
42 }
43
Popular Tags