diff --git a/cpp/core/shuffle/ShuffleWriter.h b/cpp/core/shuffle/ShuffleWriter.h index ce69003c7c22e..9750eeaab8f21 100644 --- a/cpp/core/shuffle/ShuffleWriter.h +++ b/cpp/core/shuffle/ShuffleWriter.h @@ -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; diff --git a/cpp/velox/shuffle/VeloxHashBasedShuffleWriter.h b/cpp/velox/shuffle/VeloxHashBasedShuffleWriter.h index b9e5b7cac94fd..9d7ad12133266 100644 --- a/cpp/velox/shuffle/VeloxHashBasedShuffleWriter.h +++ b/cpp/velox/shuffle/VeloxHashBasedShuffleWriter.h @@ -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; diff --git a/cpp/velox/shuffle/VeloxSortBasedShuffleWriter.h b/cpp/velox/shuffle/VeloxSortBasedShuffleWriter.h index 6306a63c241fd..b18a4de851514 100644 --- a/cpp/velox/shuffle/VeloxSortBasedShuffleWriter.h +++ b/cpp/velox/shuffle/VeloxSortBasedShuffleWriter.h @@ -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> create(