forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blobs fetcher unification (ydb-platform#12858)
- Loading branch information
1 parent
feafafd
commit 8e2f719
Showing
10 changed files
with
105 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 20 additions & 16 deletions
36
...eader/plain_reader/iterator/constructor.h → ...ader/common_reader/iterator/constructor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,37 @@ | ||
#pragma once | ||
#include <ydb/core/tx/columnshard/engines/reader/abstract/read_metadata.h> | ||
#include <ydb/core/tx/columnshard/engines/reader/abstract/read_context.h> | ||
#include <ydb/core/tx/columnshard/engines/portions/column_record.h> | ||
#include <ydb/core/tx/columnshard/blobs_reader/task.h> | ||
#include <ydb/core/tx/columnshard/blob.h> | ||
#include "fetching.h" | ||
#include "source.h" | ||
|
||
namespace NKikimr::NOlap::NReader::NPlain { | ||
#include <ydb/core/tx/columnshard/blob.h> | ||
#include <ydb/core/tx/columnshard/blobs_reader/task.h> | ||
#include <ydb/core/tx/columnshard/engines/portions/column_record.h> | ||
#include <ydb/core/tx/columnshard/engines/reader/abstract/read_context.h> | ||
#include <ydb/core/tx/columnshard/engines/reader/abstract/read_metadata.h> | ||
|
||
namespace NKikimr::NOlap::NReader::NCommon { | ||
|
||
class TBlobsFetcherTask: public NBlobOperations::NRead::ITask, public NColumnShard::TMonitoringObjectsCounter<TBlobsFetcherTask> { | ||
private: | ||
using TBase = NBlobOperations::NRead::ITask; | ||
const std::shared_ptr<NCommon::IDataSource> Source; | ||
const std::shared_ptr<IDataSource> Source; | ||
TFetchingScriptCursor Step; | ||
const std::shared_ptr<NCommon::TSpecialReadContext> Context; | ||
const std::shared_ptr<TSpecialReadContext> Context; | ||
const NColumnShard::TCounterGuard Guard; | ||
|
||
virtual void DoOnDataReady(const std::shared_ptr<NResourceBroker::NSubscribe::TResourcesGuard>& resourcesGuard) override; | ||
virtual bool DoOnError(const TString& storageId, const TBlobRange& range, const IBlobsReadingAction::TErrorStatus& status) override; | ||
|
||
public: | ||
TBlobsFetcherTask(const std::vector<std::shared_ptr<IBlobsReadingAction>>& readActions, const std::shared_ptr<NCommon::IDataSource>& sourcePtr, | ||
template <class TSource> | ||
TBlobsFetcherTask(const std::vector<std::shared_ptr<IBlobsReadingAction>>& readActions, const std::shared_ptr<TSource>& sourcePtr, | ||
const TFetchingScriptCursor& step, const std::shared_ptr<NCommon::TSpecialReadContext>& context, const TString& taskCustomer, | ||
const TString& externalTaskId) | ||
: TBase(readActions, taskCustomer, externalTaskId) | ||
, Source(sourcePtr) | ||
, Step(step) | ||
, Context(context) | ||
{ | ||
|
||
: TBlobsFetcherTask(readActions, std::static_pointer_cast<IDataSource>(sourcePtr), step, context, taskCustomer, externalTaskId) { | ||
} | ||
|
||
TBlobsFetcherTask(const std::vector<std::shared_ptr<IBlobsReadingAction>>& readActions, | ||
const std::shared_ptr<NCommon::IDataSource>& sourcePtr, const TFetchingScriptCursor& step, | ||
const std::shared_ptr<NCommon::TSpecialReadContext>& context, const TString& taskCustomer, const TString& externalTaskId); | ||
}; | ||
|
||
} | ||
} // namespace NKikimr::NOlap::NReader::NCommon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
ydb/core/tx/columnshard/engines/reader/common_reader/iterator/ya.make
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
ydb/core/tx/columnshard/engines/reader/plain_reader/iterator/constructor.cpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ LIBRARY() | |
|
||
SRCS( | ||
scanner.cpp | ||
constructor.cpp | ||
source.cpp | ||
interval.cpp | ||
fetched_data.cpp | ||
|
27 changes: 0 additions & 27 deletions
27
ydb/core/tx/columnshard/engines/reader/simple_reader/iterator/constructor.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ LIBRARY() | |
|
||
SRCS( | ||
scanner.cpp | ||
constructor.cpp | ||
source.cpp | ||
fetched_data.cpp | ||
plain_read_data.cpp | ||
|