C# 클래스 MongoDB.MapReduce

Provides a Fluent interface to build and execute Map/Reduce calls.
상속: IDisposable
파일 보기 프로젝트 열기: oz-systems/mongodb-csharp

Private Properties

프로퍼티 타입 설명
RetrieveData void
TryModify void

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Finalize ( Code function ) : MapReduce

Function to apply to all the results when finished.

KeepTemp ( bool keep ) : MapReduce

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

Limit ( long limit ) : MapReduce

Number of objects to return from collection

Map ( Code function ) : MapReduce

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 ) : MapReduce

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.

MapReduce ( IMongoDatabase database, string name, Type rootType ) : System

Initializes a new instance of the MapReduce class.

Out ( Document @out ) : MapReduce

Specifies how to handle the final collection of results

Out ( String name ) : MapReduce

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 ) : MapReduce

Query filter object

Reduce ( Code function ) : MapReduce

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 ) : MapReduce

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 ) : MapReduce

Document where fields go into javascript global scope

Sort ( Document sort ) : MapReduce

Sort the query. Useful for optimization

Verbose ( bool val ) : MapReduce

Provides statistics on job execution time.

비공개 메소드들

메소드 설명
RetrieveData ( ) : void

Retrieves the data.

TryModify ( ) : void

Tries the modify.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Finalize() 공개 메소드

Function to apply to all the results when finished.
public Finalize ( Code function ) : MapReduce
function Code
리턴 MapReduce

KeepTemp() 공개 메소드

When true the generated collection is not treated as temporary. Specifying out automatically makes the collection permanent
public KeepTemp ( bool keep ) : MapReduce
keep bool
리턴 MapReduce

Limit() 공개 메소드

Number of objects to return from collection
public Limit ( long limit ) : MapReduce
limit long
리턴 MapReduce

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 ) : MapReduce
function Code
리턴 MapReduce

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 ) : MapReduce
function string
리턴 MapReduce

MapReduce() 공개 메소드

Initializes a new instance of the MapReduce class.
public MapReduce ( IMongoDatabase database, string name, Type rootType ) : System
database IMongoDatabase The database.
name string The name.
rootType System.Type Type of the root.
리턴 System

Out() 공개 메소드

Specifies how to handle the final collection of results
public Out ( Document @out ) : MapReduce
@out Document
리턴 MapReduce

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 ) : MapReduce
name String
리턴 MapReduce

Query() 공개 메소드

Query filter object
public Query ( Document query ) : MapReduce
query Document
리턴 MapReduce

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 ) : MapReduce
function Code
리턴 MapReduce

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 ) : MapReduce
function string
리턴 MapReduce

Scope() 공개 메소드

Document where fields go into javascript global scope
public Scope ( Document scope ) : MapReduce
scope Document
리턴 MapReduce

Sort() 공개 메소드

Sort the query. Useful for optimization
public Sort ( Document sort ) : MapReduce
sort Document
리턴 MapReduce

Verbose() 공개 메소드

Provides statistics on job execution time.
public Verbose ( bool val ) : MapReduce
val bool
리턴 MapReduce