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

Method GetLimit

be/src/runtime/mem-tracker.h:283–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 bool has_limit() const { return limit_ >= 0; }
282 int64_t soft_limit() const { return soft_limit_; }
283 int64_t GetLimit(MemLimit mode) const {
284 if (mode == MemLimit::SOFT) return soft_limit();
285 DCHECK_ENUM_EQ(mode, MemLimit::HARD);
286 return limit();
287 }
288 const std::string& label() const { return label_; }
289
290 /// Returns the lowest limit for this tracker and its ancestors. Returns

Callers 4

TESTFunction · 0.80
TryConsumeMethod · 0.80
GetLowestLimitMethod · 0.80
SpareCapacityMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64