MCPcopy Create free account
hub / github.com/apache/impala / register

Method register

fe/src/main/java/org/apache/impala/service/Canceller.java:74–80  ·  view source on GitHub ↗

Associates the current thread with queryId.

(TUniqueId queryId)

Source from the content-addressed store, hash-verified

72 * Associates the current thread with queryId.
73 */
74 public static Registration register(TUniqueId queryId) {
75 if (queryId == null) return null;
76 LOG.trace("register {}", PrintId(queryId));
77 cancelled_.set(new AtomicBoolean(false));
78 queryThreads_.put(queryId, new Pair<>(Thread.currentThread(), cancelled_.get()));
79 return new Registration(queryId);
80 }
81
82 /**
83 * Cancels thread associated with queryId.

Callers 2

createExecRequestMethod · 0.95
addGaugeMethod · 0.45

Calls 5

putMethod · 0.65
getMethod · 0.65
traceMethod · 0.45
PrintIdMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected