Druid uses format described in GenericIndexed class to serialize indexes. While writing index values, Druid writes the length of values in bytes before each value.
However, this may be skipped as end offsets of each serialized value is already written before the values are stored. This can lead to savings of (4 bytes * number of values in the index) for each index in the final segment. Some examples of GenericIndexed index are for writing Dictionary values, corresponding bitmaps etc.
Corresponding PR for discussion - #3069
Druid uses format described in GenericIndexed class to serialize indexes. While writing index values, Druid writes the length of values in bytes before each value.
However, this may be skipped as end offsets of each serialized value is already written before the values are stored. This can lead to savings of (4 bytes * number of values in the index) for each index in the final segment. Some examples of GenericIndexed index are for writing Dictionary values, corresponding bitmaps etc.
Corresponding PR for discussion - #3069