Checkpointing progress towards integrating length-partitioned fuzzy indexes into Asterix. Basic bulk load and search seem to work. Needs testing.
git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_lsm_length_filter@927 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-aql/src/main/javacc/AQL.jj b/asterix-aql/src/main/javacc/AQL.jj
index eaa4260..59a7753 100644
--- a/asterix-aql/src/main/javacc/AQL.jj
+++ b/asterix-aql/src/main/javacc/AQL.jj
@@ -398,9 +398,10 @@
("," <IDENTIFIER> { cis.addFieldExpr(token.image); })*
<RIGHTPAREN>
("type"
- ("btree" { cis.setIndexType(IndexType.BTREE); }
- | "keyword" { cis.setIndexType(IndexType.WORD_INVIX); }
+ ("btree" { cis.setIndexType(IndexType.BTREE); }
| "rtree" { cis.setIndexType(IndexType.RTREE); }
+ | "keyword" { cis.setIndexType(IndexType.WORD_INVIX); }
+ | "fuzzy keyword" { cis.setIndexType(IndexType.FUZZY_WORD_INVIX); }
| "ngram"
<LEFTPAREN>
(<INTEGER_LITERAL>
@@ -409,7 +410,16 @@
cis.setGramLength(Integer.valueOf(token.image));
}
)
- <RIGHTPAREN>
+ <RIGHTPAREN>
+ | "fuzzy ngram"
+ <LEFTPAREN>
+ (<INTEGER_LITERAL>
+ {
+ cis.setIndexType(IndexType.FUZZY_NGRAM_INVIX);
+ cis.setGramLength(Integer.valueOf(token.image));
+ }
+ )
+ <RIGHTPAREN>
)
";"
| ";"