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

Closes https://github.com/facebook/rocksdb/issues/835
This commit is contained in:
Adam Retter 2016-06-07 00:04:16 +01:00 committed by Aaron G
parent 3070ed9021
commit 774a6aa296
3 changed files with 6 additions and 6 deletions

View File

@ -29,10 +29,10 @@ jlong Java_org_rocksdb_Statistics_getTickerCount0(
/*
* Class: org_rocksdb_Statistics
* Method: geHistogramData0
* Method: getHistogramData0
* 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) {
auto st = reinterpret_cast<rocksdb::Statistics*>(handle);
assert(st != nullptr);

View File

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

View File

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