public Map < String , List < V > > materializeMatch ( Map < String , List < EventId > > match ) { Map < String , List < V > > materializedMatch = new LinkedHashMap <> ( match . size ( ) ) ; for ( Map . Entry < String , List < EventId > > pattern : match . entrySet ( ) ) { List < V > events = new ArrayList <> ( pattern . getValue ( ) . size ( ) ) ; for ( EventId eventId : pattern . getValue ( ) ) { try { V event = sharedBuffer . getEvent ( eventId ) . getElement ( ) ; events . add ( event ) ; } catch ( Exception ex ) { throw new WrappingRuntimeException ( ex ) ; } } materializedMatch . put ( pattern . getKey ( ) , events ) ; } return materializedMatch ; }
Extracts the real event from the sharedBuffer with pre - extracted eventId .