public RandomAccessFilter buildRandomAccessOrFilter(String[] vals, Properties prop, boolean isNot)
throws IOException {
ArrayList<RandomAccessFilter> filterList = new ArrayList<RandomAccessFilter>(vals.length);
for (String val : vals) {
RandomAccessFilter f = buildRandomAccessFilter(val, prop);
if (f != null && !(f instanceof EmptyFilter)) {
filterList.add(f);
}
}
RandomAccessFilter finalFilter;
if (filterList.size() == 0) {
finalFilter = EmptyFilter.getInstance();
} else {
finalFilter = new RandomAccessOrFilter(filterList);
}