ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: sql-store Compare values without unmarshalling.
Date Wed, 10 Feb 2016 14:57:06 GMT
Repository: ignite
Updated Branches:
  refs/heads/sql-store-cmp 20b91e413 -> 7cbd7b2ff


sql-store Compare values without unmarshalling.


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

Branch: refs/heads/sql-store-cmp
Commit: 7cbd7b2ff2bc178d9d861ab3a92d05358be70d5f
Parents: 20b91e4
Author: sboikov <sboikov@gridgain.com>
Authored: Wed Feb 10 17:56:55 2016 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Wed Feb 10 17:56:55 2016 +0300

----------------------------------------------------------------------
 .../processors/query/h2/opt/GridH2Utils.java    | 21 +++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7cbd7b2f/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Utils.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Utils.java
b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Utils.java
index 54f2014..168793d 100644
--- a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Utils.java
+++ b/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Utils.java
@@ -78,7 +78,26 @@ public class GridH2Utils {
         return ValueTimestamp.fromDateValueAndNanos(dateValue, nanos);
     }
 
-    public static long dateValueFromDate(long ms) {
+    /**
+     * @param ms Date milliseconds.
+     * @return Nanoseconds value.
+     */
+    public static long nanosFromMillis(long ms) {
+        Calendar calendar = getLocalCalendar();
+
+        calendar.clear();
+        calendar.setTimeInMillis(ms);
+
+        long nanos = nanosFromCalendar(calendar);
+
+        return nanos;
+    }
+
+    /**
+     * @param ms Date milliseconds.
+     * @return Date value.
+     */
+    public static long dateFromMillis(long ms) {
         Calendar calendar = getLocalCalendar();
 
         calendar.clear();


Mime
View raw message