// Get an existing table, if any, matching the exact requirement
IndexMultiKey indexPropKeyMatch = findExactMatchNameAndType(tableIndexesRefCount.keySet(), unique, hashProps, btreeProps);
if (indexPropKeyMatch != null) {
NamedWindowIndexRepEntry refTablePair = tableIndexesRefCount.get(indexPropKeyMatch);
refTablePair.setRefCount(refTablePair.getRefCount() + 1);
return new Pair<IndexMultiKey, EventTableAndNamePair>(indexPropKeyMatch, new EventTableAndNamePair(refTablePair.getTable(), refTablePair.getOptionalIndexName()));
}
return addIndex(unique, hashProps, btreeProps, prefilledEvents, indexedType, indexName, false);
}