Class FieldStatistics.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.termvectors.FieldStatistics.Builder
-
- All Implemented Interfaces:
ObjectBuilder<FieldStatistics>
- Enclosing class:
- FieldStatistics
public static class FieldStatistics.Builder extends ObjectBuilderBase implements ObjectBuilder<FieldStatistics>
Builder forFieldStatistics
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldStatistics
build()
Builds aFieldStatistics
.FieldStatistics.Builder
docCount(int value)
Required - API name:doc_count
FieldStatistics.Builder
sumDocFreq(long value)
Required - API name:sum_doc_freq
FieldStatistics.Builder
sumTtf(long value)
Required - API name:sum_ttf
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
docCount
public final FieldStatistics.Builder docCount(int value)
Required - API name:doc_count
-
sumDocFreq
public final FieldStatistics.Builder sumDocFreq(long value)
Required - API name:sum_doc_freq
-
sumTtf
public final FieldStatistics.Builder sumTtf(long value)
Required - API name:sum_ttf
-
build
public FieldStatistics build()
Builds aFieldStatistics
.- Specified by:
build
in interfaceObjectBuilder<FieldStatistics>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-