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

Method ReachedLimitShared

be/src/exec/exec-node.h:341–348  ·  view source on GitHub ↗

Returns true if a valid limit is set and number of rows returned by this node has exceeded the limit. Thread safe version of ReachedLimit().

Source from the content-addressed store, hash-verified

339 /// Returns true if a valid limit is set and number of rows returned by this node has
340 /// exceeded the limit. Thread safe version of ReachedLimit().
341 bool ReachedLimitShared() {
342 // Ideally this function should only be called when num_rows_returned_ is shared by
343 // multiple threads. Both the HdfsScanNodeMt and KuduScanNodeMt call this function
344 // from the scanner code-path for simplicity.
345 DCHECK(
346 getExecutionModel() == NON_TASK_BASED_SYNC || getExecutionModel() == TASK_BASED);
347 return limit_ != -1 && base::subtle::Acquire_Load(&num_rows_returned_) >= limit_;
348 }
349
350 RuntimeProfile* runtime_profile() { return runtime_profile_; }
351 MemTracker* mem_tracker() { return mem_tracker_.get(); }

Callers 15

ProcessSplitMethod · 0.80
GetNextMethod · 0.80
ProcessRangeMethod · 0.80
ProcessRangeMethod · 0.80
ProcessSplitMethod · 0.80
AssembleCollectionMethod · 0.80
GetNextInternalMethod · 0.80
ProcessSplitMethod · 0.80
AssembleRowsMethod · 0.80
AssembleCollectionMethod · 0.80

Calls 1

Acquire_LoadFunction · 0.50

Tested by

no test coverage detected