public static final class IntBlockPool.SliceReader extends Object
IntBlockPool.SliceReader
that can read int slices written by a IntBlockPool.SliceWriter
Constructor and Description |
---|
SliceReader(IntBlockPool pool)
Creates a new
IntBlockPool.SliceReader on the given pool |
Modifier and Type | Method and Description |
---|---|
boolean |
endOfSlice()
Returns
true iff the current slice is fully read. |
int |
readInt()
Reads the next int from the current slice and returns it.
|
void |
reset(int startOffset,
int endOffset)
Resets the reader to a slice give the slices absolute start and end offset in the pool
|
public SliceReader(IntBlockPool pool)
IntBlockPool.SliceReader
on the given poolpublic void reset(int startOffset, int endOffset)
public boolean endOfSlice()
true
iff the current slice is fully read. If this
method returns true
readInt()
should not
be called again on this slice.public int readInt()
endOfSlice()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.