}
EventType eventType = processor.getTailView().getEventType();
// compile filter to optimize access to named window
StreamTypeServiceImpl typeService = new StreamTypeServiceImpl(new EventType[] {eventType}, new String[] {aliasName}, new boolean[] {true}, services.getEngineURI(), true);
FilterSpecCompiled filter;
if (statementSpec.getFilterRootNode() != null) {
LinkedHashMap<String, Pair<EventType, String>> tagged = new LinkedHashMap<String, Pair<EventType, String>>();
FilterSpecCompiled filterCompiled;
try {
filterCompiled = FilterSpecCompiler.makeFilterSpec(eventType, aliasName,
Collections.singletonList(statementSpec.getFilterRootNode()), null,
tagged, tagged, typeService,
null, statementContext, Collections.singleton(0));