commit | ca8da106fad840548e5c544f2e217c2499c4437e | [log] [tgz] |
---|---|---|
author | Taewoo Kim <wangsaeu@yahoo.com> | Tue Aug 11 14:51:01 2015 -0700 |
committer | Taewoo Kim <wangsaeu@gmail.com> | Tue Aug 11 19:58:16 2015 -0700 |
tree | 8590850ca93c9c32c0addf21997a21a3afef3bbb | |
parent | c9a3a9be189846a5c3b476d57c2576355589465d [diff] |
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>
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 @@ protected int getNumberOfItems(byte[] data, int start) { return AOrderedListSerializerDeserializer.getNumberOfItems(data, start); } + + @Override + public short getTokensCount() { + return (short) listLength; + } }