On 1/10/06, Robert Kirchgessner <[EMAIL PROTECTED]> wrote:
> Is there some reason not to store all field attributes in one place (*.fnm) ?
[...]
> Some of them are stored as a one byte-bit mask
> in the field infos file (*.fnm),
[...]
> Other attributes are stored as a bit mask in the data file (*.fdt):

AFAIK, *.fdt files aren't used for searching the index, only
retrieving stored fields.
Currently, binary & compressed are options per field value, not per
field.  Storing binary/compressed in the *.fnm file would mean that
they would have to be the same for all values of that field.

That would also make merging segments very challenging...
If one segment had some binary fields, and another segment had
non-binary fields, what would one do when merging the two segments?

> The nine booleans in Field could be replaced by a bit mask (int).

Personally, that's my preference, but it's more "C" like, and feels
like it goes in the opposite direction from where people have been
taking the Field class (for example, the type safe enum pattern,
Field.Index and Field.Store classes).

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to