Compresses and decompresses MongoDB input and output.

Constructor

Static Properties

Static Functions

decompressLevel ( ) {

Decompress a "document level" - an Object containing non-dotted paths mapped to leaf data or more document levels.

Arguments

decompressPath ( ) {

Convert a compressed dotted path to its uncompressed equivalent.

Arguments

Instance Methods

compressDocumentLevel ( ) {

Compress a "document level" - an Object containing non-dotted paths mapped to leaf data or more document levels.

Arguments

compressIndexName ( ) {

Compress an index name matching the format of automatically-generated index names.

Arguments

compressOperatorLevel ( ) {

Recursively compress an "operator" level - an Object containing either dotted paths or operators mapped to leaf data, Arrays, or additional layers.

Arguments

compressPath ( ) {

Convert a dotted path to its compressed equivalent. Return an Error if the minifications do not already exist.

Arguments

decompress (
[ root ] ,
) {

Decompress a previously compressed database record.

Arguments

decompressIndexName ( ) {

Decompress an index name matching the format of automatically-generated index names.

Arguments

dropAlias ( ) {

//

ready ( ) {

Prepare vital collection indexes and prepare native driver instances. When the callback fires, this Compressor is ready to read and write compressed documents.

Arguments

setAlias ( ) {

//

setCompressed ( ) {

Mark a path as containing compressed information. Used for undoing setDecompressed.

Arguments

setUncompressed ( ) {

Mark a path as containing uncompressed information.

Arguments

waitForShort ( ) {

Wait (and poll) for a new minification key to be fully defined on the database.

Arguments

Local Variables

| Object documentClasses

Document class records are always cached permenantly.

Local Functions

private
getMin ( ) {

Get a minification key for a number.