Package org.apache.calcite.util
Class ChunkList.ChunkListIterator
- java.lang.Object
-
- org.apache.calcite.util.ChunkList.ChunkListIterator
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
chunk
private int
cursor
Offset within current chunk of the next element to return.private int
end
Offset of the first unoccupied location in the current chunk.private int
lastRet
Offset within the current chunk of the last element returned.private int
start
Offset in the list of the first element of this chunk.
-
Constructor Summary
Constructors Constructor Description ChunkListIterator(java.lang.Object[] chunk, int start, int cursor, int lastRet, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E e)
boolean
hasNext()
boolean
hasPrevious()
E
next()
int
nextIndex()
E
previous()
int
previousIndex()
void
remove()
void
set(E e)
-
-
-
Field Detail
-
chunk
private java.lang.Object[] chunk
-
start
private int start
Offset in the list of the first element of this chunk.
-
cursor
private int cursor
Offset within current chunk of the next element to return.
-
lastRet
private int lastRet
Offset within the current chunk of the last element returned. -1 ifnext()
orprevious()
has not been called.
-
end
private int end
Offset of the first unoccupied location in the current chunk.
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<E>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<E>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<E>
-
remove
public void remove()
-
-