Package org.apache.iotdb.db.qp.executor
Interface IPlanExecutor
-
- All Known Implementing Classes:
PlanExecutor
public interface IPlanExecutor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(org.apache.iotdb.commons.path.PartialPath path, long startTime, long endTime, long planIndex, DataRegion.TimePartitionFilter partitionFilter)execute delete command and return whether the operator is successful.voiddelete(DeletePlan deletePlan)execute delete command and return whether the operator is successful.voidinsert(InsertRowPlan insertRowPlan)execute insert command and return whether the operator is successful.voidinsert(InsertRowsOfOneDevicePlan insertRowsOfOneDevicePlan)execute insert command and return whether the operator is successful.voidinsert(InsertRowsPlan insertRowsPlan)execute insert command and return whether the operator is successful.voidinsertTablet(InsertMultiTabletsPlan insertMultiTabletsPlan)execute multi batch insert planvoidinsertTablet(InsertTabletPlan insertTabletPlan)execute batch insert planbooleanprocessNonQuery(PhysicalPlan plan)Process Non-Query Physical plan, including insert/update/delete operation of data/metadata/Privilegeorg.apache.iotdb.tsfile.read.query.dataset.QueryDataSetprocessQuery(PhysicalPlan queryPlan, QueryContext context)process query plan of qp layer, construct queryDataSet.voidupdate(org.apache.iotdb.commons.path.PartialPath path, long startTime, long endTime, java.lang.String value)execute update command and return whether the operator is successful.
-
-
-
Method Detail
-
processQuery
org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet processQuery(PhysicalPlan queryPlan, QueryContext context) throws java.io.IOException, StorageEngineException, org.apache.iotdb.tsfile.exception.filter.QueryFilterOptimizationException, QueryProcessException, org.apache.iotdb.commons.exception.MetadataException, java.sql.SQLException, org.apache.thrift.TException, java.lang.InterruptedException
process query plan of qp layer, construct queryDataSet.- Parameters:
queryPlan- QueryPlan- Returns:
- QueryDataSet
- Throws:
java.io.IOExceptionStorageEngineExceptionorg.apache.iotdb.tsfile.exception.filter.QueryFilterOptimizationExceptionQueryProcessExceptionorg.apache.iotdb.commons.exception.MetadataExceptionjava.sql.SQLExceptionorg.apache.thrift.TExceptionjava.lang.InterruptedException
-
processNonQuery
boolean processNonQuery(PhysicalPlan plan) throws QueryProcessException, StorageGroupNotSetException, StorageEngineException
Process Non-Query Physical plan, including insert/update/delete operation of data/metadata/Privilege- Parameters:
plan- Physical Non-Query Plan- Throws:
QueryProcessExceptionStorageGroupNotSetExceptionStorageEngineException
-
update
void update(org.apache.iotdb.commons.path.PartialPath path, long startTime, long endTime, java.lang.String value) throws QueryProcessExceptionexecute update command and return whether the operator is successful.- Parameters:
path- : update series seriesPathstartTime- start time in update commandendTime- end time in update commandvalue- - in type of string- Throws:
QueryProcessException
-
delete
void delete(DeletePlan deletePlan) throws QueryProcessException
execute delete command and return whether the operator is successful.- Parameters:
deletePlan- physical delete plan- Throws:
QueryProcessException
-
delete
void delete(org.apache.iotdb.commons.path.PartialPath path, long startTime, long endTime, long planIndex, DataRegion.TimePartitionFilter partitionFilter) throws QueryProcessExceptionexecute delete command and return whether the operator is successful.- Parameters:
path- delete series seriesPathstartTime- start time in delete commandendTime- end time in delete commandplanIndex- index of the deletion planpartitionFilter- specify involving time partitions, if null, all partitions are involved- Throws:
QueryProcessException
-
insert
void insert(InsertRowPlan insertRowPlan) throws QueryProcessException
execute insert command and return whether the operator is successful.- Parameters:
insertRowPlan- physical insert plan- Throws:
QueryProcessException
-
insert
void insert(InsertRowsPlan insertRowsPlan) throws QueryProcessException
execute insert command and return whether the operator is successful.- Parameters:
insertRowsPlan- physical insert rows plan, which contains multi insertRowPlans- Throws:
QueryProcessException
-
insert
void insert(InsertRowsOfOneDevicePlan insertRowsOfOneDevicePlan) throws QueryProcessException
execute insert command and return whether the operator is successful.- Parameters:
insertRowsOfOneDevicePlan- physical insert plan- Throws:
QueryProcessException
-
insertTablet
void insertTablet(InsertTabletPlan insertTabletPlan) throws QueryProcessException
execute batch insert plan- Throws:
BatchProcessException- when some of the rows failedQueryProcessException
-
insertTablet
void insertTablet(InsertMultiTabletsPlan insertMultiTabletsPlan) throws QueryProcessException
execute multi batch insert plan- Throws:
QueryProcessException- when some of the rows failed
-
-