public class SHashStats extends java.lang.Object implements SDatabaseStats
Modifier and Type | Method and Description |
---|---|
long |
getBFree()
The number of bytes free on bucket pages.
|
long |
getBigBFree()
The number of bytes free on hash overflow (big item) pages.
|
int |
getBigPages()
The number of hash overflow pages (created when key/data is too big for
the page).
|
int |
getBuckets()
The number of hash buckets.
|
int |
getDup()
The number of duplicate pages.
|
long |
getDupFree()
The number of bytes free on duplicate pages.
|
int |
getExtFiles()
The number of external files.
|
int |
getFfactor()
The desired fill factor specified at database-creation time.
|
int |
getFree()
The number of pages on the free list.
|
int |
getMagic()
The magic number that identifies the file as a Hash file.
|
int |
getNumData()
The number of key/data pairs in the database.
|
int |
getNumKeys()
The number of unique keys in the database.
|
int |
getOverflows()
The number of bucket overflow pages (bucket overflow pages are created
when items did not fit on the main bucket page).
|
long |
getOvflFree()
The number of bytes free on bucket overflow pages.
|
int |
getPageCount()
The number of pages in the database.
|
int |
getPageSize()
The underlying Hash database page (and bucket) size, in bytes.
|
int |
getVersion()
The version of the Hash database.
|
java.lang.String |
toString()
For convenience, the SHashStats class has a toString method
that lists all the data fields.
|
public long getBFree()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public long getBigBFree()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public int getBigPages()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public int getBuckets()
public int getDup()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public long getDupFree()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public int getFfactor()
public int getFree()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public int getMagic()
public int getExtFiles()
public int getNumData()
If the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call was configured by the SStatsConfig.setFast(boolean)
method, the count will be the last saved value
unless it has never been calculated, in which case it will be 0.
public int getNumKeys()
If the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call was configured by the SStatsConfig.setFast(boolean)
method, the count will be the last saved value
unless it has never been calculated, in which case it will be 0.
public int getOverflows()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public long getOvflFree()
The information is only included if the SDatabase.getStats(com.sleepycat.client.STransaction, com.sleepycat.client.SStatsConfig)
call
was not configured by the SStatsConfig.setFast(boolean)
method.
public int getPageCount()
public int getPageSize()
public int getVersion()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.