MCPcopy Create free account
hub / github.com/crate/crate / NoopPlan

Class NoopPlan

server/src/main/java/io/crate/planner/NoopPlan.java:34–53  ·  view source on GitHub ↗

A plan with an empty result

Source from the content-addressed store, hash-verified

32 * A plan with an empty result
33 */
34public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected