Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass UnitLoaderFactory to NimbleReader #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dwio/nimble/velox/VeloxReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "velox/dwio/common/ColumnSelector.h"
#include "velox/dwio/common/ExecutorBarrier.h"
#include "velox/dwio/common/FlatMapHelper.h"
#include "velox/dwio/common/UnitLoader.h"
#include "velox/type/Type.h"
#include "velox/vector/BaseVector.h"

Expand Down Expand Up @@ -60,6 +61,10 @@ struct VeloxReadParams : public FieldReaderParams {
// Report the Wall time (us) that we spend decoding.
std::function<void(std::chrono::high_resolution_clock::duration)>
decodingTimeCallback;

// Factory with the algorithm to load stripes (units).
// If nullptr we'll use the default one, that doesn't pre-load stripes.
std::shared_ptr<velox::dwio::common::UnitLoaderFactory> unitLoaderFactory;
};

class VeloxReader {
Expand Down