Class InputStreamParser


  • public class InputStreamParser
    extends Object
    Class to parse InputStream
    • Constructor Detail

      • InputStreamParser

        public InputStreamParser()
    • Method Detail

      • parse

        public static StreamRuntime parse​(io.siddhi.query.api.execution.query.input.stream.InputStream inputStream,
                                          io.siddhi.query.api.execution.query.Query query,
                                          Map<String,​io.siddhi.query.api.definition.AbstractDefinition> streamDefinitionMap,
                                          Map<String,​io.siddhi.query.api.definition.AbstractDefinition> tableDefinitionMap,
                                          Map<String,​io.siddhi.query.api.definition.AbstractDefinition> windowDefinitionMap,
                                          Map<String,​io.siddhi.query.api.definition.AbstractDefinition> aggregationDefinitionMap,
                                          Map<String,​Table> tableMap,
                                          Map<String,​Window> windowMap,
                                          Map<String,​AggregationRuntime> aggregationMap,
                                          List<VariableExpressionExecutor> executors,
                                          boolean outputExpectsExpiredEvents,
                                          SiddhiQueryContext siddhiQueryContext)
        Parse an InputStream returning corresponding StreamRuntime
        Parameters:
        inputStream - input stream to be parsed
        streamDefinitionMap - map containing user given stream definitions
        tableDefinitionMap - table definition map
        windowDefinitionMap - window definition map
        aggregationDefinitionMap - aggregation definition map
        tableMap - Table Map
        windowMap - event window map
        aggregationMap - aggregator map
        executors - List to hold VariableExpressionExecutors to update after query parsing
        outputExpectsExpiredEvents - is expired events sent as output
        siddhiQueryContext - Siddhi query context.
        Returns:
        StreamRuntime