Package org.iq80.leveldb.table
Class FileChannelTable
java.lang.Object
org.iq80.leveldb.table.Table
org.iq80.leveldb.table.FileChannelTable
-
Field Summary
Fields inherited from class org.iq80.leveldb.table.Table
comparator, fileChannel, indexBlock, metaindexBlockHandle, name, uncompressedScratch, verifyChecksums -
Constructor Summary
ConstructorsConstructorDescriptionFileChannelTable(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) -
Method Summary
Modifier and TypeMethodDescriptionprotected Footerinit()private ByteBufferread(long offset, int length) protected BlockreadBlock(BlockHandle blockHandle) Methods inherited from class org.iq80.leveldb.table.Table
closer, 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
-
Constructor Details
-
FileChannelTable
public FileChannelTable(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) throws IOException - Throws:
IOException
-
-
Method Details
-
init
- Specified by:
initin classTable- Throws:
IOException
-
readBlock
- Specified by:
readBlockin classTable- Throws:
IOException
-
read
- Throws:
IOException
-