Class AggregateFacet<TInput, TOutput>
Represents a facet to be passed to the Facet method.
public class AggregateFacet<TInput, TOutput> : AggregateFacet<TInput>
Type Parameters
TInputThe type of the input documents.
TOutputThe 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
namestringThe facet name.
pipelinePipelineDefinition<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
inputSerializerIBsonSerializer<TInput>The input serializer.
serializerRegistryIBsonSerializerRegistryThe serializer registry.
linqProviderLinqProviderThe LINQ provider.
Returns
- BsonArray
The rendered pipeline.