Interface Filter
public interface Filter
Represents a filter used in the
MGET
command.-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static Filter
Creates alabel=
, selecting samples containing the given label.static Filter
Creates alabel=value
, selecting samples where the label equals value.static Filter
withLabelHavingValueFrom
(String label, String... values) Creates alabel=(value1,value2,...)
, selecting samples with the given label equals one of the values in the liststatic Filter
withLabelNotHavingValueFrom
(String label, String... values) Creates alabel!=(value1,value2,...)
, selecting samples with the given label with a value not equal to any of the values in the list.static Filter
withoutLabel
(String label) Creates alabel!=
, selecting samples that do not have the given label.static Filter
withoutLabel
(String label, String value) Creates alabel!=value
, selecting samples where the label is not equal to value.
-
Method Details
-
toString
String toString() -
withLabel
Creates alabel=value
, selecting samples where the label equals value.- Parameters:
label
- the label, must not benull
value
- the value, must not benull
- Returns:
- the filter
-
withoutLabel
Creates alabel!=value
, selecting samples where the label is not equal to value.- Parameters:
label
- the label, must not benull
value
- the value, must not benull
- Returns:
- the filter
-
withLabel
Creates alabel=
, selecting samples containing the given label.- Parameters:
label
- the label, must not benull
- Returns:
- the filter
-
withoutLabel
Creates alabel!=
, selecting samples that do not have the given label.- Parameters:
label
- the label, must not benull
- Returns:
- the filter
-
withLabelHavingValueFrom
Creates alabel=(value1,value2,...)
, selecting samples with the given label equals one of the values in the list- Parameters:
label
- the label, must not benull
- Returns:
- the filter
-
withLabelNotHavingValueFrom
Creates alabel!=(value1,value2,...)
, selecting samples with the given label with a value not equal to any of the values in the list.- Parameters:
label
- the label, must not benull
values
- the values- Returns:
- the filter
-