1 #ifndef CASS_FETCH__HPP
2 #define CASS_FETCH__HPP
61 m_FinishedRead(
false),
65 m_ExcludeBlobCacheUpdated(
false)
70 m_FinishedRead(
false),
74 m_ClientId(client_id),
76 m_ExcludeBlobCacheUpdated(
false)
80 { RemoveFromExcludeBlobCache(); }
87 {
return m_Loader.get(); }
90 { m_FinishedRead =
true; }
93 {
return m_FetchType; }
96 {
return m_FinishedRead; }
105 {
return m_Canceled; }
128 {
return m_ClientId; }
130 void RemoveFromExcludeBlobCache(
void);
135 { m_ExcludeBlobCacheUpdated =
value; }
137 void SetExcludeBlobCacheCompleted(
void);
186 for (
const string & name : m_Names) {
191 return "CCassNamedAnnotFetch. Keyspace: " + m_Keyspace +
" Names: " +
names;
199 m_Loader.reset(fetch);
206 virtual void ResetCallbacks(
void);
230 return "CCassAccVerHistoryFetch";
235 { m_Loader.reset(fetch); }
241 virtual void ResetCallbacks(
void);
251 m_TSEOption(blob_request.m_TSEOption),
252 m_BlobPropSent(
false),
253 m_UserProvidedBlobId(
false),
254 m_TotalSentBlobChunks(0),
256 m_BlobChunkItemId(0),
257 m_NeedAddId2ChunkId2Info(
false)
265 m_TSEOption(blob_request.m_TSEOption),
266 m_BlobPropSent(
false),
267 m_UserProvidedBlobId(
true),
268 m_TotalSentBlobChunks(0),
270 m_BlobChunkItemId(0),
271 m_NeedAddId2ChunkId2Info(
false)
279 m_TSEOption(blob_request.m_TSEOption),
280 m_BlobPropSent(
false),
281 m_UserProvidedBlobId(
true),
282 m_TotalSentBlobChunks(0),
284 m_BlobChunkItemId(0),
285 m_NeedAddId2ChunkId2Info(
false)
294 return "CCassBlobFetch; BlobId: " + m_BlobId.ToString() +
295 " BlobPropSent: " + to_string(m_BlobPropSent) +
296 " TotalSentBlobChunks: " + to_string(m_TotalSentBlobChunks);
308 m_BlobPropSent(
false),
309 m_UserProvidedBlobId(
false),
310 m_TotalSentBlobChunks(0),
312 m_BlobChunkItemId(0),
313 m_NeedAddId2ChunkId2Info(
false)
320 m_BlobPropSent(
false),
321 m_UserProvidedBlobId(
true),
322 m_TotalSentBlobChunks(0),
324 m_BlobChunkItemId(0),
325 m_NeedAddId2ChunkId2Info(
false)
336 {
return m_TSEOption; }
339 {
return m_UserProvidedBlobId; }
342 {
return m_TotalSentBlobChunks; }
345 { ++m_TotalSentBlobChunks; }
348 { m_TotalSentBlobChunks = 0; }
351 { m_BlobPropSent =
true; }
356 {
return !m_BlobPropSent; }
359 { m_NeedAddId2ChunkId2Info =
val; }
362 {
return m_NeedAddId2ChunkId2Info; }
365 { m_Loader.reset(fetch); }
374 virtual void ResetCallbacks(
void);
413 return "CCassBioseqInfoFetch";
418 { m_Loader.reset(fetch); }
424 virtual void ResetCallbacks(
void);
441 return "CCassSi2csiFetch";
446 { m_Loader.reset(fetch); }
452 virtual void ResetCallbacks(
void);
463 m_Chunk(chunk_request.m_Id2Chunk),
464 m_SplitVersion(split_version),
465 m_UseCache(chunk_request.m_UseCache)
475 return "CCassSplitHistoryFetch";
486 {
return m_SplitVersion; }
489 {
return m_UseCache; }
492 { m_Loader.reset(fetch); }
498 virtual void ResetCallbacks(
void);
518 m_Identification(ePSGS_ByCassBlob),
530 return "CCassPublicCommentFetch";
536 return m_Identification;
542 m_Identification = ePSGS_ByCassBlob;
544 m_LastModified = last_modified;
548 const string & id2_info)
550 m_Identification = ePSGS_ById2;
551 m_Id2Chunk = id2_chunk;
552 m_Id2Info = id2_info;
559 {
return m_LastModified; }
562 {
return m_Id2Chunk; }
565 {
return m_Id2Info; }
568 { m_Loader.reset(fetch); }
574 virtual void ResetCallbacks(
void);
606 return "CCassIPGFetch";
611 { m_Loader.reset(fetch); }
617 virtual void ResetCallbacks(
void);
CCassAccVerHistoryFetch(const SPSGS_AccessionVersionHistoryRequest &acc_version_history_request)
void SetLoader(CCassAccVerHistoryTaskFetch *fetch)
virtual string Serialize(void) const
virtual ~CCassAccVerHistoryFetch()
CCassAccVerHistoryFetch()
CCassAccVerHistoryTaskFetch * GetLoader(void)
CCassBioseqInfoTaskFetch * GetLoader(void)
void SetLoader(CCassBioseqInfoTaskFetch *fetch)
virtual string Serialize(void) const
virtual ~CCassBioseqInfoFetch()
bool m_UserProvidedBlobId
void IncrementTotalSentBlobChunks(void)
CCassBlobFetch(const SPSGS_BlobBySatSatKeyRequest &blob_request, const SCass_BlobId &blob_id)
void SetLoader(CCassBlobTaskLoadBlob *fetch)
CCassBlobFetch(const SPSGS_BlobBySeqIdRequest &blob_request, const SCass_BlobId &blob_id)
CCassBlobFetch(const SPSGS_AnnotRequest &blob_request, const SCass_BlobId &blob_id)
void SetBlobPropSent(void)
bool GetNeedAddId2ChunkId2Info(void) const
int32_t GetTotalSentBlobChunks(void) const
CCassBlobTaskLoadBlob * GetLoader(void)
bool GetUserProvidedBlobId(void) const
SPSGS_BlobRequestBase::EPSGS_TSEOption m_TSEOption
void SetNeedAddId2ChunkId2Info(bool val)
virtual ~CCassBlobFetch()
virtual string Serialize(void) const
SPSGS_BlobRequestBase::EPSGS_TSEOption GetTSEOption(void) const
CCassBlobFetch(const SPSGS_TSEChunkRequest &chunk_request, const SCass_BlobId &tse_id)
int32_t m_TotalSentBlobChunks
bool IsBlobPropStage(void) const
bool m_NeedAddId2ChunkId2Info
void ResetTotalSentBlobChunks(void)
string GetKeySpace() const
virtual void ResetCallbacks(void)=0
void SetReadFinished(void)
bool IsBlobFetch(void) const
bool ReadFinished(void) const
string GetClientId(void) const
bool Canceled(void) const
EPSGS_DbFetchType m_FetchType
SCass_BlobId GetBlobId(void) const
void SetExcludeBlobCacheUpdated(bool value)
unique_ptr< CCassBlobWaiter > m_Loader
CCassBlobWaiter * GetLoader(void)
virtual string Serialize(void) const =0
EPSGS_DbFetchType GetFetchType(void) const
CCassFetch(const string &client_id, const SCass_BlobId &blob_id)
bool m_ExcludeBlobCacheUpdated
void SetLoader(CPubseqGatewayFetchIpgReport *fetch)
virtual string Serialize(void) const
CCassIPGFetch(const SPSGS_IPGResolveRequest &ipg_resolve_request)
CPubseqGatewayFetchIpgReport * GetLoader(void)
vector< string > GetAnnotNames() const
virtual string Serialize(void) const
CCassNAnnotTaskFetch * GetLoader(void)
virtual ~CCassNamedAnnotFetch()
CCassNamedAnnotFetch(const SPSGS_AnnotRequest &annot_request)
void SetLoader(CCassNAnnotTaskFetch *fetch)
void SetLoader(CCassSI2CSITaskFetch *fetch)
virtual string Serialize(void) const
virtual ~CCassSi2csiFetch()
CCassSI2CSITaskFetch * GetLoader(void)
CCassBlobTaskFetchSplitHistory * GetLoader(void)
SCass_BlobId GetTSEId(void) const
int64_t GetChunk(void) const
SPSGS_RequestBase::EPSGS_CacheAndDbUse m_UseCache
CCassSplitHistoryFetch(const SPSGS_TSEChunkRequest &chunk_request, const SCass_BlobId &tse_id, int64_t split_version)
virtual ~CCassSplitHistoryFetch()
virtual string Serialize(void) const
SPSGS_RequestBase::EPSGS_CacheAndDbUse GetUseCache(void) const
void SetLoader(CCassBlobTaskFetchSplitHistory *fetch)
int64_t GetSplitVersion(void) const
static const struct name_t names[]
const GenericPointer< typename T::ValueType > T2 value
@ ePSGS_BlobBySatSatKeyFetch
@ ePSGS_SplitHistoryFetch
@ ePSGS_AnnotationBlobFetch
@ ePSGS_PublicCommentFetch
@ ePSGS_AccVerHistoryFetch
psg_clock_t::time_point psg_time_point_t