{
if (!isActiveCache)
{
return new EventTable[] {new UnindexedEventTableList(pollResult, streamNum)};
}
PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(streamNum, eventType, propertyNames, false, null);
EventTable[] tables = factory.makeEventTables();
for (EventTable table : tables) {
table.add(pollResult.toArray(new EventBean[pollResult.size()]));
}
return tables;
}