ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptupit...@apache.org
Subject [1/3] ignite git commit: IGNITE-3325 .NET: Improve CompiledQuery in LINQ provider - minor fixes
Date Tue, 23 Aug 2016 17:08:44 GMT
Repository: ignite
Updated Branches:
  refs/heads/master 94b9713fa -> 13c7a8e59


IGNITE-3325 .NET: Improve CompiledQuery in LINQ provider - minor fixes


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

Branch: refs/heads/master
Commit: 207e8cb3b939670655da14082ac9e1cf1d822fd0
Parents: d603371
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Tue Aug 23 20:01:48 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Tue Aug 23 20:01:48 2016 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Linq/CompiledQuery2.cs     | 16 ++++++++--------
 .../Apache.Ignite.Linq/Impl/ExpressionWalker.cs     |  1 +
 2 files changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/207e8cb3/modules/platforms/dotnet/Apache.Ignite.Linq/CompiledQuery2.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Linq/CompiledQuery2.cs b/modules/platforms/dotnet/Apache.Ignite.Linq/CompiledQuery2.cs
index 85aafd9..1ecc6e9 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Linq/CompiledQuery2.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Linq/CompiledQuery2.cs
@@ -27,19 +27,19 @@ namespace Apache.Ignite.Linq
     using Apache.Ignite.Linq.Impl;
 
     /// <summary>
+    /// Delegate for compiled query with arbitrary number of arguments.
+    /// </summary>
+    /// <typeparam name="T">Result type.</typeparam>
+    /// <param name="args">The arguments.</param>
+    /// <returns>Query cursor.</returns>
+    public delegate IQueryCursor<T> CompiledQueryDelegate<T>(params object[]
args);
+
+    /// <summary>
     /// Represents a compiled cache query.
     /// </summary>
     public static class CompiledQuery2
     {
         /// <summary>
-        /// Delegate for compiled query with arbitrary number of arguments.
-        /// </summary>
-        /// <typeparam name="T">Result type.</typeparam>
-        /// <param name="args">The arguments.</param>
-        /// <returns>Query cursor.</returns>
-        public delegate IQueryCursor<T> CompiledQueryDelegate<T>(params object[]
args);
-
-        /// <summary>
         /// Creates a new delegate that represents the compiled cache query.
         /// </summary>
         /// <param name="query">The query to compile.</param>

http://git-wip-us.apache.org/repos/asf/ignite/blob/207e8cb3/modules/platforms/dotnet/Apache.Ignite.Linq/Impl/ExpressionWalker.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Linq/Impl/ExpressionWalker.cs b/modules/platforms/dotnet/Apache.Ignite.Linq/Impl/ExpressionWalker.cs
index f529da7..5d94ccc 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Linq/Impl/ExpressionWalker.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Linq/Impl/ExpressionWalker.cs
@@ -143,6 +143,7 @@ namespace Apache.Ignite.Linq.Impl
             }
 
             // Case for compiled queries: return unchanged.
+            // ReSharper disable once CanBeReplacedWithTryCastAndCheckForNull
             if (expr is ParameterExpression)
                 return (T) (object) expr;
 


Mime
View raw message