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  countvalues. | 
| 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  valueCountvalues contained inin. | 
| void | skip(long count)Skip exactly  countvalues. | 
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.IOExceptionpublic long next()
          throws IOException
IOExceptionpublic LongsRef next(int count) throws IOException
count values.IOExceptionpublic long ord()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.