|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.util.packed.BlockPackedReader
public final class BlockPackedReader
Reader for sequences of longs written with BlockPackedWriter.
BlockPackedWriter| Constructor Summary | |
|---|---|
BlockPackedReader(DataInput in,
int packedIntsVersion,
int blockSize,
long valueCount)
Sole constructor. |
|
| Method Summary | |
|---|---|
long |
next()
Read the next value. |
LongsRef |
next(int count)
Read between 1 and count values. |
long |
ord()
Return the offset of the next value to read. |
void |
skip(long count)
Skip exactly count values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockPackedReader(DataInput in,
int packedIntsVersion,
int blockSize,
long valueCount)
blockSize - the number of values of a block, must be equal to the
block size of the BlockPackedWriter which has
been used to write the stream| Method Detail |
|---|
public void skip(long count)
throws IOException
count values.
IOException
public long next()
throws IOException
IOException
public LongsRef next(int count)
throws IOException
count values.
IOExceptionpublic long ord()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||