public static interface FacetResult.Builder extends SdkPojo, CopyableBuilder<FacetResult.Builder,FacetResult>
| Modifier and Type | Method and Description |
|---|---|
FacetResult.Builder |
documentAttributeKey(String documentAttributeKey)
The key for the facet values.
|
FacetResult.Builder |
documentAttributeValueCountPairs(Collection<DocumentAttributeValueCountPair> documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of
documents that share the key value.
|
FacetResult.Builder |
documentAttributeValueCountPairs(Consumer<DocumentAttributeValueCountPair.Builder>... documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of
documents that share the key value.
|
FacetResult.Builder |
documentAttributeValueCountPairs(DocumentAttributeValueCountPair... documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of
documents that share the key value.
|
FacetResult.Builder |
documentAttributeValueType(DocumentAttributeValueType documentAttributeValueType)
The data type of the facet value.
|
FacetResult.Builder |
documentAttributeValueType(String documentAttributeValueType)
The data type of the facet value.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFacetResult.Builder documentAttributeKey(String documentAttributeKey)
The key for the facet values. This is the same as the DocumentAttributeKey provided in the
query.
documentAttributeKey - The key for the facet values. This is the same as the DocumentAttributeKey provided in
the query.FacetResult.Builder documentAttributeValueType(String documentAttributeValueType)
The data type of the facet value. This is the same as the type defined for the index field when it was created.
documentAttributeValueType - The data type of the facet value. This is the same as the type defined for the index field when it was
created.DocumentAttributeValueType,
DocumentAttributeValueTypeFacetResult.Builder documentAttributeValueType(DocumentAttributeValueType documentAttributeValueType)
The data type of the facet value. This is the same as the type defined for the index field when it was created.
documentAttributeValueType - The data type of the facet value. This is the same as the type defined for the index field when it was
created.DocumentAttributeValueType,
DocumentAttributeValueTypeFacetResult.Builder documentAttributeValueCountPairs(Collection<DocumentAttributeValueCountPair> documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
documentAttributeValueCountPairs - An array of key/value pairs, where the key is the value of the attribute and the count is the number
of documents that share the key value.FacetResult.Builder documentAttributeValueCountPairs(DocumentAttributeValueCountPair... documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
documentAttributeValueCountPairs - An array of key/value pairs, where the key is the value of the attribute and the count is the number
of documents that share the key value.FacetResult.Builder documentAttributeValueCountPairs(Consumer<DocumentAttributeValueCountPair.Builder>... documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called
immediately and its result is passed to #documentAttributeValueCountPairs(List) .documentAttributeValueCountPairs - a consumer that will call methods on List.Builder #documentAttributeValueCountPairs(List) Copyright © 2020. All rights reserved.