C# Class ElasticLinq.Response.Materializers.TermlessFacetElasticMaterializer

Materializes a single termless facet from the response.
Inheritance: IElasticMaterializer
ファイルを表示 Open project: CenturyLinkCloud/ElasticLINQ Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Materialize ( ElasticLinq.Response.Model.ElasticResponse response ) : object

Materialize a single object from the response using the projector or return a default value based on the element type.

MaterializeSingle ( ElasticLinq.Response.Model.ElasticResponse response ) : object

Materialize a single object from the response using the projector or return null if there are no applicable facets.

TermlessFacetElasticMaterializer ( object>.Func projector, Type elementType, object key = null ) : ElasticLinq.Response.Model

Create an instance of the TermlessFacetElasticMaterializer with the given parameters.

Method Details

Materialize() public method

Materialize a single object from the response using the projector or return a default value based on the element type.
public Materialize ( ElasticLinq.Response.Model.ElasticResponse response ) : object
response ElasticLinq.Response.Model.ElasticResponse The to materialize facets from.
return object

MaterializeSingle() public method

Materialize a single object from the response using the projector or return null if there are no applicable facets.
public MaterializeSingle ( ElasticLinq.Response.Model.ElasticResponse response ) : object
response ElasticLinq.Response.Model.ElasticResponse The to materialize facets from.
return object

TermlessFacetElasticMaterializer() public method

Create an instance of the TermlessFacetElasticMaterializer with the given parameters.
public TermlessFacetElasticMaterializer ( object>.Func projector, Type elementType, object key = null ) : ElasticLinq.Response.Model
projector object>.Func A function to turn a hit into a desired object.
elementType System.Type The type of object being materialized.
key object The constant value for any key references during materialization.
return ElasticLinq.Response.Model