- 所有超级接口:
Cloneable
- 所有已知实现类:
ArrayBatchIterator,ArrayBatchIterator,BitmapBatchIterator,BitmapBatchIterator,RunBatchIterator,RunBatchIterator
-
方法概要
修饰符和类型方法说明voidadvanceIfNeeded(char target) Advance until the value.clone()Creates a copy of the iterator.booleanhasNext()Whether the underlying container is exhausted or notintnext(int key, int[] buffer) Fills the buffer with values prefixed by the key, and returns how much of the buffer was used.voidDiscard the reference to the container
-
方法详细资料
-
next
int next(int key, int[] buffer) Fills the buffer with values prefixed by the key, and returns how much of the buffer was used.- 参数:
key- the prefix of the valuesbuffer- the buffer to write values onto- 返回:
- how many values were written.
-
hasNext
boolean hasNext()Whether the underlying container is exhausted or not- 返回:
- true if there is data remaining
-
clone
ContainerBatchIterator clone()Creates a copy of the iterator.- 返回:
- a clone of the current iterator
-
releaseContainer
void releaseContainer()Discard the reference to the container -
advanceIfNeeded
void advanceIfNeeded(char target) Advance until the value.- 参数:
target- the value to advance to.
-