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

Method Set

be/src/runtime/io/handle-cache.inline.h:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void FileHandleCache::Accessor::Set(
71 FileHandleCachePartition::CacheType::Accessor&& cache_accessor) {
72 // No change if it was empty before
73 if (cache_accessor_.Get()) {
74 ImpaladMetrics::IO_MGR_NUM_FILE_HANDLES_OUTSTANDING->Increment(-1L);
75 }
76
77 cache_accessor_ = std::move(cache_accessor);
78
79 // No change if it has received an empty accessor
80 if (cache_accessor_.Get()) {
81 ImpaladMetrics::IO_MGR_NUM_FILE_HANDLES_OUTSTANDING->Increment(1L);
82 }
83}
84
85CachedHdfsFileHandle* FileHandleCache::Accessor::Get() {
86 return cache_accessor_.Get();

Callers 11

RunRunnableMethod · 0.45
InitMethod · 0.45
InstanceStatsMethod · 0.45
UpdateExecStatsMethod · 0.45
ExecMethod · 0.45
GetStatusReportMethod · 0.45
~KrpcDataStreamMgrMethod · 0.45
~FileHandleCacheMethod · 0.45
GetFileHandleMethod · 0.45

Calls 3

moveFunction · 0.85
GetMethod · 0.45
IncrementMethod · 0.45

Tested by

no test coverage detected