Class HashStats
-
Method Summary
Modifier and TypeMethodDescriptionlonggetBFree()The number of bytes free on bucket pages.longThe number of bytes free on big item pages.intThe number of big key/data pages.intThe the number of hash buckets.intgetDup()The number of duplicate pages.longThe number of bytes free on duplicate pages.intThe desired fill factor specified at database-creation time.intgetFree()The number of pages on the free list.intgetMagic()The magic number that identifies the file as a Hash file.intReports internal flags.intThe number of key/data pairs in the database.intThe number of unique keys in the database.intThe number of overflow pages.longThe number of bytes free on overflow pages.intThe number of pages in the database.intThe underlying Hash database page (and bucket) size, in bytes.intThe version of the Hash database.toString()For convenience, the HashStats class has a toString method that lists all the data fields.
-
Method Details
-
getMagic
public int getMagic()The magic number that identifies the file as a Hash file. -
getVersion
public int getVersion()The version of the Hash database. -
getMetaFlags
public int getMetaFlags()Reports internal flags. For internal use only. -
getNumKeys
public int getNumKeys()The number of unique keys in the database.If the
Database.getStatscall was configured by theStatsConfig.setFastmethod, the count will be the last saved value unless it has never been calculated, in which case it will be 0. -
getNumData
public int getNumData()The number of key/data pairs in the database.If the
Database.getStatscall was configured by theStatsConfig.setFastmethod, the count will be the last saved value unless it has never been calculated, in which case it will be 0. -
getPageCount
public int getPageCount()The number of pages in the database.Returned if
StatsConfig.setFast(boolean)was configured. -
getPageSize
public int getPageSize()The underlying Hash database page (and bucket) size, in bytes. -
getFfactor
public int getFfactor()The desired fill factor specified at database-creation time. -
getBuckets
public int getBuckets()The the number of hash buckets. -
getFree
public int getFree()The number of pages on the free list.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getBFree
public long getBFree()The number of bytes free on bucket pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getBigPages
public int getBigPages()The number of big key/data pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getBigBFree
public long getBigBFree()The number of bytes free on big item pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getOverflows
public int getOverflows()The number of overflow pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getOvflFree
public long getOvflFree()The number of bytes free on overflow pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getDup
public int getDup()The number of duplicate pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
getDupFree
public long getDupFree()The number of bytes free on duplicate pages.The information is only included if the
Database.getStatscall was not configured by theStatsConfig.setFastmethod. -
toString
For convenience, the HashStats class has a toString method that lists all the data fields.
-