01: /* Copyright 2003 Quadcap Software. All rights reserved.
02: *
03: * This software is distributed under the Quadcap Free Software License.
04: * This software may be used or modified for any purpose, personal or
05: * commercial. Open Source redistributions are permitted. Commercial
06: * redistribution of larger works derived from, or works which bundle
07: * this software requires a "Commercial Redistribution License"; see
08: * http://www.quadcap.com/purchase.
09: *
10: * Redistributions qualify as "Open Source" under one of the following terms:
11: *
12: * Redistributions are made at no charge beyond the reasonable cost of
13: * materials and delivery.
14: *
15: * Redistributions are accompanied by a copy of the Source Code or by an
16: * irrevocable offer to provide a copy of the Source Code for up to three
17: * years at the cost of materials and delivery. Such redistributions
18: * must allow further use, modification, and redistribution of the Source
19: * Code under substantially the same terms as this license.
20: *
21: * Redistributions of source code must retain the copyright notices as they
22: * appear in each source code file, these license terms, and the
23: * disclaimer/limitation of liability set forth as paragraph 6 below.
24: *
25: * Redistributions in binary form must reproduce this Copyright Notice,
26: * these license terms, and the disclaimer/limitation of liability set
27: * forth as paragraph 6 below, in the documentation and/or other materials
28: * provided with the distribution.
29: *
30: * The Software is provided on an "AS IS" basis. No warranty is
31: * provided that the Software is free of defects, or fit for a
32: * particular purpose.
33: *
34: * Limitation of Liability. Quadcap Software shall not be liable
35: * for any damages suffered by the Licensee or any third party resulting
36: * from use of the Software.
37: */
38:
39: package com.quadcap.sql.index;
40:
41: import com.quadcap.util.ConfigNumber;
42:
43: public class Trace {
44:
45: /*{com.quadcap.qed.Trace-vars.xml-1062}
46: * <config-var>
47: * <config-name>qed.trace.index</config-name>
48: * <config-dflt>0</config-dflt>
49: * <config-desc>
50: * <pre>
51: * bit 0: Btree
52: * bit 2: Bnode
53: * bit 3: BnodeEnumeration
54: * bit 4: Comparator
55: * bit 5: Bnode splits
56: * bit 6: BtreeCursor seek
57: * bit 7: BtreeCursor insert
58: * bit 8: BtreeCursor replace
59: * bit 9: BtreeCursor delete
60: * bit 10: BtreeCursor movement normal
61: * bit 11: BtreeCursor movement exceptional
62: * bit 12: BtreeCursor show keys only
63: * </pre>
64: * </config-desc>
65: * </config-var>
66: */
67: protected static final ConfigNumber trace = ConfigNumber.find(
68: "qed.trace.index", "0");
69:
70: static boolean bit(int x) {
71: return trace.bit(x);
72: }
73:
74: static int intValue() {
75: return trace.intValue();
76: }
77: }
|