File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ use crate::common::NumStdDev;
2929use crate :: error:: Error ;
3030use crate :: hll:: Coupon ;
3131use crate :: hll:: estimator:: HipEstimator ;
32+ use crate :: hll:: serialization:: COMPACT_FLAG_MASK ;
3233use crate :: hll:: serialization:: COUPON_SIZE_BYTES ;
3334use crate :: hll:: serialization:: CUR_MODE_HLL ;
3435use crate :: hll:: serialization:: HLL_PREAMBLE_SIZE ;
@@ -388,8 +389,10 @@ impl Array4 {
388389 bytes. write_u8 ( lg_config_k) ;
389390 bytes. write_u8 ( 0 ) ; // unused for HLL mode
390391
391- // Write flags
392- let mut flags = 0u8 ;
392+ // Write flags.
393+ // COMPACT_FLAG_MASK is always set: aux map entries are written as a compact sequential
394+ // list of populated entries only.
395+ let mut flags = COMPACT_FLAG_MASK ;
393396 if self . estimator . is_out_of_order ( ) {
394397 flags |= OUT_OF_ORDER_FLAG_MASK ;
395398 }
You can’t perform that action at this time.
0 commit comments