Package org.apache.iotdb.db.mpp.plan
Class Coordinator
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.Coordinator
-
public class Coordinator extends java.lang.ObjectThe coordinator for MPP. It manages all the queries which are executed in current Node. And it will be responsible for the lifecycle of a query. A query request will be represented as a QueryExecution.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryIdcreateQueryId()ExecutionResultexecute(Statement statement, long queryId, SessionInfo session, java.lang.String sql, IPartitionFetcher partitionFetcher, ISchemaFetcher schemaFetcher)This method is called by the write method.ExecutionResultexecute(Statement statement, long queryId, SessionInfo session, java.lang.String sql, IPartitionFetcher partitionFetcher, ISchemaFetcher schemaFetcher, long timeOut)static CoordinatorgetInstance()IQueryExecutiongetQueryExecution(java.lang.Long queryId)voidremoveQueryExecution(java.lang.Long queryId)
-
-
-
Method Detail
-
execute
public ExecutionResult execute(Statement statement, long queryId, SessionInfo session, java.lang.String sql, IPartitionFetcher partitionFetcher, ISchemaFetcher schemaFetcher, long timeOut)
-
execute
public ExecutionResult execute(Statement statement, long queryId, SessionInfo session, java.lang.String sql, IPartitionFetcher partitionFetcher, ISchemaFetcher schemaFetcher)
This method is called by the write method. So it does not set the timeout parameter.
-
getQueryExecution
public IQueryExecution getQueryExecution(java.lang.Long queryId)
-
removeQueryExecution
public void removeQueryExecution(java.lang.Long queryId)
-
createQueryId
public QueryId createQueryId()
-
getInstance
public static Coordinator getInstance()
-
-