Interface Filter


  • public interface Filter
    Represents a filter used in the MGET command.
    • Method Detail

      • withLabel

        static Filter withLabel​(String label,
                                Object value)
        Creates a label=value, selecting samples where the label equals value.
        Parameters:
        label - the label, must not be null
        value - the value, must not be null
        Returns:
        the filter
      • withoutLabel

        static Filter withoutLabel​(String label,
                                   String value)
        Creates a label!=value, selecting samples where the label is not equal to value.
        Parameters:
        label - the label, must not be null
        value - the value, must not be null
        Returns:
        the filter
      • withLabel

        static Filter withLabel​(String label)
        Creates a label=, selecting samples containing the given label.
        Parameters:
        label - the label, must not be null
        Returns:
        the filter
      • withoutLabel

        static Filter withoutLabel​(String label)
        Creates a label!=, selecting samples that do not have the given label.
        Parameters:
        label - the label, must not be null
        Returns:
        the filter
      • withLabelHavingValueFrom

        static Filter withLabelHavingValueFrom​(String label,
                                               String... values)
        Creates a label=(value1,value2,...), selecting samples with the given label equals one of the values in the list
        Parameters:
        label - the label, must not be null
        Returns:
        the filter
      • withLabelNotHavingValueFrom

        static Filter withLabelNotHavingValueFrom​(String label,
                                                  String... values)
        Creates a label!=(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 be null
        values - the values
        Returns:
        the filter