obiba / genobyte

GenoByte is a Java API for storing and querying data resulting from the aggregation of high-throughput genotyping experiments across many subjects.
GNU General Public License v3.0
1 stars 0 forks source link

GEN-9: Dictionary implementations should not encode specially so that Field behaves correctly #6

Open ymarcon opened 17 years ago

ymarcon commented 17 years ago

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.