Package org.apache.hadoop.hbase.util
Class ByteBufferArray.BufferIterator
java.lang.Object
org.apache.hadoop.hbase.util.ByteBufferArray.BufferIterator
- All Implemented Interfaces:
Iterator<ByteBuffer>
- Enclosing class:
- ByteBufferArray
Iterator to fetch ByteBuffers from offset with given length in this big logical array.
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private int
private final int
private int
private int
private int
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
len
-
startBuffer
-
startOffset
-
endBuffer
-
endOffset
-
curIndex
-
sum
-
-
Constructor Details
-
BufferIterator
-
-
Method Details
-
index
-
offset
-
hasNext
- Specified by:
hasNext
in interfaceIterator<ByteBuffer>
-
next
The returned ByteBuffer is an sliced one, it won't affect the position or limit of the original one.- Specified by:
next
in interfaceIterator<ByteBuffer>
-
getSum
int getSum() -
getBufferCount
int getBufferCount()
-