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.
|
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 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.