[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-dev
Subject:    File format Qs
From:       Marvin Humphrey <marvin () rectangular ! com>
Date:       2005-08-16 12:10:03
Message-ID: 032093AB-3A2B-4B38-A06A-D9D09B74FC42 () rectangular ! com
[Download RAW message or body]

Greets,

First clarification:  In a Lucene string, it appears that the VInt at  
the head counts bytes, not UTF8 characters... correct?

Next, this document...

http://lucene.apache.org/java/docs/fileformats.html

... seems to indicate ndicates that Format (the first number written  
to the 'segments' file) is a UInt32:

"Format, SegCount, SegSize --> UInt32"

However, it's -1, so it can't be an unsigned 32-bit integer.

Spelunking through SegmentInfos.java in 1.4.3, it looks like Format  
is a big-endian twos-complement 32-bit integer.

I think I see some other documentation glitches in the 1.4.3 source,  
but since I'm looking at an old release, I probably ought to hold off  
on those.

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic