public class JobRowFilter extends Object
Constructor and Description |
---|
JobRowFilter(String filterQuery)
Parses the URL ApiJobStore filter query and generates the JobRowFilter object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
JobField |
getJobField() |
FilterOperation |
getOperation() |
Set<String> |
getValues() |
int |
hashCode() |
JobRowFilter |
withJobField(JobField jobField)
Construct an JobRowFilter object using the same FilterOperation and values as the object on
which this method is called and using the supplied JobField.
|
JobRowFilter |
withOperation(FilterOperation operation)
Construct an JobRowFilter object using the same JobField and values as the object on
which this method is called and using the supplied FilterOperation.
|
JobRowFilter |
withValues(Set<String> values)
Construct an JobRowFilter object using the same JobField and FilterOperation as the object on
which this method is called and using the supplied values.
|
public JobRowFilter(@NotNull String filterQuery) throws BadFilterException
filterQuery
- Expects a URL ApiJobStore filter query String in the format:
(JobField name)-(operation)[?(value or comma separated values)]?
BadFilterException
- when filter pattern is not matched or when any of its properties are not
valid.public JobField getJobField()
public FilterOperation getOperation()
public JobRowFilter withJobField(JobField jobField)
jobField
- The JobField to perform the filtering onpublic JobRowFilter withOperation(FilterOperation operation)
operation
- The operation to perform (eg: eq)public JobRowFilter withValues(Set<String> values)
values
- A Set of Strings to compare the JobField's value toCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.