{
indexesUsedByStreams = new LinkedHashMap<HistoricalStreamIndexDesc, List<Integer>>();
for (int pollingStream : pollingStreams)
{
QueryGraphValue queryGraphValue = queryGraph.getGraphValue(pollingStream, historicalStreamNum);
QueryGraphValuePairHashKeyIndex hashKeyProps = queryGraphValue.getHashKeyProps();
String[] indexProperties = hashKeyProps.getIndexed();
Class[] keyTypes = getPropertyTypes(hashKeyProps.getKeys());
Class[] indexTypes = getPropertyTypes(typesPerStream[historicalStreamNum], indexProperties);
HistoricalStreamIndexDesc desc = new HistoricalStreamIndexDesc(indexProperties, indexTypes, keyTypes);
List<Integer> usedByStreams = indexesUsedByStreams.get(desc);
if (usedByStreams == null)