C# Class Rubber.DSL.Facet.HistogramFacetBuilder

A facet builder of histogram facets.
Inheritance: AbstractFacetBuilder
Afficher le fichier Open project: stephenpope/Rubber

Méthodes publiques

Méthode Description
Bounds ( object from, object to ) : HistogramFacetBuilder

Sets the bounds from and to for the facet. Both performs bounds check and includes only values within the bounds, and improves performance.

Comparator ( HistogramComparatorType comparatorType ) : HistogramFacetBuilder
FacetFilter ( IFilterBuilder filter ) : HistogramFacetBuilder

An additional filter used to further filter down the set of documents the facet will run on.

Field ( string field ) : HistogramFacetBuilder

The field name to perform the histogram facet. Translates to perform the histogram facet using the provided field as both the {@link #keyField(string)} and {@link #valueField(string)}.

Global ( bool global ) : HistogramFacetBuilder

Should the facet run in global mode (not bounded by the search query) or not (bounded by the search query). Defaults to false.

HistogramFacetBuilder ( string name ) : System

Constructs a new histogram facet with the provided facet logical name.

Interval ( System.TimeSpan span ) : HistogramFacetBuilder

The interval used to control the bucket "size" where each key value of a hit will fall into.

Interval ( long interval ) : HistogramFacetBuilder

The interval used to control the bucket "size" where each key value of a hit will fall into.

KeyField ( string keyField ) : HistogramFacetBuilder

The field name to use in order to control where the hit will "fall into" within the histogram entries. Essentially, using the key field numeric value, the hit will be "rounded" into the relevant bucket controlled by the interval.

Nested ( string nested ) : HistogramFacetBuilder

Sets the nested path the facet will execute on. A match (root object) will then cause all the nested objects matching the path to be computed into the facet.

Scope ( string scope ) : HistogramFacetBuilder

Marks the facet to run in a specific scope.

ToJsonObject ( ) : object
ValueField ( string valueField ) : HistogramFacetBuilder

The field name to use as the value of the hit to compute data based on values within the interval (for example, total).

Method Details

Bounds() public méthode

Sets the bounds from and to for the facet. Both performs bounds check and includes only values within the bounds, and improves performance.
public Bounds ( object from, object to ) : HistogramFacetBuilder
from object
to object
Résultat HistogramFacetBuilder

Comparator() public méthode

public Comparator ( HistogramComparatorType comparatorType ) : HistogramFacetBuilder
comparatorType HistogramComparatorType
Résultat HistogramFacetBuilder

FacetFilter() public méthode

An additional filter used to further filter down the set of documents the facet will run on.
public FacetFilter ( IFilterBuilder filter ) : HistogramFacetBuilder
filter IFilterBuilder
Résultat HistogramFacetBuilder

Field() public méthode

The field name to perform the histogram facet. Translates to perform the histogram facet using the provided field as both the {@link #keyField(string)} and {@link #valueField(string)}.
public Field ( string field ) : HistogramFacetBuilder
field string
Résultat HistogramFacetBuilder

Global() public méthode

Should the facet run in global mode (not bounded by the search query) or not (bounded by the search query). Defaults to false.
public Global ( bool global ) : HistogramFacetBuilder
global bool
Résultat HistogramFacetBuilder

HistogramFacetBuilder() public méthode

Constructs a new histogram facet with the provided facet logical name.
public HistogramFacetBuilder ( string name ) : System
name string
Résultat System

Interval() public méthode

The interval used to control the bucket "size" where each key value of a hit will fall into.
public Interval ( System.TimeSpan span ) : HistogramFacetBuilder
span System.TimeSpan
Résultat HistogramFacetBuilder

Interval() public méthode

The interval used to control the bucket "size" where each key value of a hit will fall into.
public Interval ( long interval ) : HistogramFacetBuilder
interval long
Résultat HistogramFacetBuilder

KeyField() public méthode

The field name to use in order to control where the hit will "fall into" within the histogram entries. Essentially, using the key field numeric value, the hit will be "rounded" into the relevant bucket controlled by the interval.
public KeyField ( string keyField ) : HistogramFacetBuilder
keyField string
Résultat HistogramFacetBuilder

Nested() public méthode

Sets the nested path the facet will execute on. A match (root object) will then cause all the nested objects matching the path to be computed into the facet.
public Nested ( string nested ) : HistogramFacetBuilder
nested string
Résultat HistogramFacetBuilder

Scope() public méthode

Marks the facet to run in a specific scope.
public Scope ( string scope ) : HistogramFacetBuilder
scope string
Résultat HistogramFacetBuilder

ToJsonObject() public méthode

public ToJsonObject ( ) : object
Résultat object

ValueField() public méthode

The field name to use as the value of the hit to compute data based on values within the interval (for example, total).
public ValueField ( string valueField ) : HistogramFacetBuilder
valueField string
Résultat HistogramFacetBuilder