01: /*
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: SearchResult.java,v 1.12.2.3 2008/01/07 15:14:16 cwl Exp $:
07: */
08:
09: 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 toString() {
34: return "exactParentFound="
35: + exactParentFound
36: + " keepSearching="
37: + keepSearching
38: + " parent="
39: + ((parent == null) ? "null" : Long.toString(parent
40: .getNodeId())) + " index=" + index
41: + " childNotResident=" + childNotResident;
42: }
43: }
|