Interface Filter
-
public interface FilterRepresents a filter used in theMGETcommand.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description StringtoString()static FilterwithLabel(String label)Creates alabel=, selecting samples containing the given label.static FilterwithLabel(String label, Object value)Creates alabel=value, selecting samples where the label equals value.static FilterwithLabelHavingValueFrom(String label, String... values)Creates alabel=(value1,value2,...), selecting samples with the given label equals one of the values in the liststatic FilterwithLabelNotHavingValueFrom(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 FilterwithoutLabel(String label)Creates alabel!=, selecting samples that do not have the given label.static FilterwithoutLabel(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 benullvalue- 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 benullvalue- 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 benullvalues- the values- Returns:
- the filter
-
-