Interface Filter
public interface Filter
Represents a filter used in the
MGET command.-
Method Summary
Modifier and TypeMethodDescriptiontoString()static FilterCreates alabel=, selecting samples containing the given label.static FilterCreates 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 Details
-
toString
String toString() -
withLabel
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
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
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 benullvalues- the values- Returns:
- the filter
-