Package org.apache.iotdb.db.qp
Class Planner
- java.lang.Object
-
- org.apache.iotdb.db.qp.Planner
-
public class Planner extends java.lang.Objectprovide a integration method for other user.
-
-
Constructor Summary
Constructors Constructor Description Planner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PhysicalPlangeneratePhysicalPlanFromOperator(Operator operator)PhysicalPlanlastDataQueryReqToPhysicalPlan(org.apache.iotdb.service.rpc.thrift.TSLastDataQueryReq lastDataQueryReq, java.time.ZoneId zoneId, org.apache.iotdb.commons.conf.IoTDBConstant.ClientVersion clientVersion)convert last data query to physical plan directlyprotected OperatorlogicalOptimize(Operator operator)given an unoptimized logical operator tree and return a optimized result.PhysicalPlanoperatorToPhysicalPlan(Operator operator)PhysicalPlanparseSQLToGrafanaQueryPlan(java.lang.String sqlStr, java.time.ZoneId zoneId)PhysicalPlanparseSQLToPhysicalPlan(java.lang.String sqlStr)PhysicalPlanparseSQLToPhysicalPlan(java.lang.String sqlStr, java.time.ZoneId zoneId, org.apache.iotdb.commons.conf.IoTDBConstant.ClientVersion clientVersion)PhysicalPlanparseSQLToRestQueryPlan(java.lang.String sqlStr, java.time.ZoneId zoneId)PhysicalPlanrawDataQueryReqToPhysicalPlan(org.apache.iotdb.service.rpc.thrift.TSRawDataQueryReq rawDataQueryReq, java.time.ZoneId zoneId, org.apache.iotdb.commons.conf.IoTDBConstant.ClientVersion clientVersion)convert raw data query to physical plan directly
-
-
-
Method Detail
-
parseSQLToPhysicalPlan
public PhysicalPlan parseSQLToPhysicalPlan(java.lang.String sqlStr) throws QueryProcessException
- Throws:
QueryProcessException
-
parseSQLToPhysicalPlan
public PhysicalPlan parseSQLToPhysicalPlan(java.lang.String sqlStr, java.time.ZoneId zoneId, org.apache.iotdb.commons.conf.IoTDBConstant.ClientVersion clientVersion) throws QueryProcessException
- Throws:
QueryProcessException
-
rawDataQueryReqToPhysicalPlan
public PhysicalPlan rawDataQueryReqToPhysicalPlan(org.apache.iotdb.service.rpc.thrift.TSRawDataQueryReq rawDataQueryReq, java.time.ZoneId zoneId, org.apache.iotdb.commons.conf.IoTDBConstant.ClientVersion clientVersion) throws org.apache.iotdb.commons.exception.IllegalPathException, QueryProcessException
convert raw data query to physical plan directly- Throws:
org.apache.iotdb.commons.exception.IllegalPathExceptionQueryProcessException
-
lastDataQueryReqToPhysicalPlan
public PhysicalPlan lastDataQueryReqToPhysicalPlan(org.apache.iotdb.service.rpc.thrift.TSLastDataQueryReq lastDataQueryReq, java.time.ZoneId zoneId, org.apache.iotdb.commons.conf.IoTDBConstant.ClientVersion clientVersion) throws QueryProcessException, org.apache.iotdb.commons.exception.IllegalPathException
convert last data query to physical plan directly- Throws:
QueryProcessExceptionorg.apache.iotdb.commons.exception.IllegalPathException
-
parseSQLToRestQueryPlan
public PhysicalPlan parseSQLToRestQueryPlan(java.lang.String sqlStr, java.time.ZoneId zoneId) throws QueryProcessException
- Throws:
QueryProcessException
-
parseSQLToGrafanaQueryPlan
public PhysicalPlan parseSQLToGrafanaQueryPlan(java.lang.String sqlStr, java.time.ZoneId zoneId) throws QueryProcessException
- Throws:
QueryProcessException
-
operatorToPhysicalPlan
public PhysicalPlan operatorToPhysicalPlan(Operator operator) throws QueryProcessException
- Throws:
QueryProcessException
-
generatePhysicalPlanFromOperator
protected PhysicalPlan generatePhysicalPlanFromOperator(Operator operator) throws QueryProcessException
- Throws:
QueryProcessException
-
logicalOptimize
protected Operator logicalOptimize(Operator operator) throws LogicalOperatorException, PathNumOverLimitException
given an unoptimized logical operator tree and return a optimized result.- Parameters:
operator- unoptimized logical operator- Returns:
- optimized logical operator
- Throws:
LogicalOptimizeException- exception in logical optimizingLogicalOperatorExceptionPathNumOverLimitException
-
-