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

Function GetLastModificationTime

be/src/util/hdfs-util.cc:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69Status GetLastModificationTime(const hdfsFS& connection, const char* filename,
70 time_t* last_mod_time) {
71 hdfsFileInfo* info = hdfsGetPathInfo(connection, filename);
72 if (info == NULL) return Status(GetHdfsErrorMsg("Failed to get file info ", filename));
73 *last_mod_time = info->mLastMod;
74 hdfsFreeFileInfo(info, 1);
75 return Status::OK();
76}
77
78bool IsHiddenFile(const string& filename) {
79 return !filename.empty() && (filename[0] == '.' || filename[0] == '_');

Callers 2

RefreshCacheEntryMethod · 0.85
LoadCacheEntryMethod · 0.85

Calls 3

GetHdfsErrorMsgFunction · 0.85
OKFunction · 0.85
StatusClass · 0.70

Tested by

no test coverage detected