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

com.eightkdata.mongowp.mongoserver.api.commands.CollStatsRequest Maven / Gradle / Ivy


package com.eightkdata.mongowp.mongoserver.api.commands;

import io.netty.util.AttributeMap;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 *
 */
public class CollStatsRequest extends CollectionCommandRequest {

    private final Number scale;

    public CollStatsRequest(
            @Nonnull String database, 
            @Nonnull AttributeMap attributes, 
            @Nonnull String collection, 
            @Nullable @Nonnegative Number scale) {
        super(database, attributes, collection);
        this.scale = scale != null ? scale : 1;
    }

    @Nonnegative
    public Number getScale() {
        return scale;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy