ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [2/5] incubator-ignite git commit: ScanQuery setPartition chaining style fixed
Date Thu, 11 Jun 2015 12:11:08 GMT
ScanQuery setPartition chaining style fixed


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

Branch: refs/heads/ignite-484-1
Commit: 4f500fdf65275ef066578578493212433075a201
Parents: d36610f
Author: agura <agura@gridgain.com>
Authored: Thu Jun 11 13:33:15 2015 +0300
Committer: agura <agura@gridgain.com>
Committed: Thu Jun 11 13:33:15 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/cache/query/ScanQuery.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/4f500fdf/modules/core/src/main/java/org/apache/ignite/cache/query/ScanQuery.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/query/ScanQuery.java b/modules/core/src/main/java/org/apache/ignite/cache/query/ScanQuery.java
index e6b69bc..11a8c84 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/query/ScanQuery.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/query/ScanQuery.java
@@ -111,9 +111,12 @@ public final class ScanQuery<K, V> extends Query<Cache.Entry<K,
V>> {
      * all partitions in the cache. Must be in the range [0, N) where N is partition number
in the cache.
      *
      * @param part Partition number over which this query should iterate.
+     * @return {@code this} for chaining.
      */
-    public void setPartition(@Nullable Integer part) {
+    public ScanQuery<K, V> setPartition(@Nullable Integer part) {
         this.part = part;
+
+        return this;
     }
 
     /** {@inheritDoc} */


Mime
View raw message