public static class IndexWriter.SizeIndexCollectorUncompressed extends IndexWriter.IntIndexCollectorUncompressed
| Constructor and Description |
|---|
SizeIndexCollectorUncompressed(int size) |
| Modifier and Type | Method and Description |
|---|---|
static int |
compress(long y)
Cope with objects bigger than Integer.MAX_VALUE.
|
static long |
expand(int x)
Expand the result of the compression
|
long |
getSize(int index) |
void |
set(int index,
long value) |
IIndexReader.IOne2SizeIndex |
writeTo(File indexFile) |
get, setpublic static int compress(long y)
(n & 0x7fffffffL)*8 + 0x80000000L.y - the long value in the range -1 to 0x7fffffff, 0x80000000L to 0x400000000Lpublic static long expand(int x)
x - the compressed valuepublic void set(int index,
long value)
public long getSize(int index)
public IIndexReader.IOne2SizeIndex writeTo(File indexFile) throws IOException
writeTo in class IndexWriter.IntIndexCollectorUncompressedIOException