Package dev.morphia

Class MapReduceOptions<T>

  • Type Parameters:
    T - the type of the output

    @Deprecated
    public class MapReduceOptions<T>
    extends java.lang.Object
    Deprecated.
    This feature will not be supported in 2.0
    This defines options that can be applied to a mapreduce job
    Since:
    1.3
    • Constructor Detail

      • MapReduceOptions

        public MapReduceOptions()
        Deprecated.
    • Method Detail

      • bypassDocumentValidation

        public MapReduceOptions<T> bypassDocumentValidation​(java.lang.Boolean bypassDocumentValidation)
        Deprecated.
        Sets whether to bypass document validation.
        Parameters:
        bypassDocumentValidation - whether to bypass document validation, or null if unspecified
        Returns:
        this
        Since server release
        3.2
      • collation

        public MapReduceOptions<T> collation​(com.mongodb.client.model.Collation collation)
        Deprecated.
        Sets the collation options
        Parameters:
        collation - the collation options
        Returns:
        this
        Since server release
        3.4
      • finalize

        public MapReduceOptions<T> finalize​(java.lang.String finalize)
        Deprecated.
        Sets the Finalize JS Function
        Parameters:
        finalize - The finalize function (as a JS String)
        Returns:
        this
      • jsMode

        public MapReduceOptions<T> jsMode​(java.lang.Boolean jsMode)
        Deprecated.
        Sets the (optional) JavaScript Mode
        Parameters:
        jsMode - Specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions
        Returns:
        this
      • limit

        public MapReduceOptions<T> limit​(int limit)
        Deprecated.
        Sets the (optional) limit on input
        Parameters:
        limit - The limit specification object
        Returns:
        this
      • map

        public MapReduceOptions<T> map​(java.lang.String map)
        Deprecated.
        Set the JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
        Parameters:
        map - the JavaScript function
        Returns:
        this
      • maxTimeMS

        public MapReduceOptions<T> maxTimeMS​(long maxTimeMS)
        Deprecated.
        Sets the max execution time for this command, in the given time unit.
        Parameters:
        maxTimeMS - the maximum execution time in milliseconds. A non-zero value requires a server version >= 2.6
        Returns:
        this
        Since server release
        2.6
      • inputCollection

        public MapReduceOptions<T> inputCollection​(java.lang.String name)
        Deprecated.
        Sets the input collection for the job should that collection differ from the mapped collection used in the query
        Parameters:
        name - the collection name
        Returns:
        this
      • outputCollection

        public MapReduceOptions<T> outputCollection​(java.lang.String name)
        Deprecated.
        Sets the output collection for the job
        Parameters:
        name - the collection name
        Returns:
        this
      • outputDB

        public MapReduceOptions<T> outputDB​(java.lang.String outputDB)
        Deprecated.
        Sets the (optional) database name where the output collection should reside
        Parameters:
        outputDB - the name of the database to send the Map Reduce output to
        Returns:
        this
      • outputType

        public MapReduceOptions<T> outputType​(com.mongodb.MapReduceCommand.OutputType outputType)
        Deprecated.
        Sets the output type of the job
        Parameters:
        outputType - the output type
        Returns:
        this
      • query

        public MapReduceOptions<T> query​(Query query)
        Deprecated.
        Sets the query defining the input for the job. Must not be null.
        Parameters:
        query - the query to use
        Returns:
        this
      • readPreference

        public MapReduceOptions<T> readPreference​(com.mongodb.ReadPreference preference)
        Deprecated.
        Sets the read preference for this command. See the documentation for ReadPreference for more information.
        Parameters:
        preference - Read Preference to use
        Returns:
        this
      • reduce

        public MapReduceOptions<T> reduce​(java.lang.String reduce)
        Deprecated.
        Sets the JavaScript function that "reduces" to a single object all the values associated with a particular key.
        Parameters:
        reduce - the javascript function
        Returns:
        this
      • resultType

        public MapReduceOptions<T> resultType​(java.lang.Class<T> resultType)
        Deprecated.
        Sets the result type of the job
        Parameters:
        resultType - the type
        Returns:
        this
      • scope

        public MapReduceOptions<T> scope​(java.util.Map<java.lang.String,​java.lang.Object> scope)
        Deprecated.
        Sets the (optional) JavaScript scope
        Parameters:
        scope - The JavaScript scope
        Returns:
        this
      • verbose

        public MapReduceOptions<T> verbose​(java.lang.Boolean verbose)
        Deprecated.
        Sets the verbosity of the MapReduce job, defaults to 'true'
        Parameters:
        verbose - The verbosity level.
        Returns:
        this