Package org.apache.iotdb.db.qp.physical
Interface BatchPlan
-
- All Known Implementing Classes:
CreateMultiTimeSeriesPlan,InsertMultiTabletsPlan,InsertRowsOfOneDevicePlan,InsertRowsPlan
public interface BatchPlanBatchPlan contains multiple sub-plans.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBatchSize()Return how many sub-plans are in the planjava.util.List<org.apache.iotdb.commons.path.PartialPath>getPrefixPaths()Return prefix paths of all sub-plansjava.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus>getResults()Return execution status for each pathbooleanisExecuted(int i)Whether the sub-plan at position i has been executed.voidsetIsExecuted(int i)Mark the sub-plan at position i as executed.voidunsetIsExecuted(int i)Mark the sub-plan at position i as not executed.
-
-
-
Method Detail
-
setIsExecuted
void setIsExecuted(int i)
Mark the sub-plan at position i as executed.- Parameters:
i- the position of the sub-plan
-
unsetIsExecuted
void unsetIsExecuted(int i)
Mark the sub-plan at position i as not executed.- Parameters:
i- the position of the sub-plan
-
isExecuted
boolean isExecuted(int i)
Whether the sub-plan at position i has been executed.- Parameters:
i- the position of the sub-plan- Returns:
- whether the sub-plan at position i has been executed.
-
getBatchSize
int getBatchSize()
Return how many sub-plans are in the plan- Returns:
- how many sub-plans are in the plan.
-
getResults
java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus> getResults()
Return execution status for each path- Returns:
- execution status for each path
-
getPrefixPaths
java.util.List<org.apache.iotdb.commons.path.PartialPath> getPrefixPaths()
Return prefix paths of all sub-plans- Returns:
- prefix paths of all sub-plans
-
-