public Set<QueryableEntry> getRecords(Comparable[] values) { if (values.length == 1) { return indexStore.getRecords(convert(values[0])); } else { Set<Comparable> convertedValues = new HashSet<Comparable>(values.length); for (Comparable value : values) { convertedValues.add(convert(value)); } MultiResultSet results = new MultiResultSet(); indexStore.getRecords(results, convertedValues); return results; } }
public Set<QueryableEntry> getRecords(Comparable value) { return indexStore.getRecords(convert(value)); }