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

Method createContext

server/src/main/java/io/crate/planner/Planner.java:223–245  ·  view source on GitHub ↗
(RoutingProvider routingProvider,
                                        UUID jobId,
                                        CoordinatorTxnCtx txnCtx,
                                        int fetchSize,
                                        @Nullable Row params,
                                        Cursors cursors,
                                        TransactionState transactionState,
                                        Session.TimeoutToken timeoutToken)

Source from the content-addressed store, hash-verified

221 }
222
223 public PlannerContext createContext(RoutingProvider routingProvider,
224 UUID jobId,
225 CoordinatorTxnCtx txnCtx,
226 int fetchSize,
227 @Nullable Row params,
228 Cursors cursors,
229 TransactionState transactionState,
230 Session.TimeoutToken timeoutToken) {
231 return new PlannerContext(
232 clusterService.state(),
233 routingProvider,
234 jobId,
235 txnCtx,
236 nodeCtx,
237 fetchSize,
238 params,
239 cursors,
240 transactionState,
241 new PlanStats(nodeCtx, txnCtx, nodeCtx.tableStats()),
242 this.logicalPlanner::optimize,
243 timeoutToken
244 );
245 }
246
247 private void initAwarenessAttributes(Settings settings) {
248 awarenessAttributes =

Callers 11

planMethod · 0.95
getPlannerContextMethod · 0.45
planInternalMethod · 0.45
addForeignTableMethod · 0.45
quickExecMethod · 0.45
retryQueryMethod · 0.45
bulkExecMethod · 0.45
singleExecMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls 2

stateMethod · 0.65
tableStatsMethod · 0.45

Tested by 6

planMethod · 0.76
getPlannerContextMethod · 0.36
planInternalMethod · 0.36
addForeignTableMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36