asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wangs...@apache.org
Subject incubator-asterixdb git commit: Optimized the binary tokenizer - get the total number of tokens Change-Id: I83765b6cd7cb92648aa55b260b0044fa3ffdcd7d Reviewed-on: https://asterix-gerrit.ics.uci.edu/349 Reviewed-by: Young-Seok Kim <kisskys@gmail.com> Teste
Date Wed, 12 Aug 2015 03:02:12 GMT
Repository: incubator-asterixdb
Updated Branches:
  refs/heads/master c9a3a9be1 -> ca8da106f


Optimized the binary tokenizer - get the total number of tokens
Change-Id: I83765b6cd7cb92648aa55b260b0044fa3ffdcd7d
Reviewed-on: https://asterix-gerrit.ics.uci.edu/349
Reviewed-by: Young-Seok Kim <kisskys@gmail.com>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


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

Branch: refs/heads/master
Commit: ca8da106fad840548e5c544f2e217c2499c4437e
Parents: c9a3a9b
Author: Taewoo Kim <wangsaeu@yahoo.com>
Authored: Tue Aug 11 14:51:01 2015 -0700
Committer: Taewoo Kim <wangsaeu@gmail.com>
Committed: Tue Aug 11 19:58:16 2015 -0700

----------------------------------------------------------------------
 .../dataflow/data/common/AOrderedListBinaryTokenizer.java       | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/ca8da106/asterix-om/src/main/java/edu/uci/ics/asterix/dataflow/data/common/AOrderedListBinaryTokenizer.java
----------------------------------------------------------------------
diff --git a/asterix-om/src/main/java/edu/uci/ics/asterix/dataflow/data/common/AOrderedListBinaryTokenizer.java
b/asterix-om/src/main/java/edu/uci/ics/asterix/dataflow/data/common/AOrderedListBinaryTokenizer.java
index 7c99b2f..3323fc7 100644
--- a/asterix-om/src/main/java/edu/uci/ics/asterix/dataflow/data/common/AOrderedListBinaryTokenizer.java
+++ b/asterix-om/src/main/java/edu/uci/ics/asterix/dataflow/data/common/AOrderedListBinaryTokenizer.java
@@ -80,4 +80,9 @@ public class AOrderedListBinaryTokenizer implements IBinaryTokenizer {
     protected int getNumberOfItems(byte[] data, int start) {
         return AOrderedListSerializerDeserializer.getNumberOfItems(data, start);
     }
+
+    @Override
+    public short getTokensCount() {
+        return (short) listLength;
+    }
 }


Mime
View raw message