• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/db/
1/*-
2 * Automatically built by dist/s_java_stat.
3 * Only the javadoc comments can be edited.
4 *
5 * See the file LICENSE for redistribution information.
6 *
7 * Copyright (c) 2002,2008 Oracle.  All rights reserved.
8 */
9
10package com.sleepycat.db;
11
12/**
13The HashStats object is used to return Hash database statistics.
14*/
15public class HashStats extends DatabaseStats {
16    // no public constructor
17    /* package */ HashStats() {}
18
19    private int hash_magic;
20    /**
21    The magic number that identifies the file as a Hash file.
22    */
23    public int getMagic() {
24        return hash_magic;
25    }
26
27    private int hash_version;
28    /**
29    The version of the Hash database.
30    */
31    public int getVersion() {
32        return hash_version;
33    }
34
35    private int hash_metaflags;
36    /**
37    The metadata flags.
38    */
39    public int getMetaFlags() {
40        return hash_metaflags;
41    }
42
43    private int hash_nkeys;
44    /**
45    The number of unique keys in the database.
46    <p>
47    If the {@link com.sleepycat.db.Database#getStats Database.getStats} call was configured by the
48    {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method, the count will be the last
49    saved value unless it has never been calculated, in which case it
50    will be 0.
51    */
52    public int getNumKeys() {
53        return hash_nkeys;
54    }
55
56    private int hash_ndata;
57    /**
58    The number of key/data pairs in the database.
59    <p>
60    If the {@link com.sleepycat.db.Database#getStats Database.getStats} call was configured by the
61    {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method, the count will be the last
62    saved value unless it has never been calculated, in which case it
63    will be 0.
64    */
65    public int getNumData() {
66        return hash_ndata;
67    }
68
69    private int hash_pagecnt;
70    /**
71    The number of pages in the database.
72    <p>
73    Returned if {@link StatsConfig#setFast} was configured.
74    */
75    public int getPageCount() {
76        return hash_pagecnt;
77    }
78
79    private int hash_pagesize;
80    /**
81    The underlying Hash database page (and bucket) size, in bytes.
82    */
83    public int getPageSize() {
84        return hash_pagesize;
85    }
86
87    private int hash_ffactor;
88    /**
89    The desired fill factor specified at database-creation time.
90    */
91    public int getFfactor() {
92        return hash_ffactor;
93    }
94
95    private int hash_buckets;
96    /**
97    The the number of hash buckets.
98    */
99    public int getBuckets() {
100        return hash_buckets;
101    }
102
103    private int hash_free;
104    /**
105    The number of pages on the free list.
106<p>
107The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
108was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
109    */
110    public int getFree() {
111        return hash_free;
112    }
113
114    private int hash_bfree;
115    /**
116    The number of bytes free on bucket pages.
117<p>
118The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
119was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
120    */
121    public int getBFree() {
122        return hash_bfree;
123    }
124
125    private int hash_bigpages;
126    /**
127    The number of big key/data pages.
128<p>
129The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
130was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
131    */
132    public int getBigPages() {
133        return hash_bigpages;
134    }
135
136    private int hash_big_bfree;
137    /**
138    The number of bytes free on big item pages.
139<p>
140The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
141was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
142    */
143    public int getBigBFree() {
144        return hash_big_bfree;
145    }
146
147    private int hash_overflows;
148    /**
149    The number of overflow pages.
150<p>
151The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
152was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
153    */
154    public int getOverflows() {
155        return hash_overflows;
156    }
157
158    private int hash_ovfl_free;
159    /**
160    The number of bytes free on overflow pages.
161<p>
162The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
163was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
164    */
165    public int getOvflFree() {
166        return hash_ovfl_free;
167    }
168
169    private int hash_dup;
170    /**
171    The number of duplicate pages.
172<p>
173The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
174was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
175    */
176    public int getDup() {
177        return hash_dup;
178    }
179
180    private int hash_dup_free;
181    /**
182    The number of bytes free on duplicate pages.
183<p>
184The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
185was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
186    */
187    public int getDupFree() {
188        return hash_dup_free;
189    }
190
191    /**
192    For convenience, the HashStats class has a toString method
193    that lists all the data fields.
194    */
195    public String toString() {
196        return "HashStats:"
197            + "\n  hash_magic=" + hash_magic
198            + "\n  hash_version=" + hash_version
199            + "\n  hash_metaflags=" + hash_metaflags
200            + "\n  hash_nkeys=" + hash_nkeys
201            + "\n  hash_ndata=" + hash_ndata
202            + "\n  hash_pagecnt=" + hash_pagecnt
203            + "\n  hash_pagesize=" + hash_pagesize
204            + "\n  hash_ffactor=" + hash_ffactor
205            + "\n  hash_buckets=" + hash_buckets
206            + "\n  hash_free=" + hash_free
207            + "\n  hash_bfree=" + hash_bfree
208            + "\n  hash_bigpages=" + hash_bigpages
209            + "\n  hash_big_bfree=" + hash_big_bfree
210            + "\n  hash_overflows=" + hash_overflows
211            + "\n  hash_ovfl_free=" + hash_ovfl_free
212            + "\n  hash_dup=" + hash_dup
213            + "\n  hash_dup_free=" + hash_dup_free
214            ;
215    }
216}
217