127 CTime SLazyInitData::GetTime<eNFL_FileTrack>()
131 const string ctime_string = ctime.
AsString();
152 CTime SLazyInitData::GetTime<eNFL_NetCache>()
154 const char*
const kNCTimeFormat =
"M/D/Y h:m:s.r";
158 return CTime(ctime.AsString(), kNCTimeFormat);
187 time = GetTime<eNFL_FileTrack>();
189 time = GetTime<eNFL_NetCache>();
205 const char*
const kOutputTimeFormat =
"M/D/Y h:m:s";
211 GetTime<eNFL_NetCache>().AsString(kOutputTimeFormat)));
217 GetTime<eNFL_FileTrack>().AsString(kOutputTimeFormat)));
241 file_size, storage_specific_info));
252 return m_Impl->GetLocation();
257 return m_Impl->GetObjectLocInfo();
262 return m_Impl->GetCreationTime();
272 return m_Impl->GetStorageSpecificInfo();
void DeleteByKey(const string &key)
Delete an element referred to by the specified key from a JSON object.
void SetString(const string &key, const string &value)
Set a JSON object element to the specified string value.
const string AsString() const
Provided that this is a string node, return the string value of this node.
string GetString(const string &key) const
For a JSON object node, return the string referred to by the specified key.
void SetInteger(const string &key, Int8 value)
Set a JSON object element to the specified integer value.
void SetByKey(const string &key, CJsonNode::TInstance value)
For a JSON object node, insert a new element or update an existing element.
static CJsonNode NewStringNode(const string &value)
Create a new JSON string node.
static CJsonNode NewObjectNode()
Create a new JSON object node.
CJsonNode GetByKey(const string &key) const
For a JSON object node, return the value associated with the specified key.
CJsonNode GetByKeyOrNull(const string &key) const
For a JSON object node, return the value associated with the specified key.
Detailed information about a CNetStorage object.
void ToJSON(CJsonNode &root) const
static const char si[8][64]
static const char location[]
TErrCode GetErrCode(void) const
Uint8 GetSize() const
Return object size in bytes.
CJsonNode GetObjectLocInfo() const
Return a JSON object containing the fields of the object ID.
CNetRef< SNetStorageObjectInfoImpl > m_Impl
ENetStorageObjectLocation
Enumeration that indicates the current location of the object.
CJsonNode ToJSON()
Pack the whole structure in a single JSON object.
ENetStorageObjectLocation GetLocation() const
Return a ENetStorageObjectLocation constant that corresponds to the storage back-end where the object...
CJsonNode GetStorageSpecificInfo() const
Return a JSON object containing storage-specific information about the object.
CTime GetCreationTime() const
Return object creation time reported by the storage back-end.
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CTime & ToLocalTime(void)
Convert the time into local time.
string AsString(const CTimeFormat &format=kEmptyStr, TSeconds out_tz=eCurrentTimeZone) const
Transform time to string.
@ eFormat
Incorrect format.
const struct ncbi::grid::netcache::search::fields::SIZE size
ENetStorageObjectLocation TLocation
CNetStorageObjectInfo g_CreateNetStorageObjectInfo(const string &object_loc, ENetStorageObjectLocation location, const CNetStorageObjectLoc *object_loc_struct, Uint8 file_size, CJsonNode::TInstance storage_specific_info)
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
CJsonNode object_loc_info
SData(TLocation l, const string &ol, CJsonNode::TInstance li, Uint8 fs, CJsonNode::TInstance si)
SLazyInitData(const SData &d)
SLazyInitData(const CJsonNode &j)
TLocation GetLocation() const
CTime GetCreationTime() const
CJsonNode GetObjectLocInfo() const
SNetStorageObjectInfoImpl(const SLazyInitData &data)
CJsonNode GetJSON() const
CJsonNode GetStorageSpecificInfo() const