throw new IllegalStateException("Index not found for use by stream " + streamViewStreamNum);
}
// Use one of the indexes built by the master index and a lookup strategy
final int indexNumber = indexUsed;
final HistoricalIndexLookupStrategy innerLookupStrategy = JoinSetComposerPrototypeFactory.determineIndexing(queryGraph, typesPerStream[historicalStreamNum], typesPerStream[streamViewStreamNum], historicalStreamNum, streamViewStreamNum).getFirst();
HistoricalIndexLookupStrategy lookupStrategy = new HistoricalIndexLookupStrategy()
{
public Iterator<EventBean> lookup(EventBean lookupEvent, EventTable[] index, ExprEvaluatorContext context)
{
MultiIndexEventTable multiIndex = (MultiIndexEventTable) index[0];
EventTable indexToUse = multiIndex.getTables()[indexNumber];