Package com.morpheusdata.core.data
Class DataAndFilter
java.lang.Object
com.morpheusdata.core.data.DataFilter<Collection<DataFilter>>
com.morpheusdata.core.data.DataAndFilter
Creates a nested collection of operators that need to be checked in the
DataQuery
via an AND join operation.
If wanting to join via an OR operation instead a DataOrFilter
can be used. These filters can be nested within
each-other to create complex DataFilter
operations
Note: For examples on how to use these filters, please refer to the documentation on the DataQuery
class.
- Since:
- 0.15.2
- See Also:
-
Field Summary
FieldsFields inherited from class com.morpheusdata.core.data.DataFilter
DEFAULT_OPERATOR, name, operator, value
-
Constructor Summary
ConstructorsConstructorDescriptionDataAndFilter
(DataFilter... dataFilters) DataAndFilter
(Collection<DataFilter> dataFilters) -
Method Summary
Modifier and TypeMethodDescriptionwithFilter
(DataFilter dataFilter) A Chainable operation to append a sub filter into the AND OperationwithFilters
(DataFilter... dataFilter) withFilters
(Collection<DataFilter> dataFilters) A Chainable operation to append sub filters into the AND Operation
-
Field Details
-
AND_FIELD_NAME
-
AND_OPERATOR
-
-
Constructor Details
-
DataAndFilter
public DataAndFilter() -
DataAndFilter
-
DataAndFilter
-
-
Method Details
-
withFilter
A Chainable operation to append a sub filter into the AND Operation- Parameters:
dataFilter
- the nested Filter to add- Returns:
- a reference to the current DataAndFilter
-
withFilters
A Chainable operation to append sub filters into the AND Operation- Parameters:
dataFilters
- a collection of nested Filter to add- Returns:
- a reference to the current DataAndFilter
-
withFilters
-