Java API - Rename geHistogramData -> getHistogramData (#1107)

Closes https://github.com/facebook/rocksdb/issues/835
main
Adam Retter 8 years ago committed by Aaron G
parent 3070ed9021
commit 774a6aa296
  1. 4
      java/rocksjni/statistics.cc
  2. 6
      java/src/main/java/org/rocksdb/Statistics.java
  3. 2
      java/src/main/java/org/rocksdb/StatisticsCollector.java

@ -29,10 +29,10 @@ jlong Java_org_rocksdb_Statistics_getTickerCount0(
/* /*
* Class: org_rocksdb_Statistics * Class: org_rocksdb_Statistics
* Method: geHistogramData0 * Method: getHistogramData0
* Signature: (IJ)Lorg/rocksdb/HistogramData; * Signature: (IJ)Lorg/rocksdb/HistogramData;
*/ */
jobject Java_org_rocksdb_Statistics_geHistogramData0( jobject Java_org_rocksdb_Statistics_getHistogramData0(
JNIEnv* env, jobject jobj, jint histogramType, jlong handle) { JNIEnv* env, jobject jobj, jint histogramType, jlong handle) {
auto st = reinterpret_cast<rocksdb::Statistics*>(handle); auto st = reinterpret_cast<rocksdb::Statistics*>(handle);
assert(st != nullptr); assert(st != nullptr);

@ -22,9 +22,9 @@ public class Statistics {
return getTickerCount0(tickerType.getValue(), statsHandle_); return getTickerCount0(tickerType.getValue(), statsHandle_);
} }
public HistogramData geHistogramData(final HistogramType histogramType) { public HistogramData getHistogramData(final HistogramType histogramType) {
assert(isInitialized()); assert(isInitialized());
return geHistogramData0( return getHistogramData0(
histogramType.getValue(), statsHandle_); histogramType.getValue(), statsHandle_);
} }
@ -33,5 +33,5 @@ public class Statistics {
} }
private native long getTickerCount0(int tickerType, long handle); private native long getTickerCount0(int tickerType, long handle);
private native HistogramData geHistogramData0(int histogramType, long handle); private native HistogramData getHistogramData0(int histogramType, long handle);
} }

@ -86,7 +86,7 @@ public class StatisticsCollector {
// Collect histogram data // Collect histogram data
for(HistogramType histogramType : HistogramType.values()) { for(HistogramType histogramType : HistogramType.values()) {
HistogramData histogramData = HistogramData histogramData =
statistics.geHistogramData(histogramType); statistics.getHistogramData(histogramType);
statsCallback.histogramCallback(histogramType, histogramData); statsCallback.histogramCallback(histogramType, histogramData);
} }

Loading…
Cancel
Save