Table of Contents

Class AggregateFacet<TInput>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents a facet to be passed to the Facet method.

public abstract class AggregateFacet<TInput>

Type Parameters

TInput

The type of the input documents.

Inheritance
AggregateFacet<TInput>
Derived
Inherited Members

Constructors

AggregateFacet(string)

Initializes a new instance of the AggregateFacet<TInput> class.

protected AggregateFacet(string name)

Parameters

name string

The facet name.

Properties

Name

Gets the facet name.

public string Name { get; }

Property Value

string

OutputSerializer

Gets the output serializer.

public abstract IBsonSerializer OutputSerializer { get; }

Property Value

IBsonSerializer

OutputType

Gets the type of the output documents.

public abstract Type OutputType { get; }

Property Value

Type

Methods

RenderPipeline(IBsonSerializer<TInput>, IBsonSerializerRegistry, LinqProvider)

Renders the facet pipeline.

public abstract BsonArray RenderPipeline(IBsonSerializer<TInput> inputSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

inputSerializer IBsonSerializer<TInput>

The input serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

BsonArray

The rendered pipeline.