Skip to content

Commit

Permalink
Pass UnitLoaderFactory to NimbleReader
Browse files Browse the repository at this point in the history
Summary: As said

Reviewed By: helfman

Differential Revision: D56739290
  • Loading branch information
Daniel Munoz authored and facebook-github-bot committed May 1, 2024
1 parent 607568d commit f9df0cb
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit f9df0cb

Please sign in to comment.