public final class BlockPackedReaderIterator extends Object
BlockPackedWriter
.BlockPackedWriter
Constructor and Description |
---|
BlockPackedReaderIterator(DataInput in,
int packedIntsVersion,
int blockSize,
long valueCount)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
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. |
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 streampublic 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()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.