From 43970127077700bbd08c0647ff1936ab5f96afa7 Mon Sep 17 00:00:00 2001 From: fyrz Date: Thu, 12 Feb 2015 17:58:53 +0100 Subject: [PATCH] [RocksJava] Redundant access-modifier in interfaces Removed redundant access modifier in interfaces. --- .../rocksdb/ColumnFamilyOptionsInterface.java | 4 ++-- .../main/java/org/rocksdb/MergeOperator.java | 2 +- .../org/rocksdb/RocksIteratorInterface.java | 14 +++++++------- .../java/org/rocksdb/WriteBatchInterface.java | 18 +++++++++--------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java b/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java index c1be7f294..1fd19874f 100644 --- a/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java +++ b/java/src/main/java/org/rocksdb/ColumnFamilyOptionsInterface.java @@ -124,7 +124,7 @@ public interface ColumnFamilyOptionsInterface { * operators are "put", "uint64add", "stringappend" and "stringappendtest". * @return the instance of the current Object. */ - public Object setMergeOperatorName(String name); + Object setMergeOperatorName(String name); /** *

Set the merge operator to be used for merging two different key/value @@ -135,7 +135,7 @@ public interface ColumnFamilyOptionsInterface { * @param mergeOperator {@link MergeOperator} instance. * @return the instance of the current Object. */ - public Object setMergeOperator(MergeOperator mergeOperator); + Object setMergeOperator(MergeOperator mergeOperator); /** * Amount of data to build up in memory (backed by an unsorted log diff --git a/java/src/main/java/org/rocksdb/MergeOperator.java b/java/src/main/java/org/rocksdb/MergeOperator.java index 2655e466f..3abea024d 100644 --- a/java/src/main/java/org/rocksdb/MergeOperator.java +++ b/java/src/main/java/org/rocksdb/MergeOperator.java @@ -11,5 +11,5 @@ package org.rocksdb; * value. */ public interface MergeOperator { - public long newMergeOperatorHandle(); + long newMergeOperatorHandle(); } diff --git a/java/src/main/java/org/rocksdb/RocksIteratorInterface.java b/java/src/main/java/org/rocksdb/RocksIteratorInterface.java index b5cc90afb..fce8fe314 100644 --- a/java/src/main/java/org/rocksdb/RocksIteratorInterface.java +++ b/java/src/main/java/org/rocksdb/RocksIteratorInterface.java @@ -26,19 +26,19 @@ public interface RocksIteratorInterface { * * @return true if iterator is valid. */ - public boolean isValid(); + boolean isValid(); /** *

Position at the first entry in the source. The iterator is Valid() * after this call if the source is not empty.

*/ - public void seekToFirst(); + void seekToFirst(); /** *

Position at the last entry in the source. The iterator is * valid after this call if the source is not empty.

*/ - public void seekToLast(); + void seekToLast(); /** *

Position at the first entry in the source whose key is that or @@ -50,7 +50,7 @@ public interface RocksIteratorInterface { * @param target byte array describing a key or a * key prefix to seek for. */ - public void seek(byte[] target); + void seek(byte[] target); /** *

Moves to the next entry in the source. After this call, Valid() is @@ -58,7 +58,7 @@ public interface RocksIteratorInterface { * *

REQUIRES: {@link #isValid()}

*/ - public void next(); + void next(); /** *

Moves to the previous entry in the source. After this call, Valid() is @@ -66,7 +66,7 @@ public interface RocksIteratorInterface { * *

REQUIRES: {@link #isValid()}

*/ - public void prev(); + void prev(); /** *

If an error has occurred, return it. Else return an ok status. @@ -76,5 +76,5 @@ public interface RocksIteratorInterface { * @throws RocksDBException thrown if error happens in underlying * native library. */ - public void status() throws RocksDBException; + void status() throws RocksDBException; } diff --git a/java/src/main/java/org/rocksdb/WriteBatchInterface.java b/java/src/main/java/org/rocksdb/WriteBatchInterface.java index 4eaf1ad9d..d5c24ec3a 100644 --- a/java/src/main/java/org/rocksdb/WriteBatchInterface.java +++ b/java/src/main/java/org/rocksdb/WriteBatchInterface.java @@ -16,7 +16,7 @@ public interface WriteBatchInterface { * * @return number of items in WriteBatch */ - public int count(); + int count(); /** *

Store the mapping "key->value" in the database.

@@ -24,7 +24,7 @@ public interface WriteBatchInterface { * @param key the specified key to be inserted. * @param value the value associated with the specified key. */ - public void put(byte[] key, byte[] value); + void put(byte[] key, byte[] value); /** *

Store the mapping "key->value" within given column @@ -35,7 +35,7 @@ public interface WriteBatchInterface { * @param key the specified key to be inserted. * @param value the value associated with the specified key. */ - public void put(ColumnFamilyHandle columnFamilyHandle, + void put(ColumnFamilyHandle columnFamilyHandle, byte[] key, byte[] value); /** @@ -46,7 +46,7 @@ public interface WriteBatchInterface { * @param value the value to be merged with the current value for * the specified key. */ - public void merge(byte[] key, byte[] value); + void merge(byte[] key, byte[] value); /** *

Merge "value" with the existing value of "key" in given column family. @@ -57,7 +57,7 @@ public interface WriteBatchInterface { * @param value the value to be merged with the current value for * the specified key. */ - public void merge(ColumnFamilyHandle columnFamilyHandle, + void merge(ColumnFamilyHandle columnFamilyHandle, byte[] key, byte[] value); /** @@ -65,7 +65,7 @@ public interface WriteBatchInterface { * * @param key Key to delete within database */ - public void remove(byte[] key); + void remove(byte[] key); /** *

If column family contains a mapping for "key", erase it. Else do nothing.

@@ -73,7 +73,7 @@ public interface WriteBatchInterface { * @param columnFamilyHandle {@link ColumnFamilyHandle} instance * @param key Key to delete within database */ - public void remove(ColumnFamilyHandle columnFamilyHandle, byte[] key); + void remove(ColumnFamilyHandle columnFamilyHandle, byte[] key); /** * Append a blob of arbitrary size to the records in this batch. The blob will @@ -89,10 +89,10 @@ public interface WriteBatchInterface { * * @param blob binary object to be inserted */ - public void putLogData(byte[] blob); + void putLogData(byte[] blob); /** * Clear all updates buffered in this batch */ - public void clear(); + void clear(); }