All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.torodb.torod.mongodb.MongoLayerConstants Maven / Gradle / Ivy

Go to download

MongoDB layer. Implementation of the callbacks provided by MongoWP to provide Mongo-like behavior to ToroDB.

There is a newer version: 0.40
Show newest version

package com.torodb.torod.mongodb;

import com.google.common.collect.ImmutableList;

/**
 *
 */
public final class MongoLayerConstants {
	public static final int VERSION_MAJOR = 3;
	public static final int VERSION_MINOR = 0;
	public static final int VERSION_PATCH = 0;
	public static final String VERSION_STRING =
			VERSION_MAJOR + "." +
			VERSION_MINOR + "." +
			VERSION_PATCH;
	public static final ImmutableList VERSION = ImmutableList.of(
		MongoLayerConstants.VERSION_MAJOR,
		MongoLayerConstants.VERSION_MINOR,
		MongoLayerConstants.VERSION_PATCH
    );

    public static final int MAX_WIRE_VERSION = 3;
    public static final int MIN_WIRE_VERSION = 0;

    /**
     * Obtained from
     * MongoDB Limits and Thresholds.
     *
     */
    public static final int MAX_BSON_DOCUMENT_SIZE = 16 * 1024 * 1024;

    public static final int MAX_WRITE_BATCH_SIZE = 1000;

    /**
     * Obtained from
     * mongo / src / mongo / util / net / message.h.
     * Also explained in the isMaster function
     *
     */
    public static final int MAX_MESSAGE_SIZE_BYTES = 48 * 1000 * 1000;

    /**
     * Obtained from
     * Cursors / Cursor Batches.
     */
	public static final int MONGO_CURSOR_LIMIT = 101;

    private MongoLayerConstants() {
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy