druid icon indicating copy to clipboard operation
druid copied to clipboard

Documentation improvement of the "Segment" document

Open rohitkochar opened this issue 11 years ago • 1 comments

The section of this document which describes the 3 data structures needed for a segment list them in this order

  1. A dictionary that maps values (which are always treated as strings) to integer IDs,
  2. For each distinct value in the column, a bitmap that indicates which rows contain that value, and
  3. A list of the column’s values, encoded using the dictionary in 1.

Whereas the example list them in this order: 1)Dictionary that encodes column values 2)Column data 3)Bitmaps

Hence in the paragraph following the example its is hard to understand which data structure is being referred when they are referenced using the "serial number".

rohitkochar avatar Nov 03 '15 16:11 rohitkochar

Pull request for the same: https://github.com/druid-io/druid/pull/1904

rohitkochar avatar Nov 03 '15 16:11 rohitkochar