ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ag...@apache.org
Subject [31/50] [abbrv] ignite git commit: IGNITE-4869: Removed unnecessary benchmarks for legacy binary identity. This closes #1677.
Date Wed, 29 Mar 2017 14:02:55 GMT
IGNITE-4869: Removed unnecessary benchmarks for legacy binary identity. This closes #1677.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/87477e08
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/87477e08
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/87477e08

Branch: refs/heads/ignite-4003
Commit: 87477e08c0b4c07af501f288bd26d8efde7e2274
Parents: 3f8cdea
Author: Evgenii Zhuravlev <ezhuravlev@gridgain.com>
Authored: Tue Mar 28 10:16:07 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Tue Mar 28 10:16:07 2017 +0300

----------------------------------------------------------------------
 .../cache/IgniteBinaryIdentityBenchmark.java    | 21 --------------
 .../IgniteLegacyBinaryIdentityGetBenchmark.java | 30 --------------------
 .../IgniteLegacyBinaryIdentityPutBenchmark.java | 30 --------------------
 3 files changed, 81 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/87477e08/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteBinaryIdentityBenchmark.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteBinaryIdentityBenchmark.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteBinaryIdentityBenchmark.java
index a2e29dd..c55fc63 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteBinaryIdentityBenchmark.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteBinaryIdentityBenchmark.java
@@ -74,27 +74,6 @@ abstract class IgniteBinaryIdentityBenchmark extends IgniteCacheAbstractBenchmar
     }
 
     /**
-     * @param key Key field value.
-     * @return Binary object with hash code explicitly set at build time.
-     */
-    @SuppressWarnings("ResultOfMethodCallIgnored")
-    BinaryObject createLegacyIdentityBinaryKey(int key) {
-        BinaryObjectBuilder bldr = ignite().binary().builder("BinaryKeyWithLegacyIdentity");
-
-        setBuilderFields(bldr, key);
-
-        int hash = 0;
-
-        hash = 31 * hash + 1;
-        hash = 31 * hash + ("SomeString".hashCode());
-        hash = 31 * hash + Long.valueOf(key).hashCode();
-
-        bldr.hashCode(hash);
-
-        return bldr.build();
-    }
-
-    /**
      * @param builder Builder.
      * @param key Key field value.
      */

http://git-wip-us.apache.org/repos/asf/ignite/blob/87477e08/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityGetBenchmark.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityGetBenchmark.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityGetBenchmark.java
deleted file mode 100644
index 1b36b24..0000000
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityGetBenchmark.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.yardstick.cache;
-
-import org.apache.ignite.binary.BinaryObject;
-
-/**
- * Test GETs with binary hashed key.
- */
-public class IgniteLegacyBinaryIdentityGetBenchmark extends IgniteBinaryIdentityGetBenchmark
{
-    /** {@inheritDoc} */
-    @Override BinaryObject createKey(int key) {
-        return createLegacyIdentityBinaryKey(key);
-    }
-}

http://git-wip-us.apache.org/repos/asf/ignite/blob/87477e08/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityPutBenchmark.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityPutBenchmark.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityPutBenchmark.java
deleted file mode 100644
index 246fc28..0000000
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteLegacyBinaryIdentityPutBenchmark.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.yardstick.cache;
-
-import org.apache.ignite.binary.BinaryObject;
-
-/**
- * Test PUTs with binary hashed key.
- */
-public class IgniteLegacyBinaryIdentityPutBenchmark extends IgniteBinaryIdentityPutBenchmark
{
-    /** {@inheritDoc} */
-    @Override BinaryObject createKey(int key) {
-        return createLegacyIdentityBinaryKey(key);
-    }
-}


Mime
View raw message