Package org.iq80.leveldb.table
Class MMapTable
java.lang.Object
org.iq80.leveldb.table.Table
org.iq80.leveldb.table.MMapTable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.iq80.leveldb.table.Table
comparator, fileChannel, indexBlock, metaindexBlockHandle, name, uncompressedScratch, verifyChecksums -
Constructor Summary
ConstructorsConstructorDescriptionMMapTable(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) -
Method Summary
Modifier and TypeMethodDescriptionCallable<?> closer()protected Footerinit()static ByteBufferread(MappedByteBuffer data, int offset, int length) protected BlockreadBlock(BlockHandle blockHandle) Methods inherited from class org.iq80.leveldb.table.Table
getApproximateOffsetOf, iterator, openBlock, toString, uncompressedLengthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
data
-
-
Constructor Details
-
MMapTable
public MMapTable(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) throws IOException - Throws:
IOException
-
-
Method Details
-
init
- Specified by:
initin classTable- Throws:
IOException
-
closer
-
readBlock
- Specified by:
readBlockin classTable- Throws:
IOException
-
read
- Throws:
IOException
-