Currently, some Dictionaries encode values specially knowing the Field's behaviour. This creates an indirect coupling between Field and Dictionary that is undesirable.
For example, the HuffmanDictionary implementation uses a special "end of string" character knowing how the Field behaves during query/rangeQuery/rightQuery. There seems to be a need to formalize a concept into the Dictionary interface to allow the Field to change/adapt its behaviour to the specific Dictionary properties.
Dictionary instances should be able to do their job without knowledge of a Field.
Jira issue originally created by user @plaflamme:
Currently, some Dictionaries encode values specially knowing the Field's behaviour. This creates an indirect coupling between Field and Dictionary that is undesirable.
For example, the HuffmanDictionary implementation uses a special "end of string" character knowing how the Field behaves during query/rangeQuery/rightQuery. There seems to be a need to formalize a concept into the Dictionary interface to allow the Field to change/adapt its behaviour to the specific Dictionary properties.
Dictionary instances should be able to do their job without knowledge of a Field.