C# Class Raven.Database.Queries.FacetedQueryRunner.QueryForFacets

Show file Open project: robashton/ravendb

Private Properties

Property Type Description
ApplyAggregation void
ApplyFacetValueHit void
CompleteFacetCalculationsStage1 void
CompleteFacetCalculationsStage2 void
GetRangeName string
GetSortOptionsForFacet SortOptions
GetValueFromIndex double
TryTrimRangeSuffix string
UpdateFacetResults void

Public Methods

Method Description
Execute ( ) : void
QueryForFacets ( DocumentDatabase database, string index, Facet>.Dictionary facets, Dictionary ranges, IndexQuery indexQuery, FacetResults results, int start, int pageSize ) : System

Private Methods

Method Description
ApplyAggregation ( Facet facet, Raven.Abstractions.Data.FacetValue value, double currentVal ) : void
ApplyFacetValueHit ( Raven.Abstractions.Data.FacetValue facetValue, Facet value, int docId, ParsedRange parsedRange ) : void
CompleteFacetCalculationsStage1 ( IndexSearcherHolder state ) : void
CompleteFacetCalculationsStage2 ( ) : void
GetRangeName ( Lucene.Net.Index.Term term ) : string
GetSortOptionsForFacet ( string field ) : SortOptions
GetValueFromIndex ( Lucene.Net.Index.Term term ) : double
TryTrimRangeSuffix ( string fieldName ) : string
UpdateFacetResults ( FacetValue>.Dictionary facetsByName ) : void

Method Details

Execute() public method

public Execute ( ) : void
return void

QueryForFacets() public method

public QueryForFacets ( DocumentDatabase database, string index, Facet>.Dictionary facets, Dictionary ranges, IndexQuery indexQuery, FacetResults results, int start, int pageSize ) : System
database DocumentDatabase
index string
facets Facet>.Dictionary
ranges Dictionary
indexQuery Raven.Abstractions.Data.IndexQuery
results Raven.Abstractions.Data.FacetResults
start int
pageSize int
return System