Package org.rocksdb
Class Statistics
- All Implemented Interfaces:
AutoCloseable
Statistics to analyze the performance of a db. Pointer for statistics object
is managed by Options class.
-
Field Summary
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
ConstructorsConstructorDescriptionStatistics(EnumSet<HistogramType> ignoreHistograms) Statistics(EnumSet<HistogramType> ignoreHistograms, Statistics otherStatistics) Statistics(Statistics otherStatistics) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voiddisposeInternal(long handle) longgetAndResetTickerCount(TickerType tickerType) Get the count for a ticker and reset the tickers count.getHistogramData(HistogramType histogramType) Gets the histogram data for a particular histogram.getHistogramString(HistogramType histogramType) Gets a string representation of a particular histogram.longgetTickerCount(TickerType tickerType) Get the count for a ticker.voidreset()Resets all ticker and histogram stats.voidsetStatsLevel(StatsLevel statsLevel) Sets the stats level.Gets the current stats level.toString()String representation of the statistic object.Methods inherited from class org.rocksdb.RocksObject
disposeInternal, getNativeHandleMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
Statistics
public Statistics() -
Statistics
-
Statistics
-
Statistics
-
-
Method Details
-
statsLevel
Gets the current stats level.- Returns:
- The stats level.
-
setStatsLevel
Sets the stats level.- Parameters:
statsLevel- The stats level to set.
-
getTickerCount
Get the count for a ticker.- Parameters:
tickerType- The ticker to get the count for- Returns:
- The count for the ticker
-
getAndResetTickerCount
Get the count for a ticker and reset the tickers count.- Parameters:
tickerType- The ticker to get the count for- Returns:
- The count for the ticker
-
getHistogramData
Gets the histogram data for a particular histogram.- Parameters:
histogramType- The histogram to retrieve the data for- Returns:
- The histogram data
-
getHistogramString
Gets a string representation of a particular histogram.- Parameters:
histogramType- The histogram to retrieve the data for- Returns:
- A string representation of the histogram data
-
reset
Resets all ticker and histogram stats.- Throws:
RocksDBException- if an error occurs when resetting the statistics.
-
toString
String representation of the statistic object. -
disposeInternal
protected final void disposeInternal(long handle) - Specified by:
disposeInternalin classRocksObject
-