private class ByteBufferArray.BufferIterator extends Object implements Iterator<ByteBuffer>
Modifier and Type | Field and Description |
---|---|
private int |
curIndex |
private int |
endBuffer |
private int |
endOffset |
private int |
len |
private int |
startBuffer |
private int |
startOffset |
private int |
sum |
Constructor and Description |
---|
BufferIterator(long offset,
int len) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getBufferCount() |
(package private) int |
getSum() |
boolean |
hasNext() |
private int |
index(long pos) |
ByteBuffer |
next()
The returned ByteBuffer is an sliced one, it won't affect the position or limit of the
original one.
|
private int |
offset(long pos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
private final int len
private int startBuffer
private int startOffset
private int endBuffer
private int endOffset
private int curIndex
private int sum
public BufferIterator(long offset, int len)
private int index(long pos)
private int offset(long pos)
public boolean hasNext()
hasNext
in interface Iterator<ByteBuffer>
public ByteBuffer next()
next
in interface Iterator<ByteBuffer>
int getSum()
int getBufferCount()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.