liutang123 commented on a change in pull request #2630: Support bitmap index
for more type
URL: https://github.com/apache/incubator-doris/pull/2630#discussion_r365657868
##########
File path: be/src/util/frame_of_reference_coding.h
##########
@@ -37,16 +41,23 @@ namespace doris {
// 1. Body:
// BitPackingFrame * FrameCount
// 2. Footer:
-// (2 bit OrderFlag + 6 bit BitWidth) * FrameCount
+//
+// (8 bit OrderFlag + 8 bit BitWidth) * FrameCount
// 8 bit FrameValueNum
// 32 bit ValuesNum
//
-// The not ascending order BitPackingFrame format:
-// MinValue, (Value - MinVale) * FrameValueNum
+// if the OrderFlag & 2 == 2: save original values
Review comment:
The lowest bit represents order and the second bit represents if save
original value.
---- --00: compressed & not ascending
---- --01: compressed data & ascending
---- --10: original data & not ascending
---- --11: original data & ascending
----------------------------------------------------------------
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]