diff --git a/dynamodb/pom.xml b/dynamodb/pom.xml index 5739773d..f68cb0ba 100644 --- a/dynamodb/pom.xml +++ b/dynamodb/pom.xml @@ -16,7 +16,8 @@ permissions and limitations under the License. See accompanying LICENSE file. --> - + 4.0.0 com.yahoo.ycsb @@ -28,50 +29,22 @@ LICENSE file. dynamodb-binding DynamoDB DB Binding - - false - - com.amazonaws aws-java-sdk 1.10.48 - - - log4j - log4j - 1.2.17 - - + + + log4j + log4j + 1.2.17 + + com.yahoo.ycsb core ${project.version} - provided + provided - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 2.15 - - true - ../checkstyle.xml - true - true - - - - validate - validate - - checkstyle - - - - - - diff --git a/dynamodb/src/main/java/com/yahoo/ycsb/db/DynamoDBClient.java b/dynamodb/src/main/java/com/yahoo/ycsb/db/DynamoDBClient.java index c643768b..b1f471f1 100644 --- a/dynamodb/src/main/java/com/yahoo/ycsb/db/DynamoDBClient.java +++ b/dynamodb/src/main/java/com/yahoo/ycsb/db/DynamoDBClient.java @@ -105,7 +105,7 @@ public class DynamoDBClient extends DB { this.primaryKeyType = PrimaryKeyType.valueOf(primaryKeyTypeString.trim().toUpperCase()); } catch (IllegalArgumentException e) { throw new DBException("Invalid primary key mode specified: " + primaryKeyTypeString + - ". Expecting HASH or HASH_AND_RANGE."); + ". Expecting HASH or HASH_AND_RANGE."); } } @@ -138,7 +138,7 @@ public class DynamoDBClient extends DB { @Override public Status read(String table, String key, Set fields, HashMap result) { - if(LOGGER.isDebugEnabled()) { + if (LOGGER.isDebugEnabled()) { LOGGER.debug("readkey: " + key + " from table: " + table); } @@ -159,7 +159,7 @@ public class DynamoDBClient extends DB { if (null != res.getItem()) { result.putAll(extractResult(res.getItem())); - if(LOGGER.isDebugEnabled()) { + if (LOGGER.isDebugEnabled()) { LOGGER.debug("Result: " + res.toString()); } } @@ -170,7 +170,7 @@ public class DynamoDBClient extends DB { public Status scan(String table, String startkey, int recordcount, Set fields, Vector> result) { - if(LOGGER.isDebugEnabled()) { + if (LOGGER.isDebugEnabled()) { LOGGER.debug("scan " + recordcount + " records from key: " + startkey + " on table: " + table); } @@ -229,7 +229,7 @@ public class DynamoDBClient extends DB { @Override public Status update(String table, String key, HashMap values) { - if(LOGGER.isDebugEnabled()) { + if (LOGGER.isDebugEnabled()) { LOGGER.debug("updatekey: " + key + " from table: " + table); } @@ -255,7 +255,7 @@ public class DynamoDBClient extends DB { @Override public Status insert(String table, String key, HashMap values) { - if(LOGGER.isDebugEnabled()) { + if (LOGGER.isDebugEnabled()) { LOGGER.debug("insertkey: " + primaryKeyName + "-" + key + " from table: " + table); } @@ -284,7 +284,7 @@ public class DynamoDBClient extends DB { @Override public Status delete(String table, String key) { - if(LOGGER.isDebugEnabled()) { + if (LOGGER.isDebugEnabled()) { LOGGER.debug("deletekey: " + key + " from table: " + table); } @@ -318,7 +318,7 @@ public class DynamoDBClient extends DB { HashMap rItems = new HashMap<>(item.size()); for (Entry attr : item.entrySet()) { - if(LOGGER.isDebugEnabled()) { + if (LOGGER.isDebugEnabled()) { LOGGER.debug(String.format("Result- key: %s, value: %s", attr.getKey(), attr.getValue())); } rItems.put(attr.getKey(), new StringByteIterator(attr.getValue().getS()));