public IndexMatch[] queryMatches(final IndexQuery query) throws DBException {
final List results = new ArrayList();
final IndexPattern pattern = query.getPattern();
try {
query(query, new BTreeCallback() {
public boolean indexInfo(Value value, long pos) {
IndexMatch match = getIndexMatch(value);
if (wildcard) {
IndexPattern pt = new IndexPattern(symbols, match.getElement(), match.getAttribute());
if (pt.getMatchLevel(pattern) > 0) {