类 AbstractQueryHandler

  • 直接已知子类:
    NewQueryHandler

    public abstract class AbstractQueryHandler
    extends java.lang.Object
    Used to process influxdb query requests, this abstract class defines some template methods
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean canMergeOperator​(FilterOperator operator)
      judge whether the subtrees of the syntax tree have or operations.
      void checkInfluxDBQueryOperator​(Operator operator)  
      java.util.List<org.apache.iotdb.tsfile.read.expression.IExpression> getIExpressionByFilterOperatorOperator​(FilterOperator filterOperator)
      generate query conditions through the syntax tree (if you enter this function, it means that it must be a syntax tree that can be merged, and there is no or)
      org.apache.iotdb.tsfile.read.expression.IExpression getIExpressionForBasicFunctionOperator​(BasicFunctionOperator basicFunctionOperator)
      conditions are generated from subtrees of unique conditions
      void ProcessSelectComponent​(org.influxdb.dto.QueryResult queryResult, InfluxSelectComponent selectComponent)
      further process the obtained query result through the query criteria of select
      org.influxdb.dto.QueryResult queryByConditions​(java.util.List<org.apache.iotdb.tsfile.read.expression.IExpression> expressions, java.lang.String database, java.lang.String measurement, java.util.Map<java.lang.String,​java.lang.Integer> fieldOrders, java.lang.Long sessionId)
      get query results in the format of influxdb through conditions
      org.influxdb.dto.QueryResult queryExpr​(FilterOperator operator, java.lang.String database, java.lang.String measurement, java.util.Map<java.lang.String,​java.lang.Integer> fieldOrders, java.lang.Long sessionId)  
      org.influxdb.dto.QueryResult queryFuncWithoutFilter​(InfluxSelectComponent selectComponent, java.lang.String database, java.lang.String measurement, long sessionid)
      Query the select result.
      org.apache.iotdb.protocol.influxdb.rpc.thrift.InfluxQueryResultRsp queryInfluxDB​(java.lang.String database, InfluxQueryOperator queryOperator, long sessionId)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AbstractQueryHandler

        public AbstractQueryHandler()
    • 方法详细资料

      • queryInfluxDB

        public final org.apache.iotdb.protocol.influxdb.rpc.thrift.InfluxQueryResultRsp queryInfluxDB​(java.lang.String database,
                                                                                                      InfluxQueryOperator queryOperator,
                                                                                                      long sessionId)
      • getIExpressionForBasicFunctionOperator

        public org.apache.iotdb.tsfile.read.expression.IExpression getIExpressionForBasicFunctionOperator​(BasicFunctionOperator basicFunctionOperator)
        conditions are generated from subtrees of unique conditions
        参数:
        basicFunctionOperator - subtree to generate condition
        返回:
        corresponding conditions
      • ProcessSelectComponent

        public void ProcessSelectComponent​(org.influxdb.dto.QueryResult queryResult,
                                           InfluxSelectComponent selectComponent)
        further process the obtained query result through the query criteria of select
        参数:
        queryResult - query results to be processed
        selectComponent - select conditions to be filtered
      • queryFuncWithoutFilter

        public org.influxdb.dto.QueryResult queryFuncWithoutFilter​(InfluxSelectComponent selectComponent,
                                                                   java.lang.String database,
                                                                   java.lang.String measurement,
                                                                   long sessionid)
        Query the select result. By default, there are no filter conditions. The functions to be queried use the built-in iotdb functions
        参数:
        selectComponent - select data to query
        返回:
        select query result
      • queryExpr

        public org.influxdb.dto.QueryResult queryExpr​(FilterOperator operator,
                                                      java.lang.String database,
                                                      java.lang.String measurement,
                                                      java.util.Map<java.lang.String,​java.lang.Integer> fieldOrders,
                                                      java.lang.Long sessionId)
                                               throws org.apache.iotdb.commons.auth.AuthException
        抛出:
        org.apache.iotdb.commons.auth.AuthException
      • queryByConditions

        public org.influxdb.dto.QueryResult queryByConditions​(java.util.List<org.apache.iotdb.tsfile.read.expression.IExpression> expressions,
                                                              java.lang.String database,
                                                              java.lang.String measurement,
                                                              java.util.Map<java.lang.String,​java.lang.Integer> fieldOrders,
                                                              java.lang.Long sessionId)
                                                       throws org.apache.iotdb.commons.auth.AuthException
        get query results in the format of influxdb through conditions
        参数:
        expressions - list of conditions, including tag and field condition
        返回:
        returns the results of the influxdb query
        抛出:
        org.apache.iotdb.commons.auth.AuthException
      • getIExpressionByFilterOperatorOperator

        public java.util.List<org.apache.iotdb.tsfile.read.expression.IExpression> getIExpressionByFilterOperatorOperator​(FilterOperator filterOperator)
        generate query conditions through the syntax tree (if you enter this function, it means that it must be a syntax tree that can be merged, and there is no or)
        参数:
        filterOperator - the syntax tree of query criteria needs to be generated
        返回:
        condition list
      • canMergeOperator

        public boolean canMergeOperator​(FilterOperator operator)
        judge whether the subtrees of the syntax tree have or operations. If not, the query can be merged
        参数:
        operator - subtree to judge
        返回:
        can merge queries
      • checkInfluxDBQueryOperator

        public void checkInfluxDBQueryOperator​(Operator operator)