NCBI C++ ToolKit
|
Search Toolkit Book for CBlobRecord
#include <objtools/pubseq_gateway/impl/cassandra/blob_record.hpp>
Public Types | |
using | TSatKey = int32_t |
using | TSize = int64_t |
using | TTimestamp = int64_t |
using | TBlobChunk = vector< unsigned char > |
Private Member Functions | |
CBlobRecord & | SetFlag (bool set_flag, EBlobFlags flag_value) |
Definition at line 52 of file blob_record.hpp.
using CBlobRecord::TBlobChunk = vector<unsigned char> |
Definition at line 57 of file blob_record.hpp.
using CBlobRecord::TSatKey = int32_t |
Definition at line 54 of file blob_record.hpp.
using CBlobRecord::TSize = int64_t |
Definition at line 55 of file blob_record.hpp.
using CBlobRecord::TTimestamp = int64_t |
Definition at line 56 of file blob_record.hpp.
CBlobRecord::CBlobRecord | ( | ) |
Definition at line 45 of file blob_record.cpp.
|
explicit |
|
default |
|
default |
CBlobRecord & CBlobRecord::AppendBlobChunk | ( | TBlobChunk && | chunk | ) |
Definition at line 206 of file blob_record.cpp.
References m_BlobChunks.
CBlobRecord & CBlobRecord::ClearBlobChunks | ( | ) |
Definition at line 225 of file blob_record.cpp.
References m_BlobChunks.
const CBlobRecord::TBlobChunk & CBlobRecord::GetChunk | ( | size_t | index | ) | const |
Definition at line 382 of file blob_record.cpp.
References m_BlobChunks, m_NChunks, m_SatKey, NStr::NumericToString(), and RAISE_DB_ERROR.
int16_t CBlobRecord::GetClass | ( | void | ) | const |
CBlobRecord::TTimestamp CBlobRecord::GetDateAsn1 | ( | ) | const |
Definition at line 342 of file blob_record.cpp.
References m_DateAsn1.
Referenced by ToJsonString().
string CBlobRecord::GetDiv | ( | void | ) | const |
bool CBlobRecord::GetFlag | ( | EBlobFlags | flag_value | ) | const |
Definition at line 308 of file blob_record.cpp.
References m_Flags.
Referenced by GetBioseqChunks(), CCassBlobTaskLoadBlob::InitBlobChunkDataQuery(), CPSGS_CassBlobBase::OnGetBlobProp(), ToString(), CPSGS_CassBlobBase::x_IsAuthorized(), and CPSGS_CassBlobBase::x_PrepareBlobPropData().
TBlobFlagBase CBlobRecord::GetFlags | ( | void | ) | const |
CBlobRecord::TTimestamp CBlobRecord::GetHupDate | ( | ) | const |
string CBlobRecord::GetId2Info | ( | ) | const |
Definition at line 357 of file blob_record.cpp.
References m_Id2Info.
Referenced by CPSGS_CassBlobBase::OnGetBlobProp(), ToJsonString(), CPSGS_CassBlobBase::x_CheckId2Info(), CPSGS_CassBlobBase::x_OnBlobPropSlimTSE(), CPSGS_CassBlobBase::x_OnBlobPropSmartTSE(), and CPSGS_CassBlobBase::x_OnBlobPropWholeTSE().
CBlobRecord::TSatKey CBlobRecord::GetKey | ( | void | ) | const |
Definition at line 317 of file blob_record.cpp.
References m_SatKey.
Referenced by CCassBlobTaskLoadBlob::InitBlobChunkDataQuery(), and ToJsonString().
CBlobRecord::TTimestamp CBlobRecord::GetModified | ( | ) | const |
Definition at line 322 of file blob_record.cpp.
References m_Modified.
Referenced by CCassBlobTaskLoadBlob::InitBlobChunkDataQuery(), CPSGS_CassBlobBase::OnGetBlobProp(), ToJsonString(), and CPSGS_CassBlobBase::x_RequestOriginalBlobChunks().
|
inline |
int32_t CBlobRecord::GetOwner | ( | void | ) | const |
CBlobRecord::TSize CBlobRecord::GetSize | ( | void | ) | const |
Definition at line 327 of file blob_record.cpp.
References m_Size.
Referenced by CPSGS_AnnotProcessor::OnAnnotBlobProp(), ToJsonString(), CPSGS_CassBlobBase::x_OnBlobPropSlimTSE(), and CPSGS_CassBlobBase::x_OnBlobPropSmartTSE().
CBlobRecord::TSize CBlobRecord::GetSizeUnpacked | ( | ) | const |
Definition at line 332 of file blob_record.cpp.
References m_SizeUnpacked.
Referenced by ToJsonString().
string CBlobRecord::GetUserName | ( | void | ) | const |
Definition at line 367 of file blob_record.cpp.
References m_UserName.
Referenced by ToJsonString().
CBlobRecord & CBlobRecord::InsertBlobChunk | ( | size_t | index, |
TBlobChunk && | chunk | ||
) |
Definition at line 214 of file blob_record.cpp.
References m_BlobChunks.
bool CBlobRecord::IsConfidential | ( | ) | const |
Definition at line 373 of file blob_record.cpp.
References m_HupDate.
Referenced by CPSGS_CassBlobBase::x_IsAuthorized().
bool CBlobRecord::IsDataEqual | ( | CBlobRecord const & | blob | ) | const |
Definition at line 258 of file blob_record.cpp.
References data, m_BlobChunks, min(), and ncbi::grid::netcache::search::fields::size.
bool CBlobRecord::NoData | ( | ) | const |
Definition at line 231 of file blob_record.cpp.
References m_BlobChunks, and m_Size.
|
default |
|
default |
CBlobRecord & CBlobRecord::ResetNChunks | ( | ) |
Definition at line 152 of file blob_record.cpp.
References m_BlobChunks, and m_NChunks.
CBlobRecord & CBlobRecord::SetBigBlobSchema | ( | bool | value | ) |
Definition at line 200 of file blob_record.cpp.
References eBigBlobSchema, SetFlag(), and rapidjson::value.
CBlobRecord & CBlobRecord::SetClass | ( | int16_t | value | ) |
Definition at line 164 of file blob_record.cpp.
References m_Class, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetDateAsn1 | ( | TTimestamp | value | ) |
Definition at line 94 of file blob_record.cpp.
References m_DateAsn1, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetDead | ( | bool | value | ) |
Definition at line 194 of file blob_record.cpp.
References eDead, SetFlag(), and rapidjson::value.
Referenced by s_SetBlobState().
CBlobRecord & CBlobRecord::SetDiv | ( | string | value | ) |
Definition at line 107 of file blob_record.cpp.
References m_Div, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
|
private |
Definition at line 299 of file blob_record.cpp.
References m_Flags.
Referenced by SetBigBlobSchema(), SetDead(), SetGzip(), SetNot4Gbu(), SetSuppress(), and SetWithdrawn().
CBlobRecord & CBlobRecord::SetFlags | ( | TBlobFlagBase | value | ) |
Definition at line 76 of file blob_record.cpp.
References m_Flags, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetGzip | ( | bool | value | ) |
Definition at line 170 of file blob_record.cpp.
References eGzip, SetFlag(), and rapidjson::value.
Referenced by s_SetBlobDataProps().
CBlobRecord & CBlobRecord::SetHupDate | ( | TTimestamp | value | ) |
Definition at line 100 of file blob_record.cpp.
References m_HupDate, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetId2Info | ( | int16_t | sat, |
int32_t | info, | ||
int32_t | chunks, | ||
int32_t | version = 0 |
||
) |
Definition at line 119 of file blob_record.cpp.
References info, m_Id2Info, and dtl::version.
CBlobRecord & CBlobRecord::SetId2Info | ( | string const & | value | ) |
Definition at line 113 of file blob_record.cpp.
References m_Id2Info, and rapidjson::value.
Referenced by CPSGS_CassBlobBase::x_CheckId2Info(), CPubseqGatewayCacheBlobProp::x_ExtractRecord(), CPSGS_SNPProcessor::x_SendSplitInfo(), and CPSGS_WGSProcessor::x_SendSplitInfo().
CBlobRecord & CBlobRecord::SetKey | ( | TSatKey | value | ) |
Definition at line 64 of file blob_record.cpp.
References m_SatKey, and rapidjson::value.
CBlobRecord & CBlobRecord::SetModified | ( | TTimestamp | value | ) |
Definition at line 70 of file blob_record.cpp.
References m_Modified, and rapidjson::value.
Referenced by s_SetBlobVersion(), and CPSGS_CDDProcessor::x_SendAnnot().
CBlobRecord & CBlobRecord::SetNChunks | ( | int32_t | value | ) |
Definition at line 146 of file blob_record.cpp.
References m_NChunks, and rapidjson::value.
Referenced by s_SetBlobDataProps(), CPubseqGatewayCacheBlobProp::x_ExtractRecord(), and CPSGS_CDDProcessor::x_SendAnnot().
CBlobRecord & CBlobRecord::SetNot4Gbu | ( | bool | value | ) |
Definition at line 176 of file blob_record.cpp.
References eNot4Gbu, SetFlag(), and rapidjson::value.
CBlobRecord & CBlobRecord::SetOwner | ( | int32_t | value | ) |
Definition at line 158 of file blob_record.cpp.
References m_Owner, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetSize | ( | TSize | value | ) |
Definition at line 82 of file blob_record.cpp.
References m_Size, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetSizeUnpacked | ( | TSize | value | ) |
Definition at line 88 of file blob_record.cpp.
References m_SizeUnpacked, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetSuppress | ( | bool | value | ) |
Definition at line 182 of file blob_record.cpp.
References eSuppress, SetFlag(), and rapidjson::value.
Referenced by s_SetBlobState().
CBlobRecord & CBlobRecord::SetUserName | ( | string | value | ) |
Definition at line 140 of file blob_record.cpp.
References m_UserName, and rapidjson::value.
Referenced by CPubseqGatewayCacheBlobProp::x_ExtractRecord().
CBlobRecord & CBlobRecord::SetWithdrawn | ( | bool | value | ) |
Definition at line 188 of file blob_record.cpp.
References eWithdrawn, SetFlag(), and rapidjson::value.
Referenced by s_SetBlobState().
string CBlobRecord::ToString | ( | void | ) | const |
Definition at line 394 of file blob_record.cpp.
References eDead, eGzip, eNot4Gbu, eSuppress, eWithdrawn, GetFlag(), m_Class, m_DateAsn1, m_Div, m_Flags, m_HupDate, m_Id2Info, m_Modified, m_NChunks, m_Owner, m_SatKey, m_Size, m_SizeUnpacked, m_UserName, and TimeTmsToString().
void CBlobRecord::VerifyBlobSize | ( | ) | const |
Definition at line 236 of file blob_record.cpp.
References m_BlobChunks, m_NChunks, m_SatKey, m_Size, NStr::NumericToString(), and RAISE_DB_ERROR.
|
private |
Definition at line 156 of file blob_record.hpp.
Referenced by AppendBlobChunk(), ClearBlobChunks(), GetChunk(), InsertBlobChunk(), IsDataEqual(), NoData(), ResetNChunks(), and VerifyBlobSize().
|
private |
Definition at line 154 of file blob_record.hpp.
Referenced by GetClass(), SetClass(), and ToString().
|
private |
Definition at line 143 of file blob_record.hpp.
Referenced by GetDateAsn1(), SetDateAsn1(), and ToString().
|
private |
Definition at line 146 of file blob_record.hpp.
Referenced by GetDiv(), SetDiv(), and ToString().
|
private |
Definition at line 140 of file blob_record.hpp.
Referenced by GetFlag(), GetFlags(), SetFlag(), SetFlags(), and ToString().
|
private |
Definition at line 144 of file blob_record.hpp.
Referenced by GetHupDate(), IsConfidential(), SetHupDate(), and ToString().
|
private |
Definition at line 147 of file blob_record.hpp.
Referenced by GetId2Info(), SetId2Info(), and ToString().
|
private |
Definition at line 139 of file blob_record.hpp.
Referenced by GetModified(), SetModified(), and ToString().
|
private |
Definition at line 151 of file blob_record.hpp.
Referenced by GetChunk(), GetNChunks(), ResetNChunks(), SetNChunks(), ToString(), and VerifyBlobSize().
|
private |
Definition at line 152 of file blob_record.hpp.
Referenced by GetOwner(), SetOwner(), and ToString().
|
private |
Definition at line 150 of file blob_record.hpp.
Referenced by GetChunk(), GetKey(), SetKey(), ToString(), and VerifyBlobSize().
|
private |
Definition at line 141 of file blob_record.hpp.
Referenced by GetSize(), NoData(), SetSize(), ToString(), and VerifyBlobSize().
|
private |
Definition at line 142 of file blob_record.hpp.
Referenced by GetSizeUnpacked(), SetSizeUnpacked(), and ToString().
|
private |
Definition at line 148 of file blob_record.hpp.
Referenced by GetUserName(), SetUserName(), and ToString().