|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.packed.BlockPackedReaderIterator
public final class BlockPackedReaderIterator
Reader for sequences of longs written with BlockPackedWriter
.
BlockPackedWriter
Constructor Summary | |
---|---|
BlockPackedReaderIterator(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 |
reset(DataInput in,
long valueCount)
Reset the current reader to wrap a stream of valueCount
values contained in in . |
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 BlockPackedReaderIterator(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 streamMethod Detail |
---|
public void reset(DataInput in, long valueCount)
valueCount
values contained in in
. The block size remains unchanged.
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.
IOException
public long ord()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |