AbstractStringCache provides the basic functionality for tracking string usage and triggering rebuilds of the cache over time.
ReverseIntegerComparator provides a
A wrapper for an
Utilities to deal with integer endian differences.
Provides a capability similar to the ByteArrayOutputStream but also provides the ability to re-write portions of the stream already written and to determine the current size (or position) of the written data.
A visitor to determine the size of the documents it visits.
StringDecoder provides a decoder for byte arrays into strings that uses a trie data structure to cache recurring strings.
StringDecoderCache provides a cache for decoding strings.
A fast cache for bytes to decoded strings.
Node provides a single node in the trie.
StringEncoder provides a single location for the string encoding and sizing logic.
StringEncoderCache provides the ability to cache the encoding of a string to speed the writing of strings.
Two implementations of stream are provided:
BsonOutputStreamprovide the ability to read and write BSON documents directly to a stream without the need to buffer document contents to determine the length prefix for the document. They require 2 scans over the document. The first determines the size of the document and the second writes the document's contents.
BufferingBsonOutputStreamprovide the ability to write BSON documents using an intermediate re-used set of buffers for the document's contents.
Empirical testing has shown that the un-buffered BsonInputStream and BsonOutputStream perform better on most BSON documents.
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.