public abstract class BlockIterator extends Object implements Iterator<Map.Entry<MemorySlice,MemorySlice>>
Iterator
for a block.Modifier and Type | Field and Description |
---|---|
protected MemorySliceInput |
data |
Constructor and Description |
---|
BlockIterator(MemorySliceInput data,
int recordCount,
Comparator<MemorySlice> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
BlockEntry |
next() |
void |
remove() |
abstract void |
seekTo(int record) |
boolean |
seekTo(MemorySlice targetKey) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final MemorySliceInput data
public BlockIterator(MemorySliceInput data, int recordCount, Comparator<MemorySlice> comparator)
public boolean hasNext()
hasNext
in interface Iterator<Map.Entry<MemorySlice,MemorySlice>>
public BlockEntry next()
next
in interface Iterator<Map.Entry<MemorySlice,MemorySlice>>
public void remove()
remove
in interface Iterator<Map.Entry<MemorySlice,MemorySlice>>
public boolean seekTo(MemorySlice targetKey)
public abstract void seekTo(int record)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.