public SiddhiApp defineWindow(WindowDefinition windowDefinition) { if (windowDefinition == null) { throw new SiddhiAppValidationException("Window Definition should not be null"); } else if (windowDefinition.getId() == null) { throw new SiddhiAppValidationException("Window Id should not be null for Window Definition", windowDefinition.getQueryContextStartIndex(), windowDefinition.getQueryContextEndIndex()); } checkDuplicateDefinition(windowDefinition); this.windowDefinitionMap.put(windowDefinition.getId(), windowDefinition); return this; }
public SiddhiApp defineWindow(WindowDefinition windowDefinition) { if (windowDefinition == null) { throw new SiddhiAppValidationException("Window Definition should not be null"); } else if (windowDefinition.getId() == null) { throw new SiddhiAppValidationException("Window Id should not be null for Window Definition", windowDefinition.getQueryContextStartIndex(), windowDefinition.getQueryContextEndIndex()); } checkDuplicateDefinition(windowDefinition); this.windowDefinitionMap.put(windowDefinition.getId(), windowDefinition); return this; }
queryContextStartIndex = siddhiApp.getWindowDefinitionMap().get(streamId).getQueryContextStartIndex(); queryContextEndIndex = siddhiApp.getWindowDefinitionMap().get(streamId).getQueryContextEndIndex();