From 774a6aa2961de626c5b1b4a72d179c26b600d19e Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Tue, 7 Jun 2016 00:04:16 +0100 Subject: [PATCH] Java API - Rename geHistogramData -> getHistogramData (#1107) Closes https://github.com/facebook/rocksdb/issues/835 --- java/rocksjni/statistics.cc | 4 ++-- java/src/main/java/org/rocksdb/Statistics.java | 6 +++--- java/src/main/java/org/rocksdb/StatisticsCollector.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java/rocksjni/statistics.cc b/java/rocksjni/statistics.cc index 6d1ef8db0..c41ec72c0 100644 --- a/java/rocksjni/statistics.cc +++ b/java/rocksjni/statistics.cc @@ -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(handle); assert(st != nullptr); diff --git a/java/src/main/java/org/rocksdb/Statistics.java b/java/src/main/java/org/rocksdb/Statistics.java index 7e014ce99..858637763 100644 --- a/java/src/main/java/org/rocksdb/Statistics.java +++ b/java/src/main/java/org/rocksdb/Statistics.java @@ -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); } diff --git a/java/src/main/java/org/rocksdb/StatisticsCollector.java b/java/src/main/java/org/rocksdb/StatisticsCollector.java index f435b514f..246826d32 100644 --- a/java/src/main/java/org/rocksdb/StatisticsCollector.java +++ b/java/src/main/java/org/rocksdb/StatisticsCollector.java @@ -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); }