ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [52/60] [abbrv] incubator-ignite git commit: # ignite-63
Date Fri, 23 Jan 2015 15:00:42 GMT
# ignite-63


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

Branch: refs/heads/ignite-99-2
Commit: 50d64b0ab61e76a6f6a61b5dbb4069f2af24c592
Parents: 168d7d0
Author: sboikov <sboikov@gridgain.com>
Authored: Fri Jan 23 17:13:30 2015 +0400
Committer: sboikov <sboikov@gridgain.com>
Committed: Fri Jan 23 17:13:30 2015 +0400

----------------------------------------------------------------------
 .../scalar/examples/ScalarCacheAffinitySimpleExample.scala     | 6 +++---
 .../ignite/scalar/examples/ScalarCacheQueryExample.scala       | 4 ++--
 .../ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala  | 1 +
 3 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/50d64b0a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinitySimpleExample.scala
----------------------------------------------------------------------
diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinitySimpleExample.scala
b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinitySimpleExample.scala
index dd62b9e..e3959a0 100644
--- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinitySimpleExample.scala
+++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinitySimpleExample.scala
@@ -43,7 +43,7 @@ object ScalarCacheAffinitySimpleExample extends App {
     private val NAME = "partitioned"
 
     /** Type alias. */
-    type GridCache = GridCache[Int, String]
+    type Cache = GridCache[Int, String]
 
     /*
      * Note that in case of `LOCAL` configuration,
@@ -65,7 +65,7 @@ object ScalarCacheAffinitySimpleExample extends App {
      *
      * @param c Cache to use.
      */
-    private def visit(c: GridCache) {
+    private def visit(c: Cache) {
         (0 until KEY_CNT).foreach(i =>
             grid$.compute().affinityRun(NAME, i,
                 () => println("Co-located [key= " + i + ", value=" + c.peek(i) + ']'))
@@ -77,7 +77,7 @@ object ScalarCacheAffinitySimpleExample extends App {
      *
      * @param c Cache to populate.
      */
-    private def populate(c: GridCache) {
+    private def populate(c: Cache) {
         (0 until KEY_CNT).foreach(i => c += (i -> i.toString))
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/50d64b0a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala
----------------------------------------------------------------------
diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala
b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala
index 4ac6303..cda85d9 100644
--- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala
+++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala
@@ -15,13 +15,13 @@
  * limitations under the License.
  */
 
-package org.gridgain.scalar.examples
+package org.apache.ignite.scalar.examples
 
 import org.apache.ignite.cache.{CacheMode, CacheFlag, CacheProjection}
 import org.apache.ignite.cache.affinity.CacheAffinityKey
 import org.gridgain.scalar._
 import scalar._
-import org.apache.ignite._
+import org.apache.ignite.Ignite
 import CacheMode._
 import java.util._
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/50d64b0a/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
----------------------------------------------------------------------
diff --git a/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
b/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
index e29a063..f026747 100644
--- a/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
+++ b/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
@@ -17,6 +17,7 @@
 
 package org.apache.ignite.scalar.tests.examples
 
+import org.apache.ignite.scalar.examples.{ScalarCacheQueryExample, ScalarCacheAffinitySimpleExample}
 import org.gridgain.scalar.examples._
 import org.gridgain.scalar.scalar
 import org.scalatest.junit.JUnitSuiteLike


Mime
View raw message