Skip to content

Commit

Permalink
add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luffy-zh committed Aug 28, 2024
1 parent 1ffc720 commit f4720f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions c++/include/orc/Writer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ namespace orc {

/**
* Set whether the compression block should be aligned to row group boundary.
* The boolean type may not be aligned to row group boundary due to the
* requirement of the Boolean RLE encoder to pack input bits into bytes
*/
WriterOptions& setAlignBlockBoundToRowGroup(bool alignBlockBoundToRowGroup);

Expand Down
6 changes: 1 addition & 5 deletions c++/src/ColumnWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1271,11 +1271,7 @@ namespace orc {

void StringColumnWriter::finishStreams() {
ColumnWriter::finishStreams();
if (useDictionary) {
dictDataEncoder->finishEncode();
dictLengthEncoder->finishEncode();
dictStream->finishStream();
} else {
if (!useDictionary) {
directDataStream->finishStream();
directLengthEncoder->finishEncode();
}
Expand Down
3 changes: 2 additions & 1 deletion c++/src/ColumnWriter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ namespace orc {
* Finalize the encoding and compressing process. This function should be
* called after all data required for encoding has been added. It ensures
* that any remaining data is processed and the final state of the streams
* is set.
* is set. Note: the boolean type may break this spec due to some trailing bits will be written
* to the next compression block.
*/
virtual void finishStreams();

Expand Down

0 comments on commit f4720f5

Please sign in to comment.