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

Method IsAvailableForRead

be/src/runtime/tuple-cache-mgr.cc:404–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404bool TupleCacheMgr::IsAvailableForRead(UniqueHandle& handle) const {
405 if (!handle || !handle->cache_handle) return false;
406 TupleCacheState state = GetState(handle.get());
407 return TupleCacheState::COMPLETE_UNSYNCED == state ||
408 TupleCacheState::COMPLETE == state;
409}
410
411bool TupleCacheMgr::IsAvailableForWrite(UniqueHandle& handle) const {
412 if (!handle || !handle->cache_handle) return false;

Callers 2

OpenMethod · 0.80
TEST_FFunction · 0.80

Calls 1

getMethod · 0.65

Tested by 1

TEST_FFunction · 0.64