| Modifier and Type | Method and Description |
|---|---|
Query |
build()
Builds an instance of
Query. |
Query.QueryBuilder |
filter(String filterTemplate)
Sets search filter template.
|
Query.QueryBuilder |
limit(int limit)
Sets the maximum number of entries to be returned as a result of the search.
|
Query.QueryBuilder |
map(String key,
String value)
Sets mapping between names in the search filter template and actual values.
|
Query.QueryBuilder |
map(String key,
String[] values)
Sets mapping between names in the search filter template and actual values.
|
Query.QueryBuilder |
returnAttribute(String attributeName)
Sets attribute that should be returned in results for the query.
|
public Query.QueryBuilder filter(String filterTemplate)
filterTemplate - search filter templatepublic Query.QueryBuilder map(String key, String value)
key - marker in the search filter template.value - actual valuepublic Query.QueryBuilder map(String key, String[] values)
key - marker in the search filter template.values - array of valuespublic Query.QueryBuilder returnAttribute(String attributeName)
attributeName - attribute namepublic Query.QueryBuilder limit(int limit)
limit - The maximum number of entries that will be returned.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.