C# 클래스 Rubber.DSL.Facet.HistogramFacetBuilder

A facet builder of histogram facets.
상속: AbstractFacetBuilder
파일 보기 프로젝트 열기: stephenpope/Rubber

공개 메소드들

메소드 설명
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