C# Класс MongoDB.Driver.Builders.MapReduceOptionsBuilder

Наследование: BuilderBase, IMongoMapReduceOptions
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MapReduceOptionsBuilder ( ) : System

Initializes a new instance of the MapReduceOptionsBuilder class.

SetFinalize ( BsonJavaScript finalize ) : MapReduceOptionsBuilder

Sets the finalize function.

SetJSMode ( bool value ) : MapReduceOptionsBuilder

Sets whether to use jsMode for the map reduce operation.

SetKeepTemp ( bool value ) : MapReduceOptionsBuilder

Sets whether to keep the temp collection (obsolete in 1.8.0+).

SetLimit ( int value ) : MapReduceOptionsBuilder

Sets the number of documents to send to the map function (useful in combination with SetSortOrder).

SetOutput ( MapReduceOutput output ) : MapReduceOptionsBuilder

Sets the output option (see MapReduceOutput).

SetQuery ( IMongoQuery query ) : MapReduceOptionsBuilder

Sets the optional query that filters which documents are sent to the map function (also useful in combination with SetSortOrder and SetLimit).

SetScope ( IMongoScope scope ) : MapReduceOptionsBuilder

Sets a scope that contains variables that can be accessed by the map, reduce and finalize functions.

SetSortOrder ( ) : MapReduceOptionsBuilder

Sets the sort order (useful in combination with SetLimit, your map function should not depend on the order the documents are sent to it).

SetSortOrder ( IMongoSortBy sortBy ) : MapReduceOptionsBuilder

Sets the sort order (useful in combination with SetLimit, your map function should not depend on the order the documents are sent to it).

SetVerbose ( bool value ) : MapReduceOptionsBuilder

Sets whether the server should be more verbose when logging map/reduce operations.

ToBsonDocument ( ) : BsonDocument

Returns the result of the builder as a BsonDocument.

Защищенные методы

Метод Описание
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

Приватные методы

Метод Описание
AddOptions ( BsonDocument options ) : MapReduceOptionsBuilder

Описание методов

MapReduceOptionsBuilder() публичный Метод

Initializes a new instance of the MapReduceOptionsBuilder class.
public MapReduceOptionsBuilder ( ) : System
Результат System

Serialize() защищенный Метод

Serializes the result of the builder to a BsonWriter.
protected Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void
bsonWriter BsonWriter The writer.
nominalType System.Type The nominal type.
options IBsonSerializationOptions The serialization options.
Результат void

SetFinalize() публичный Метод

Sets the finalize function.
public SetFinalize ( BsonJavaScript finalize ) : MapReduceOptionsBuilder
finalize BsonJavaScript The finalize function.
Результат MapReduceOptionsBuilder

SetJSMode() публичный Метод

Sets whether to use jsMode for the map reduce operation.
public SetJSMode ( bool value ) : MapReduceOptionsBuilder
value bool Whether to use jsMode.
Результат MapReduceOptionsBuilder

SetKeepTemp() публичный Метод

Sets whether to keep the temp collection (obsolete in 1.8.0+).
public SetKeepTemp ( bool value ) : MapReduceOptionsBuilder
value bool Whether to keep the temp collection.
Результат MapReduceOptionsBuilder

SetLimit() публичный Метод

Sets the number of documents to send to the map function (useful in combination with SetSortOrder).
public SetLimit ( int value ) : MapReduceOptionsBuilder
value int The number of documents to send to the map function.
Результат MapReduceOptionsBuilder

SetOutput() публичный Метод

Sets the output option (see MapReduceOutput).
public SetOutput ( MapReduceOutput output ) : MapReduceOptionsBuilder
output MapReduceOutput The output option.
Результат MapReduceOptionsBuilder

SetQuery() публичный Метод

Sets the optional query that filters which documents are sent to the map function (also useful in combination with SetSortOrder and SetLimit).
public SetQuery ( IMongoQuery query ) : MapReduceOptionsBuilder
query IMongoQuery The query.
Результат MapReduceOptionsBuilder

SetScope() публичный Метод

Sets a scope that contains variables that can be accessed by the map, reduce and finalize functions.
public SetScope ( IMongoScope scope ) : MapReduceOptionsBuilder
scope IMongoScope The scope.
Результат MapReduceOptionsBuilder

SetSortOrder() публичный Метод

Sets the sort order (useful in combination with SetLimit, your map function should not depend on the order the documents are sent to it).
public SetSortOrder ( ) : MapReduceOptionsBuilder
Результат MapReduceOptionsBuilder

SetSortOrder() публичный Метод

Sets the sort order (useful in combination with SetLimit, your map function should not depend on the order the documents are sent to it).
public SetSortOrder ( IMongoSortBy sortBy ) : MapReduceOptionsBuilder
sortBy IMongoSortBy The sort order.
Результат MapReduceOptionsBuilder

SetVerbose() публичный Метод

Sets whether the server should be more verbose when logging map/reduce operations.
public SetVerbose ( bool value ) : MapReduceOptionsBuilder
value bool Whether the server should be more verbose.
Результат MapReduceOptionsBuilder

ToBsonDocument() публичный Метод

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
Результат BsonDocument