public final class RunBatchIterator extends java.lang.Object implements ContainerBatchIterator
| 构造器和说明 |
|---|
RunBatchIterator(RunContainer runs) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
advanceIfNeeded(char target)
Advance until the value.
|
ContainerBatchIterator |
clone()
Creates a copy of the iterator.
|
boolean |
hasNext()
Whether the underlying container is exhausted or not
|
int |
next(int key,
int[] buffer)
Fills the buffer with values prefixed by the key,
and returns how much of the buffer was used.
|
void |
releaseContainer()
Discard the reference to the container
|
public RunBatchIterator(RunContainer runs)
public int next(int key,
int[] buffer)
ContainerBatchIteratornext 在接口中 ContainerBatchIteratorkey - the prefix of the valuesbuffer - the buffer to write values ontopublic boolean hasNext()
ContainerBatchIteratorhasNext 在接口中 ContainerBatchIteratorpublic ContainerBatchIterator clone()
ContainerBatchIteratorclone 在接口中 ContainerBatchIteratorclone 在类中 java.lang.Objectpublic void releaseContainer()
ContainerBatchIteratorreleaseContainer 在接口中 ContainerBatchIteratorpublic void advanceIfNeeded(char target)
ContainerBatchIteratoradvanceIfNeeded 在接口中 ContainerBatchIteratortarget - the value to advance to.