Packages that use Serializer
Package
Description
The router's default naming service, BlockfileNamingService, backed by the Metanotion BlockFile database (
net.metanotion) in hostsdb.dat. Block-level file and allocation management for the Metanotion BlockFile database.
Skip-list based indexes over BlockFile data.
Serialization of Java objects into BlockFile records.
Uses of Serializer in net.i2p.router.naming
Classes in net.i2p.router.naming that implement SerializerModifier and TypeClassDescriptionprivate static classUsed for the values in the addressbook skiplists Take care not to throw on any error.private static classFor multiple destinations per hostname.private static classUsed for the values in the header skiplist Take care not to throw on any error.Fields in net.i2p.router.naming declared as SerializerModifier and TypeFieldDescriptionBlockfileNamingService._destSerializerSerializer in effect for destination entries.private static final Serializer<BlockfileNamingService.DestEntry> BlockfileNamingService._destSerializerV1Serializer for version 1 destination entries.private static final Serializer<BlockfileNamingService.DestEntry> BlockfileNamingService._destSerializerV4Serializer for version 4 destination entries.private static final Serializer<Integer> BlockfileNamingService._hashIndexSerializerSerializer for hash index keys.private static final Serializer<Properties> BlockfileNamingService._infoSerializerSerializer for the info block.private static final Serializer<String> BlockfileNamingService._stringSerializerSerializer for host names.Uses of Serializer in net.metanotion.io.block
Methods in net.metanotion.io.block with parameters of type SerializerModifier and TypeMethodDescription<K extends Comparable<? super K>, V>
BSkipList<K, V> BlockFile.getIndex(String name, Serializer<K> key, Serializer<V> val) Open a skiplist if it exists.<K extends Comparable<? super K>, V>
BSkipList<K, V> BlockFile.makeIndex(String name, Serializer<K> key, Serializer<V> val) Create and open a new skiplist if it does not exist.<K extends Comparable<? super K>, V>
voidBlockFile.reformatIndex(String name, Serializer<K> oldKey, Serializer<V> oldVal, Serializer<K> newKey, Serializer<V> newVal) Reformat a skiplist with new Serializers if it exists.Uses of Serializer in net.metanotion.io.block.index
Fields in net.metanotion.io.block.index declared as SerializerModifier and TypeFieldDescriptionprotected Serializer<K> BSkipSpan.keySerKey serializerprotected Serializer<V> BSkipSpan.valSerValue serializerMethods in net.metanotion.io.block.index with parameters of type SerializerModifier and TypeMethodDescriptionprivate 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 SerializerModifierConstructorDescriptionBSkipList(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.BSkipSpan(BlockFile bf, BSkipList<K, V> bsl, int spanPage, Serializer<K> key, Serializer<V> val) Create a BSkipSpan and load its data from disk.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.Uses of Serializer in net.metanotion.io.data
Classes in net.metanotion.io.data that implement SerializerModifier and TypeClassDescriptionclassPass-through serializer for byte arrays.classInteger serializer using 4-byte big-endian representation.classString serializer using US-ASCII encoding.classString serializer using UTF-8 encoding.