Class AggregateFacet<TInput, TOutput>
Represents a facet to be passed to the Facet method.
public class AggregateFacet<TInput, TOutput> : AggregateFacet<TInput>
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the otuput documents.
- Inheritance
-
AggregateFacet<TInput>AggregateFacet<TInput, TOutput>
- Inherited Members
Constructors
AggregateFacet(string, PipelineDefinition<TInput, TOutput>)
Initializes a new instance of the AggregateFacet<TInput, TOutput> class.
public AggregateFacet(string name, PipelineDefinition<TInput, TOutput> pipeline)
Parameters
name
stringThe facet name.
pipeline
PipelineDefinition<TInput, TOutput>The facet pipeline.
Properties
OutputSerializer
Gets the output serializer.
public override IBsonSerializer OutputSerializer { get; }
Property Value
OutputType
Gets the type of the output documents.
public override Type OutputType { get; }
Property Value
Pipeline
Gets the facet pipeline.
public PipelineDefinition<TInput, TOutput> Pipeline { get; }
Property Value
- PipelineDefinition<TInput, TOutput>
Methods
RenderPipeline(IBsonSerializer<TInput>, IBsonSerializerRegistry, LinqProvider)
Renders the facet pipeline.
public override BsonArray RenderPipeline(IBsonSerializer<TInput> inputSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
inputSerializer
IBsonSerializer<TInput>The input serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe LINQ provider.
Returns
- BsonArray
The rendered pipeline.