C# Класс Rubber.DSL.Facet.HistogramFacetBuilder

A facet builder of histogram facets.
Наследование: AbstractFacetBuilder
Показать файл Открыть проект

Открытые методы

Метод Описание
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).

Описание методов

Bounds() публичный Метод

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
Результат HistogramFacetBuilder

Comparator() публичный Метод

public Comparator ( HistogramComparatorType comparatorType ) : HistogramFacetBuilder
comparatorType HistogramComparatorType
Результат HistogramFacetBuilder

FacetFilter() публичный Метод

An additional filter used to further filter down the set of documents the facet will run on.
public FacetFilter ( IFilterBuilder filter ) : HistogramFacetBuilder
filter IFilterBuilder
Результат HistogramFacetBuilder

Field() публичный Метод

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
Результат HistogramFacetBuilder

Global() публичный Метод

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
Результат HistogramFacetBuilder

HistogramFacetBuilder() публичный Метод

Constructs a new histogram facet with the provided facet logical name.
public HistogramFacetBuilder ( string name ) : System
name string
Результат System

Interval() публичный Метод

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
Результат HistogramFacetBuilder

Interval() публичный Метод

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
Результат HistogramFacetBuilder

KeyField() публичный Метод

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
Результат HistogramFacetBuilder

Nested() публичный Метод

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
Результат HistogramFacetBuilder

Scope() публичный Метод

Marks the facet to run in a specific scope.
public Scope ( string scope ) : HistogramFacetBuilder
scope string
Результат HistogramFacetBuilder

ToJsonObject() публичный Метод

public ToJsonObject ( ) : object
Результат object

ValueField() публичный Метод

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
Результат HistogramFacetBuilder