Class QueryParser

    • Constructor Detail

      • QueryParser

        public QueryParser()
    • Method Detail

      • parse

        public static QueryRuntimeImpl parse​(io.siddhi.query.api.execution.query.Query query,
                                             SiddhiAppContext siddhiAppContext,
                                             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,​AggregationRuntime> aggregationMap,
                                             Map<String,​Window> windowMap,
                                             LockSynchronizer lockSynchronizer,
                                             String queryIndex,
                                             boolean partitioned,
                                             String partitionId)
        Parse a query and return corresponding QueryRuntime.
        Parameters:
        query - query to be parsed.
        siddhiAppContext - associated Siddhi app context.
        streamDefinitionMap - keyvalue containing user given stream definitions.
        tableDefinitionMap - keyvalue containing table definitions.
        windowDefinitionMap - keyvalue containing window definition map.
        aggregationDefinitionMap - keyvalue containing aggregation definition map.
        tableMap - keyvalue containing event tables.
        aggregationMap - keyvalue containing aggrigation runtimes.
        windowMap - keyvalue containing event window map.
        lockSynchronizer - Lock synchronizer for sync the lock across queries.
        queryIndex - query index to identify unknown query by number
        partitioned - is the query partitioned
        partitionId - The ID of the partition
        Returns:
        queryRuntime