public static class FederatedQueryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
FederatedQueryOptions.Builder()
Instantiates a new builder.
|
FederatedQueryOptions.Builder(java.lang.String environmentId,
java.util.List<java.lang.String> collectionIds)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
FederatedQueryOptions.Builder |
addCollectionIds(java.lang.String collectionIds)
Adds an collectionIds to collectionIds.
|
FederatedQueryOptions.Builder |
addReturnField(java.lang.String returnField)
Adds an returnField to returnFields.
|
FederatedQueryOptions.Builder |
addSimilarDocumentIds(java.lang.String similarDocumentIds)
Adds an similarDocumentIds to similarDocumentIds.
|
FederatedQueryOptions.Builder |
addSimilarFields(java.lang.String similarFields)
Adds an similarFields to similarFields.
|
FederatedQueryOptions.Builder |
addSort(java.lang.String sort)
Adds an sort to sort.
|
FederatedQueryOptions.Builder |
aggregation(java.lang.String aggregation)
Set the aggregation.
|
FederatedQueryOptions |
build()
Builds a FederatedQueryOptions.
|
FederatedQueryOptions.Builder |
collectionIds(java.util.List<java.lang.String> collectionIds)
Set the collectionIds.
|
FederatedQueryOptions.Builder |
count(long count)
Set the count.
|
FederatedQueryOptions.Builder |
deduplicate(java.lang.Boolean deduplicate)
Set the deduplicate.
|
FederatedQueryOptions.Builder |
deduplicateField(java.lang.String deduplicateField)
Set the deduplicateField.
|
FederatedQueryOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
FederatedQueryOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
FederatedQueryOptions.Builder |
highlight(java.lang.Boolean highlight)
Set the highlight.
|
FederatedQueryOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
FederatedQueryOptions.Builder |
offset(long offset)
Set the offset.
|
FederatedQueryOptions.Builder |
query(java.lang.String query)
Set the query.
|
FederatedQueryOptions.Builder |
returnFields(java.util.List<java.lang.String> returnFields)
Set the returnFields.
|
FederatedQueryOptions.Builder |
similar(java.lang.Boolean similar)
Set the similar.
|
FederatedQueryOptions.Builder |
similarDocumentIds(java.util.List<java.lang.String> similarDocumentIds)
Set the similarDocumentIds.
|
FederatedQueryOptions.Builder |
similarFields(java.util.List<java.lang.String> similarFields)
Set the similarFields.
|
FederatedQueryOptions.Builder |
sort(java.util.List<java.lang.String> sort)
Set the sort.
|
public FederatedQueryOptions.Builder()
public FederatedQueryOptions.Builder(java.lang.String environmentId, java.util.List<java.lang.String> collectionIds)
environmentId
- the environmentIdcollectionIds
- the collectionIdspublic FederatedQueryOptions build()
public FederatedQueryOptions.Builder addCollectionIds(java.lang.String collectionIds)
collectionIds
- the new collectionIdspublic FederatedQueryOptions.Builder addReturnField(java.lang.String returnField)
returnField
- the new returnFieldpublic FederatedQueryOptions.Builder addSort(java.lang.String sort)
sort
- the new sortpublic FederatedQueryOptions.Builder addSimilarDocumentIds(java.lang.String similarDocumentIds)
similarDocumentIds
- the new similarDocumentIdspublic FederatedQueryOptions.Builder addSimilarFields(java.lang.String similarFields)
similarFields
- the new similarFieldspublic FederatedQueryOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic FederatedQueryOptions.Builder collectionIds(java.util.List<java.lang.String> collectionIds)
collectionIds
- the collectionIdspublic FederatedQueryOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic FederatedQueryOptions.Builder query(java.lang.String query)
query
- the querypublic FederatedQueryOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic FederatedQueryOptions.Builder aggregation(java.lang.String aggregation)
aggregation
- the aggregationpublic FederatedQueryOptions.Builder count(long count)
count
- the countpublic FederatedQueryOptions.Builder returnFields(java.util.List<java.lang.String> returnFields)
returnFields
- the returnFieldspublic FederatedQueryOptions.Builder offset(long offset)
offset
- the offsetpublic FederatedQueryOptions.Builder sort(java.util.List<java.lang.String> sort)
sort
- the sortpublic FederatedQueryOptions.Builder highlight(java.lang.Boolean highlight)
highlight
- the highlightpublic FederatedQueryOptions.Builder deduplicate(java.lang.Boolean deduplicate)
deduplicate
- the deduplicatepublic FederatedQueryOptions.Builder deduplicateField(java.lang.String deduplicateField)
deduplicateField
- the deduplicateFieldpublic FederatedQueryOptions.Builder similar(java.lang.Boolean similar)
similar
- the similarpublic FederatedQueryOptions.Builder similarDocumentIds(java.util.List<java.lang.String> similarDocumentIds)
similarDocumentIds
- the similarDocumentIdspublic FederatedQueryOptions.Builder similarFields(java.util.List<java.lang.String> similarFields)
similarFields
- the similarFields