C# Класс MongoDB.Driver.MapReduceBuilder

Provides a Fluent interface to build and execute Map/Reduce calls.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void
Execute ( ) : MapReduce
Finalize ( Code function ) : MapReduceBuilder

Function to apply to all the results when finished.

KeepTemp ( bool keep ) : MapReduceBuilder

When true the generated collection is not treated as temporary. Specifying out automatically makes the collection permanent

Limit ( long limit ) : MapReduceBuilder

Number of objects to return from collection

Map ( Code function ) : MapReduceBuilder

The map function references the variable this to inspect the current object under consideration. A map function must call emit(key,value) at least once, but may be invoked any number of times, as may be appropriate.

Map ( string function ) : MapReduceBuilder

The map function references the variable this to inspect the current object under consideration. A map function must call emit(key,value) at least once, but may be invoked any number of times, as may be appropriate.

MapReduceBuilder ( MapReduce mr ) : System
Out ( String name ) : MapReduceBuilder

Name of the final collection the results should be stored in.

A temporary collection is still used and then renamed to the target name atomically.

Query ( Document query ) : MapReduceBuilder

Query filter object

Reduce ( Code function ) : MapReduceBuilder

The reduce function receives a key and an array of values. To use, reduce the received values, and return a result.

The MapReduce engine may invoke reduce functions iteratively; thus, these functions must be idempotent. If you need to perform an operation only once, use a finalize function.

Reduce ( string function ) : MapReduceBuilder

The reduce function receives a key and an array of values. To use, reduce the received values, and return a result.

The MapReduce engine may invoke reduce functions iteratively; thus, these functions must be idempotent. If you need to perform an operation only once, use a finalize function.

Scope ( Document scope ) : MapReduceBuilder

Document where fields go into javascript global scope

Sort ( Document sort ) : MapReduceBuilder

Sort the query. Useful for optimization

Verbose ( bool val ) : MapReduceBuilder

Provides statistics on job execution time.

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

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

public Dispose ( ) : void
Результат void

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

public Execute ( ) : MapReduce
Результат MapReduce

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

Function to apply to all the results when finished.
public Finalize ( Code function ) : MapReduceBuilder
function Code
Результат MapReduceBuilder

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

When true the generated collection is not treated as temporary. Specifying out automatically makes the collection permanent
public KeepTemp ( bool keep ) : MapReduceBuilder
keep bool
Результат MapReduceBuilder

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

Number of objects to return from collection
public Limit ( long limit ) : MapReduceBuilder
limit long
Результат MapReduceBuilder

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

The map function references the variable this to inspect the current object under consideration. A map function must call emit(key,value) at least once, but may be invoked any number of times, as may be appropriate.
public Map ( Code function ) : MapReduceBuilder
function Code
Результат MapReduceBuilder

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

The map function references the variable this to inspect the current object under consideration. A map function must call emit(key,value) at least once, but may be invoked any number of times, as may be appropriate.
public Map ( string function ) : MapReduceBuilder
function string
Результат MapReduceBuilder

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

public MapReduceBuilder ( MapReduce mr ) : System
mr MapReduce
Результат System

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

Name of the final collection the results should be stored in.
A temporary collection is still used and then renamed to the target name atomically.
public Out ( String name ) : MapReduceBuilder
name String
Результат MapReduceBuilder

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

Query filter object
public Query ( Document query ) : MapReduceBuilder
query Document
Результат MapReduceBuilder

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

The reduce function receives a key and an array of values. To use, reduce the received values, and return a result.
The MapReduce engine may invoke reduce functions iteratively; thus, these functions must be idempotent. If you need to perform an operation only once, use a finalize function.
public Reduce ( Code function ) : MapReduceBuilder
function Code
Результат MapReduceBuilder

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

The reduce function receives a key and an array of values. To use, reduce the received values, and return a result.
The MapReduce engine may invoke reduce functions iteratively; thus, these functions must be idempotent. If you need to perform an operation only once, use a finalize function.
public Reduce ( string function ) : MapReduceBuilder
function string
Результат MapReduceBuilder

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

Document where fields go into javascript global scope
public Scope ( Document scope ) : MapReduceBuilder
scope Document
Результат MapReduceBuilder

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

Sort the query. Useful for optimization
public Sort ( Document sort ) : MapReduceBuilder
sort Document
Результат MapReduceBuilder

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

Provides statistics on job execution time.
public Verbose ( bool val ) : MapReduceBuilder
val bool
Результат MapReduceBuilder