Skip to content

Commit

Permalink
[WIP][VL] Support celeborn sort based shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwin-zk committed May 14, 2024
1 parent 5513f38 commit 588163d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
3 changes: 3 additions & 0 deletions cpp/core/shuffle/ShuffleWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

namespace gluten {

enum SplitState { kInit, kPreAlloc, kSplit, kStop };
enum EvictState { kEvictable, kUnevictable };

class ShuffleWriter : public Reclaimable {
public:
static constexpr int64_t kMinMemLimit = 128LL * 1024 * 1024;
Expand Down
3 changes: 0 additions & 3 deletions cpp/velox/shuffle/VeloxHashBasedShuffleWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ namespace gluten {

#endif // end of VELOX_SHUFFLE_WRITER_PRINT

enum SplitState { kInit, kPreAlloc, kSplit, kStop };
enum EvictState { kEvictable, kUnevictable };

struct BinaryArrayResizeState {
bool inResize;
uint32_t partitionId;
Expand Down
13 changes: 0 additions & 13 deletions cpp/velox/shuffle/VeloxSortBasedShuffleWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,6 @@ namespace gluten {

#endif // end of VELOX_SHUFFLE_WRITER_PRINT

enum SplitState { kInit, kPreAlloc, kSplit, kStop };
enum EvictState { kEvictable, kUnevictable };

struct BinaryArrayResizeState {
bool inResize;
uint32_t partitionId;
uint32_t binaryIdx;

BinaryArrayResizeState() : inResize(false) {}
BinaryArrayResizeState(uint32_t partitionId, uint32_t binaryIdx)
: inResize(false), partitionId(partitionId), binaryIdx(binaryIdx) {}
};

class VeloxSortBasedShuffleWriter : public ShuffleWriter {
public:
static arrow::Result<std::shared_ptr<VeloxSortBasedShuffleWriter>> create(
Expand Down

0 comments on commit 588163d

Please sign in to comment.