}
@Override
public RandomAccessFilter buildRandomAccessOrFilter(String[] vals,
Properties prop, boolean isNot) throws IOException {
LongSet longSet = new LongOpenHashSet();
for (String val : vals){
try{
longSet.add(Long.parseLong(val));
}
catch(Exception e){
throw new IOException(e.getMessage());
}
}
RandomAccessFilter filter;
if (longSet.size()==1){
filter = buildRandomAccessFilter(longSet.iterator().nextLong());
}
else{
filter = buildRandomAccessFilter(longSet);
}
if (filter == null) return filter;