voldemort.store.readonly.chunk
Class ChunkedFileSet.ROCollidedEntriesIterator
java.lang.Object
voldemort.store.readonly.chunk.ChunkedFileSet.ROCollidedEntriesIterator
- All Implemented Interfaces:
- java.util.Iterator<Pair<java.nio.ByteBuffer,java.nio.ByteBuffer>>, ClosableIterator<Pair<java.nio.ByteBuffer,java.nio.ByteBuffer>>
- Enclosing class:
- ChunkedFileSet
public static class ChunkedFileSet.ROCollidedEntriesIterator
- extends java.lang.Object
Iterator over top 8 bytes of md5(key) and all collided entries (
including the number of entries )
Works only for ReadOnlyStorageFormat.READONLY_V2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
coalesceCollided
protected boolean coalesceCollided
ChunkedFileSet.ROCollidedEntriesIterator
public ChunkedFileSet.ROCollidedEntriesIterator(DataFileChunkSet dataFileChunkSet)
ChunkedFileSet.ROCollidedEntriesIterator
public ChunkedFileSet.ROCollidedEntriesIterator(DataFileChunkSet dataFileChunkSet,
java.util.concurrent.locks.ReadWriteLock modificationLock)
next
public Pair<java.nio.ByteBuffer,java.nio.ByteBuffer> next()
- Specified by:
next
in interface java.util.Iterator<Pair<java.nio.ByteBuffer,java.nio.ByteBuffer>>
close
public void close()
- Description copied from interface:
ClosableIterator
- Close the iterator
- Specified by:
close
in interface ClosableIterator<T>
getCurrentChunk
protected DataFileChunk getCurrentChunk()
getCurrentOffsetInChunk
protected long getCurrentOffsetInChunk()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<T>
updateOffset
public void updateOffset(long updatedOffset)
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<T>
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu