use of org.apache.accumulo.core.iterators.user.RegExFilter in project accumulo by apache.
the class RegExTest method runTest.
private void runTest(Range range, String rowRegEx, String cfRegEx, String cqRegEx, String valRegEx, int expected) throws Exception {
SortedKeyValueIterator<Key, Value> source = new SortedMapIterator(data);
Set<ByteSequence> es = ImmutableSet.of();
IteratorSetting is = new IteratorSetting(50, "regex", RegExFilter.class);
RegExFilter.setRegexs(is, rowRegEx, cfRegEx, cqRegEx, valRegEx, false);
RegExFilter iter = new RegExFilter();
iter.init(source, is.getOptions(), null);
iter.seek(range, es, false);
runTest(iter, rowRegEx, cfRegEx, cqRegEx, valRegEx, expected);
}
Aggregations