lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: cvs commit: jakarta-lucene/src/test/org/apache/lucene/document TestDocument.java
Date Fri, 17 Sep 2004 16:50:49 GMT
goller@apache.org wrote:
>   +      if ((bits & 2) != 0) {
>   +        final byte[] b = new byte[fieldsStream.readVInt()];
>   +        fieldsStream.readBytes(b, 0, b.length);
>   +        doc.add(new Field(fi.name, b));
>   +      }
>   +      else {
>   +        Field.Index index;
>   +        boolean tokenize = (bits & 1) != 0;

I'd still like to see constants for these bit masks, as suggested in:

http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg06693.html

This will make the code much more readable as we add, e.g., compression.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message