Interface Filter
-
public interface Filter
Represents a filter used in theMGET
command.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description String
toString()
static Filter
withLabel(String label)
Creates alabel=
, selecting samples containing the given label.static Filter
withLabel(String label, Object value)
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 Detail
-
withLabel
static Filter withLabel(String label, Object value)
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
static Filter withoutLabel(String label, String value)
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
static Filter withLabel(String label)
Creates alabel=
, selecting samples containing the given label.- Parameters:
label
- the label, must not benull
- Returns:
- the filter
-
withoutLabel
static Filter withoutLabel(String label)
Creates alabel!=
, selecting samples that do not have the given label.- Parameters:
label
- the label, must not benull
- Returns:
- the filter
-
withLabelHavingValueFrom
static Filter withLabelHavingValueFrom(String label, String... values)
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
static 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.- Parameters:
label
- the label, must not benull
values
- the values- Returns:
- the filter
-
-