summaryrefslogtreecommitdiff
path: root/lang/java/src/com/sleepycat/db/HashStats.java
diff options
context:
space:
mode:
Diffstat (limited to 'lang/java/src/com/sleepycat/db/HashStats.java')
-rw-r--r--lang/java/src/com/sleepycat/db/HashStats.java23
1 files changed, 17 insertions, 6 deletions
diff --git a/lang/java/src/com/sleepycat/db/HashStats.java b/lang/java/src/com/sleepycat/db/HashStats.java
index b073904c..f33b82d3 100644
--- a/lang/java/src/com/sleepycat/db/HashStats.java
+++ b/lang/java/src/com/sleepycat/db/HashStats.java
@@ -4,7 +4,7 @@
*
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 2002, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.
*/
package com.sleepycat.db;
@@ -66,6 +66,14 @@ public class HashStats extends DatabaseStats {
return hash_ndata;
}
+ private int hash_nblobs;
+ /**
+ The number of blob records.
+ */
+ public int getNumBlobs() {
+ return hash_nblobs;
+ }
+
private int hash_pagecnt;
/**
The number of pages in the database.
@@ -94,7 +102,7 @@ public class HashStats extends DatabaseStats {
private int hash_buckets;
/**
- The the number of hash buckets.
+ The number of hash buckets.
*/
public int getBuckets() {
return hash_buckets;
@@ -124,7 +132,8 @@ was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfi
private int hash_bigpages;
/**
- The number of big key/data pages.
+ The number of hash overflow pages (created when key/data is too big for
+ the page).
<p>
The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
@@ -135,7 +144,7 @@ was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfi
private long hash_big_bfree;
/**
- The number of bytes free on big item pages.
+ The number of bytes free on hash overflow (big item) pages.
<p>
The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
@@ -146,7 +155,8 @@ was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfi
private int hash_overflows;
/**
- The number of overflow pages.
+ The number of bucket overflow pages (bucket overflow pages are created when
+ items did not fit on the main bucket page).
<p>
The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
@@ -157,7 +167,7 @@ was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfi
private long hash_ovfl_free;
/**
- The number of bytes free on overflow pages.
+ The number of bytes free on bucket overflow pages.
<p>
The information is only included if the {@link com.sleepycat.db.Database#getStats Database.getStats} call
was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfig.setFast} method.
@@ -199,6 +209,7 @@ was not configured by the {@link com.sleepycat.db.StatsConfig#setFast StatsConfi
+ "\n hash_metaflags=" + hash_metaflags
+ "\n hash_nkeys=" + hash_nkeys
+ "\n hash_ndata=" + hash_ndata
+ + "\n hash_nblobs=" + hash_nblobs
+ "\n hash_pagecnt=" + hash_pagecnt
+ "\n hash_pagesize=" + hash_pagesize
+ "\n hash_ffactor=" + hash_ffactor