Packages that use BlockFile
Package
Description
The router's default naming service, BlockfileNamingService, backed by the Metanotion BlockFile database (
net.metanotion) in hostsdb.dat. Skip-list based indexes over BlockFile data.
Uses of BlockFile in net.i2p.router.naming
Fields in net.i2p.router.naming declared as BlockFileModifier and TypeFieldDescriptionprivate final BlockFileBlockfileNamingService._bfThe block file holding the naming data.Methods in net.i2p.router.naming that return BlockFileModifier and TypeMethodDescriptionprivate BlockFileBlockfileNamingService.initExisting(RAIFile raf) Read the info block of an existing database.private BlockFileCreate a new database and initialize it from the local files privatehosts.txt, userhosts.txt, and hosts.txt, creating a skiplist in the database for each.Methods in net.i2p.router.naming with parameters of type BlockFileModifier and TypeMethodDescriptionprivate voidBlockfileNamingService.addEntry(BlockFile bf, String listname, String key, Destination dest, String source) Caller must synchronize.private static voidBlockfileNamingService.addReverseEntry(BlockFile bf, String key, Destination dest, Log log) Caller must synchronize.private booleanBlockfileNamingService.needsUpgrade(BlockFile bf) Whether the database is in an old format.Uses of BlockFile in net.metanotion.io.block.index
Fields in net.metanotion.io.block.index declared as BlockFileModifier and TypeFieldDescriptionfinal BlockFileBSkipLevels.bfReference to the BlockFilefinal BlockFileBSkipList.bfReference to the BlockFileprotected final BlockFileBSkipSpan.bfReference to the BlockFileMethods in net.metanotion.io.block.index with parameters of type BlockFileModifier and TypeMethodDescriptionstatic voidInitialize a new BSkipLevels page on disk.static voidInitialize a new skiplist on disk.static voidInitialize a new span page on disk.private static <X extends Comparable<? super X>, Y>
voidBSkipSpan.load(BSkipSpan<X, Y> bss, BlockFile bf, BSkipList<X, Y> bsl, int spanPage, Serializer<X> key, Serializer<Y> val) Load a BSkipSpan from disk.protected static <X extends Comparable<? super X>, Y>
voidBSkipSpan.loadInit(BSkipSpan<X, Y> bss, BlockFile bf, BSkipList<X, Y> bsl, int spanPage, Serializer<X> key, Serializer<Y> val) Load the span headers from disk (first half of load()).Constructors in net.metanotion.io.block.index with parameters of type BlockFileModifierConstructorDescriptionBSkipLevels(BlockFile bf, int levelPage, BSkipList<K, V> bsl) Create a BSkipLevels and load it from disk.BSkipList(int spanSize, BlockFile bf, int skipPage, Serializer<K> key, Serializer<V> val) Create a BSkipList from a BlockFile.BSkipList(int spanSize, BlockFile bf, int skipPage, Serializer<K> key, Serializer<V> val, boolean fileOnly) Create a BSkipList from a BlockFile.protectedCreate a new BSkipSpan with the given BlockFile and BSkipList.BSkipSpan(BlockFile bf, BSkipList<K, V> bsl, int spanPage, Serializer<K> key, Serializer<V> val) Create a BSkipSpan and load its data from disk.privateIBSkipSpan(BlockFile bf, BSkipList<K, V> bsl) Recreates a span from the file.IBSkipSpan(BlockFile bf, BSkipList<K, V> bsl, int spanPage, Serializer<K> key, Serializer<V> val) Opens the span on the given page and chains the remaining span pages of the list.