Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh committed Dec 16, 2024
1 parent c584816 commit e77bba9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions velox/serializers/RowSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ struct RowHeader {
template <class Serializer>
class RowSerializer : public IterativeVectorSerializer {
public:
explicit RowSerializer(
memory::MemoryPool* pool,
const VectorSerde::Options* options)
RowSerializer(memory::MemoryPool* pool, const VectorSerde::Options* options)
: pool_(pool),
options_(options == nullptr ? VectorSerde::Options() : *options),
codec_(common::compressionKindToCodec(options_.compressionKind)) {}
Expand Down Expand Up @@ -155,7 +153,7 @@ class RowSerializer : public IterativeVectorSerializer {
}

// The serialization format is | uncompressedSize | compressedSize |
// compressed | data |.
// compressed | data.
void flush(OutputStream* stream) override {
constexpr int32_t kMaxCompressionAttemptsToSkip = 30;
const auto size = uncompressedSize();
Expand Down

0 comments on commit e77bba9

Please sign in to comment.