kangpinghuang commented on a change in pull request #1409: Add dict page
URL: https://github.com/apache/incubator-doris/pull/1409#discussion_r306281246
##########
File path: be/src/olap/rowset/segment_v2/options.h
##########
@@ -17,20 +17,21 @@
#pragma once
-#include "gen_cpp/segment_v2.pb.h"
-#include "olap/rowset/segment_v2/page_decoder.h" // for PageDecoder
-
namespace doris {
namespace segment_v2 {
+class BinaryPlainPageDecoder;
+
+static const size_t DEFAULT_PAGE_SIZE = 1024 * 1024; // default size: 1M
+
struct PageBuilderOptions {
- size_t data_page_size = 0;
+ size_t data_page_size = DEFAULT_PAGE_SIZE;
- size_t dict_page_size = 0;
+ size_t dict_page_size = DEFAULT_PAGE_SIZE;
};
struct PageDecoderOptions {
- PageDecoder* dict_decoder = nullptr;
+ const BinaryPlainPageDecoder* dict_decoder = nullptr;
Review comment:
ok
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]