FairCom DB provides a capability for estimating the number of keys between two key values and an actual count of keys contained in an index. These functionalities were added to c-treeDB.
c-treeDB C API Methods
ctdbEstimateSpan() - returns an estimated number of records between two key values.
ctdbNumberOfKeyEntries() - retrieves the number of key entries in an index file identified by its index number.
c-treeDB C++ API methods
CTRecord::EstimateSpan() - returns an estimated number of records between two key values.
CTRecord::NumberOfKeyEntries() - retrieves the number of key entries in an index file identified by its index number.