public EventTable[] index(List<EventBean> pollResult, boolean isActiveCache)
{
if (!isActiveCache)
{
return new EventTable[]{new UnindexedEventTableList(pollResult, streamNum)};
}
PropertyCompositeEventTableFactory factory = new PropertyCompositeEventTableFactory(streamNum, eventType, indexPropertiesJoin, keyCoercionTypes, rangePropertiesJoin, rangeCoercionTypes);
EventTable[] tables = factory.makeEventTables();
for (EventTable table : tables) {
table.add(pollResult.toArray(new EventBean[pollResult.size()]));