Add histogramType for statistics

This commit is contained in:
Ankit Gupta
2014-04-16 21:38:33 -07:00
parent 144066a8ff
commit 320ae72e17
7 changed files with 60 additions and 14 deletions

View File

@@ -220,13 +220,16 @@ public class Options {
*
* @see createStatistics()
*/
public long statisticsPtr() {
public Statistics statisticsPtr() {
assert(isInitialized());
long statsPtr = statisticsPtr(nativeHandle_);
assert(statsPtr != 0);
if(statsPtr == 0) {
createStatistics();
statsPtr = statisticsPtr(nativeHandle_);
}
return statsPtr;
return new Statistics(statsPtr);
}
/**