A plan with an empty result
| 32 | * A plan with an empty result |
| 33 | */ |
| 34 | public final class NoopPlan implements Plan { |
| 35 | |
| 36 | public static final Plan INSTANCE = new NoopPlan(); |
| 37 | |
| 38 | private NoopPlan() {} |
| 39 | |
| 40 | @Override |
| 41 | public StatementType type() { |
| 42 | return StatementType.UNDEFINED; |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public void executeOrFail(DependencyCarrier dependencyCarrier, |
| 47 | PlannerContext plannerContext, |
| 48 | RowConsumer consumer, |
| 49 | Row params, |
| 50 | SubQueryResults subQueryResults) { |
| 51 | consumer.accept(InMemoryBatchIterator.empty(SENTINEL), null); |
| 52 | } |
| 53 | } |
nothing calls this directly
no outgoing calls
no test coverage detected