ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [10/20] ignite git commit: Yardstick backport from master
Date Fri, 01 Jul 2016 10:41:00 GMT
http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/ModelUtil.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/ModelUtil.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/ModelUtil.java
new file mode 100644
index 0000000..e21e6b4
--- /dev/null
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/ModelUtil.java
@@ -0,0 +1,181 @@
+/*
+ * 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.load.model;
+
+import java.util.UUID;
+import org.apache.ignite.yardstick.cache.load.model.key.Identifier;
+import org.apache.ignite.yardstick.cache.load.model.key.Mark;
+import org.apache.ignite.yardstick.cache.load.model.value.Car;
+import org.apache.ignite.yardstick.cache.load.model.value.Color;
+import org.apache.ignite.yardstick.cache.load.model.value.Truck;
+import org.apache.ignite.yardstick.cache.model.Account;
+import org.apache.ignite.yardstick.cache.model.Organization;
+import org.apache.ignite.yardstick.cache.model.Person;
+import org.apache.ignite.yardstick.cache.model.Person1;
+import org.apache.ignite.yardstick.cache.model.Person2;
+import org.apache.ignite.yardstick.cache.model.Person8;
+
+/**
+ * Util class for model.
+ */
+public class ModelUtil {
+    /**
+     * Classes of keys.
+     */
+    private static Class[] keyClasses = {
+        Double.class,
+        Identifier.class,
+        Mark.class,
+        Integer.class,
+        UUID.class
+    };
+
+    /**
+     * Classes of values.
+     */
+    private static Class[] valClasses = {
+//        Car.class,
+//        Truck.class,
+        Person.class,
+        Organization.class,
+        Account.class,
+        Person1.class,
+        Person2.class,
+        Person8.class
+    };
+
+    /**
+     * Simple of classes.
+     * Upper approximate size of value 24 bytes.
+     */
+    private static Class[] simpleClasses = {
+        Account.class,
+        Person1.class,
+        Person2.class,
+    };
+
+    /**
+     * Fat of classes.
+     * Upper approximate size of value 128 bytes.
+     */
+    private static Class[] fatClasses = {
+        Person.class,
+        Person8.class,
+        Organization.class
+    };
+
+    /**
+     * @param clazz Checked class.
+     * @return Result.
+     */
+    public static boolean canCreateInstance(Class clazz) {
+        for (Class c: keyClasses) {
+            if (c.equals(clazz))
+                return true;
+        }
+
+        for (Class c: valClasses) {
+            if (c.equals(clazz))
+                return true;
+        }
+
+        return false;
+    }
+
+    /**
+     * @param c model class
+     * @param id object id
+     * @return object from model
+     */
+    public static Object create(Class c, int id) {
+        Object res = null;
+
+        switch (c.getSimpleName()) {
+            case "Double":
+                res = id;
+                break;
+            case "Identifier":
+                res = new Identifier(id, "id " + id);
+                break;
+            case "Mark":
+                res = new Mark(id, UUID.nameUUIDFromBytes(Integer.toString(id).getBytes()));
+                break;
+            case "Integer":
+                res = id;
+                break;
+            case "UUID":
+                res = UUID.nameUUIDFromBytes(Integer.toString(id).getBytes());
+                break;
+            case "Car":
+                int colorCnt = Color.values().length;
+                res = new Car(id, "Mark " + id, id / 2.123 * 100, Color.values()[id % colorCnt]);
+                break;
+            case "Truck":
+                int colors = Color.values().length;
+                res = new Truck(id, "Mark " + id, id / 2.123 * 100, Color.values()[id % colors],
id / 4.123 * 100);
+                break;
+            case "Person":
+                res = new Person(id, id+1, "First Name " + id, "Last Name " + id, id / 2.123
* 100);
+                break;
+            case "Organization":
+                res = new Organization(id, "Organization " + id);
+                break;
+            case "Account":
+                res = new Account(id);
+                break;
+            case "Person1":
+                res = new Person1(id);
+                break;
+            case "Person2":
+                res = new Person2(id);
+                break;
+            case "Person8":
+                res = new Person8(id);
+        }
+
+        return res;
+    }
+
+    /**
+     * @return array of key cache classes
+     */
+    public static Class[] keyClasses() {
+        return keyClasses;
+    }
+
+    /**
+     * @return Array of cache value classes
+     */
+    public static Class[] valueClasses() {
+        return valClasses;
+    }
+
+    /**
+     * @return Array of cache value simple classes.
+     */
+    public static Class[] simpleValueClasses() {
+        return simpleClasses;
+    }
+
+    /**
+     * @return Array of cache value fat classes.
+     */
+    public static Class[] fatValueClasses() {
+        return fatClasses;
+    }
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Identifier.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Identifier.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Identifier.java
new file mode 100644
index 0000000..c7c7f2d
--- /dev/null
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Identifier.java
@@ -0,0 +1,113 @@
+/*
+ * 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.load.model.key;
+
+import java.io.Serializable;
+import org.apache.ignite.internal.util.typedef.internal.S;
+
+/**
+ * Key cache class
+ */
+public class Identifier implements Comparable<Identifier>, Serializable {
+    /**
+     * Integer identifier
+     */
+    private int id;
+
+    /**
+     * String identifier
+     */
+    private String code;
+
+    /**
+     * Empty constructor
+     */
+    public Identifier() {
+    }
+
+    /**
+     * @param id identifier
+     * @param code code
+     */
+    public Identifier(int id, String code) {
+        this.id = id;
+        this.code = code;
+    }
+
+    /**
+     * @return integer identifier
+     */
+    public int getId() {
+
+        return id;
+    }
+
+    /**
+     * @param id integer identifier
+     */
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    /**
+     * @return string identifier
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * @param code string identifier
+     */
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    /** {@inheritDoc} */
+    @Override public boolean equals(Object o) {
+        if (this == o)
+            return true;
+
+        if (o == null || getClass() != o.getClass())
+            return false;
+
+        Identifier that = (Identifier)o;
+
+        if (id != that.id)
+            return false;
+
+        return code != null ? code.equals(that.code) : that.code == null;
+    }
+
+    /** {@inheritDoc} */
+    @Override public int hashCode() {
+        int res = id;
+        res = 31 * res + (code != null ? code.hashCode() : 0);
+        return res;
+    }
+
+    /** {@inheritDoc} */
+    @Override public int compareTo(Identifier o) {
+        return Integer.compare(id, o.id);
+    }
+
+    /** {@inheritDoc} */
+    @Override public String toString() {
+        return S.toString(Identifier.class, this);
+    }
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Mark.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Mark.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Mark.java
new file mode 100644
index 0000000..35acef3
--- /dev/null
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/key/Mark.java
@@ -0,0 +1,115 @@
+/*
+ * 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.load.model.key;
+
+import java.io.Serializable;
+import java.util.UUID;
+import org.apache.ignite.internal.util.typedef.internal.S;
+
+/**
+ * Cache value class
+ */
+public class Mark implements Comparable<Mark>, Serializable {
+    /**
+     * Mark identifier
+     */
+    private int id;
+
+    /**
+     * Mark token
+     */
+    private UUID token;
+
+    /**
+     * Empty constructor
+     */
+    public Mark() {
+        // No-op.
+    }
+
+    /**
+     * @param id identifier
+     * @param token token
+     */
+    public Mark(int id, UUID token) {
+        this.id = id;
+        this.token = token;
+    }
+
+    /**
+     * @return mark identifier
+     */
+    public int getId() {
+        return id;
+    }
+
+    /**
+     * @param id mark identifier
+     */
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    /**
+     * @return mark token
+     */
+    public UUID getToken() {
+        return token;
+    }
+
+    /**
+     * @param token mark token
+     */
+    public void setToken(UUID token) {
+        this.token = token;
+    }
+
+    /** {@inheritDoc} */
+    @Override public boolean equals(Object o) {
+        if (this == o)
+            return true;
+        if (o == null || getClass() != o.getClass())
+            return false;
+
+        Mark mark = (Mark)o;
+
+        if (id != mark.id)
+            return false;
+
+        return token != null ? token.equals(mark.token) : mark.token == null;
+    }
+
+    /** {@inheritDoc} */
+    @Override public int hashCode() {
+        int res = id;
+
+        res = 31 * res + (token != null ? token.hashCode() : 0);
+
+        return res;
+    }
+
+    /** {@inheritDoc} */
+    @Override public int compareTo(Mark o) {
+        return id - o.id;
+    }
+
+    /** {@inheritDoc} */
+    @Override public String toString() {
+        return S.toString(Mark.class, this);
+    }
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Car.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Car.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Car.java
new file mode 100644
index 0000000..32be132
--- /dev/null
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Car.java
@@ -0,0 +1,126 @@
+/*
+ * 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.load.model.value;
+
+import java.io.Serializable;
+import org.apache.ignite.internal.util.typedef.internal.S;
+
+/**
+ * Value cache class
+ */
+public class Car implements Serializable {
+    /**
+     * Car identifier
+     */
+    int id;
+
+    /**
+     *  Car make
+     */
+    String make;
+
+    /**
+     * Car weight
+     */
+    double weight;
+
+    /**
+     * Car color
+     */
+    Color color;
+
+    /**
+     * Empty constructor
+     */
+    public Car() {
+    }
+
+    /**
+     * @param id identifier
+     * @param make mark of car
+     * @param weight weight
+     * @param color car color
+     */
+    public Car(int id, String make, double weight, Color color) {
+        this.id = id;
+        this.make = make;
+        this.weight = weight;
+        this.color = color;
+    }
+
+    /**
+     * @return car identifier
+     */
+    public int getId() {
+        return id;
+    }
+
+    /**
+     * @param id car identifier
+     */
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    /**
+     * @return car make
+     */
+    public String getMake() {
+        return make;
+    }
+
+    /**
+     * @param make car make
+     */
+    public void setMake(String make) {
+        this.make = make;
+    }
+
+    /**
+     * @return car weight
+     */
+    public double getWeight() {
+        return weight;
+    }
+
+    /**
+     * @param weight car weight
+     */
+    public void setWeight(double weight) {
+        this.weight = weight;
+    }
+
+    /**
+     * @return color
+     */
+    public Color getColor() {
+        return color;
+    }
+
+    /**
+     * @param color color
+     */
+    public void setColor(Color color) {
+        this.color = color;
+    }
+
+    /** {@inheritDoc} */
+    @Override public String toString() {
+        return S.toString(Car.class, this);
+    }
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Color.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Color.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Color.java
new file mode 100644
index 0000000..ecb3178
--- /dev/null
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Color.java
@@ -0,0 +1,50 @@
+/*
+ * 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.load.model.value;
+
+import java.io.Serializable;
+
+/**
+ * Car color
+ */
+public enum Color implements Serializable {
+    /**
+     * Grey color.
+     */
+    GREY,
+
+    /**
+     * Red color.
+     */
+    RED,
+
+    /**
+     * Green color.
+     */
+    GREEN,
+
+    /**
+     * Purple color.
+     */
+    PURPLE,
+
+    /**
+     * Light blue color.
+     */
+    LIGHTBLUE
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Truck.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Truck.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Truck.java
new file mode 100644
index 0000000..fd68562
--- /dev/null
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/model/value/Truck.java
@@ -0,0 +1,69 @@
+/*
+ * 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.load.model.value;
+
+import java.io.Serializable;
+import org.apache.ignite.internal.util.typedef.internal.S;
+
+/**
+ * Cache value class
+ */
+public class Truck extends Car implements Serializable {
+    /**
+     * Truck capacity
+     */
+    public double cap;
+
+    /**
+     * Empty constructor
+     */
+    public Truck() {
+        // No-op.
+    }
+
+    /**
+     * @param id identifier
+     * @param make mark of truck
+     * @param weight weight
+     * @param color Color.
+     * @param cap capacity
+     */
+    public Truck(int id, String make, double weight, Color color, double cap) {
+        super(id, make, weight, color);
+        this.cap = cap;
+    }
+
+    /**
+     * @return truck capacity
+     */
+    public double getCap() {
+        return cap;
+    }
+
+    /**
+     * @param cap truck capacity
+     */
+    public void setCap(double cap) {
+        this.cap = cap;
+    }
+
+    /** {@inheritDoc} */
+    @Override public String toString() {
+        return S.toString(Truck.class, this);
+    }
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Account.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Account.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Account.java
index 3d5d9f8..a857b9d 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Account.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Account.java
@@ -18,6 +18,7 @@
 package org.apache.ignite.yardstick.cache.model;
 
 import java.io.Serializable;
+import org.apache.ignite.internal.util.typedef.internal.S;
 
 /**
  *
@@ -39,4 +40,9 @@ public class Account implements Serializable {
     public int balance() {
         return balance;
     }
+
+    /** {@inheritDoc} */
+    @Override public String toString() {
+        return S.toString(Account.class, this);
+    }
 }

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person1.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person1.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person1.java
index 9e55850..5f412f4 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person1.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person1.java
@@ -49,6 +49,6 @@ public class Person1 implements Serializable {
 
     /** {@inheritDoc} */
     @Override public String toString() {
-        return "IndexedValue1 [val1=" + val1 + ']';
+        return "Person1 [val1=" + val1 + ']';
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person2.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person2.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person2.java
index cf9628c..571fe83 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person2.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/Person2.java
@@ -61,6 +61,6 @@ public class Person2 implements Serializable {
 
     /** {@inheritDoc} */
     @Override public String toString() {
-        return "IndexedValue2 [val1=" + val1 + ", val2=" + val2 + ']';
+        return "Person2 [val1=" + val1 + ", val2=" + val2 + ']';
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleKey.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleKey.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleKey.java
index e089696..ac4b924 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleKey.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleKey.java
@@ -100,6 +100,6 @@ public class SampleKey implements Externalizable, Binarylizable {
 
     /** {@inheritDoc} */
     @Override public String toString() {
-        return "Key [id=" + id + ']';
+        return "SampleKey [id=" + id + ']';
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/4670bc53/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleValue.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleValue.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleValue.java
index b28862c..20be370 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleValue.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/model/SampleValue.java
@@ -81,6 +81,6 @@ public class SampleValue implements Externalizable, Binarylizable {
 
     /** {@inheritDoc} */
     @Override public String toString() {
-        return "Value [id=" + id + ']';
+        return "SampleValue [id=" + id + ']';
     }
 }
\ No newline at end of file


Mime
View raw message