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

Method addProjection

server/src/main/java/io/crate/planner/Merge.java:138–148  ·  view source on GitHub ↗
(List<Projection> projections, @Nullable Projection projection)

Source from the content-addressed store, hash-verified

136 }
137
138 private static List<Projection> addProjection(List<Projection> projections, @Nullable Projection projection) {
139 if (projection == null) {
140 return projections;
141 }
142 if (projections.isEmpty()) {
143 return Collections.singletonList(projection);
144 } else {
145 projections.add(projection);
146 return projections;
147 }
148 }
149
150 public static ExecutionPlan ensureOnHandler(ExecutionPlan subExecutionPlan, PlannerContext plannerContext) {
151 return ensureOnHandler(subExecutionPlan, plannerContext, Collections.emptyList());

Callers 1

ensureOnHandlerMethod · 0.95

Calls 5

addMethod · 0.65
addProjectionMethod · 0.65
sizeMethod · 0.65
outputsMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected