| Constructor and Description |
|---|
Query.Factory() |
| Modifier and Type | Method and Description |
|---|---|
static Query |
createAndQuery(Query[] queries,
Map<String,Object> extendedOptions)
Creates an AND query
|
static BasicSearchQuery |
createBrowseQuery()
Creates a browse query that will return all documents in the database folder, excluding any child database folders.
|
static BasicSearchQuery |
createExtendedQuery(String query,
Map<String,Object> extendedOptions)
This creates a query with extended options (stored in a map as key/value combinations)
|
static Query |
createFieldQuery(DocumentField field,
Condition condition,
Object value)
This creates a query to see if a given field value matches a condition.
|
static Query |
createFieldQuery(DocumentField field,
Condition condition,
Object[] values)
This creates a query to see if a given field value matches a condition.
|
static Query |
createFieldQuery(DocumentField field,
Condition condition,
Object[] values,
Map<String,Object> extendedOptions)
This creates a query to see if a given field value matches a condition.
|
static Query |
createOrQuery(Query[] queries,
Map<String,Object> extendedOptions)
Creates an OR query
|
static BasicSearchQuery |
createQuery(String query)
Creates a query based on the provided query string.
|
public static Query createAndQuery(Query[] queries, Map<String,Object> extendedOptions)
queries - 2 or more queries to combine into an AND query.extendedOptions - provide extended options as a map from the extended option names to values. This may be an empty map.public static Query createOrQuery(Query[] queries, Map<String,Object> extendedOptions)
queries - 2 or more queries to combine into an OR query.extendedOptions - provide extended options as a map from the extended option names to values. This may be an empty map.public static BasicSearchQuery createBrowseQuery()
createQuery(String)public static BasicSearchQuery createQuery(String query)
query - the query stringcreateBrowseQuery()public static BasicSearchQuery createExtendedQuery(String query, Map<String,Object> extendedOptions)
query - the query stringextendedOptions - provide extended options as a map from the extended option names to values. This may be an empty map.public static Query createFieldQuery(DocumentField field, Condition condition, Object value)
Condition.IN_RANGE
use createFieldQuery(com.biomatters.geneious.publicapi.documents.DocumentField, com.biomatters.geneious.publicapi.documents.Condition, Object[]) instead.field - the field to searchcondition - the condition to apply when searching this fieldvalue - the value to apply to the conditionpublic static Query createFieldQuery(DocumentField field, Condition condition, Object[] values)
Condition.IN_RANGE.
For conditions that require single parameters (for example Condition.EQUAL
use createFieldQuery(com.biomatters.geneious.publicapi.documents.DocumentField,com.biomatters.geneious.publicapi.documents.Condition,Object) instead.field - the field to searchcondition - the condition to apply when searching this fieldvalues - the values to apply to the conditionpublic static Query createFieldQuery(DocumentField field, Condition condition, Object[] values, Map<String,Object> extendedOptions)
field - the field to searchcondition - the condition to apply when searching this fieldvalues - the values to apply to the conditionextendedOptions - provide extended options as a map from the extended option names to values. This may be an empty map.