# Path: emma/query/operator.py
# class EqualityQuery(CompositeQuery):
# class LessThanQuery(CompositeQuery):
# class GreaterThanQuery(CompositeQuery):
# class BetweenQuery(CompositeQuery):
# class InLastQuery(CompositeQuery):
# class InNextQuery(CompositeQuery):
# class DateMatchQuery(CompositeQuery):
# class ContainsQuery(CompositeQuery):
# class AnyQuery(CompositeQuery):
# class IsInQuery(CompositeQuery):
# class ZipRadiusQuery(CompositeQuery):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, low, high):
#     def to_tuple(self):
#     def __init__(self, field, interval):
#     def to_tuple(self):
#     def __init__(self, field, interval):
#     def to_tuple(self):
#     def __init__(self, field, date):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, values):
#     def to_tuple(self):
#     def __init__(self, field, radius, zip):
#     def to_tuple(self):


from emma.query import operator
        :rtype: :class:`CompositeQuery`

        Usage::

            >>> from emma.query.factory import QueryFactory as qf
            >>> query = qf.between('member_field:some_numeric_field', 5, 10)
            >>> query.to_tuple()
            ("member_field:some_numeric_field", "between", 5, 10)

        """
        return operator.BetweenQuery(field, low, high)

    @staticmethod
    def in_last(field, interval):
        """
        In Last Query Factory

        :param field: Field name to query
        :type field: :class:`str`
        :param interval: An interval to select
        :type interval: :class:`dict`

        Usage::

            >>> from emma.query.factory import QueryFactory as qf
            >>> query = qf.in_last('member_since', {"day": 4})
            >>> query.to_tuple()
            ("member_since", "in last", {"day": 4})

        """

# Path: emma/query/operator.py
# class EqualityQuery(CompositeQuery):
# class LessThanQuery(CompositeQuery):
# class GreaterThanQuery(CompositeQuery):
# class BetweenQuery(CompositeQuery):
# class InLastQuery(CompositeQuery):
# class InNextQuery(CompositeQuery):
# class DateMatchQuery(CompositeQuery):
# class ContainsQuery(CompositeQuery):
# class AnyQuery(CompositeQuery):
# class IsInQuery(CompositeQuery):
# class ZipRadiusQuery(CompositeQuery):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, low, high):
#     def to_tuple(self):
#     def __init__(self, field, interval):
#     def to_tuple(self):
#     def __init__(self, field, interval):
#     def to_tuple(self):
#     def __init__(self, field, date):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, value):
#     def to_tuple(self):
#     def __init__(self, field, values):
#     def to_tuple(self):
#     def __init__(self, field, radius, zip):
#     def to_tuple(self):


# Path: emma/query/factory.py
from emma.query import operator

        :rtype: :class:`CompositeQuery`

        Usage::

            >>> from emma.query.factory import QueryFactory as qf
            >>> query = qf.between('member_field:some_numeric_field', 5, 10)
            >>> query.to_tuple()
            ("member_field:some_numeric_field", "between", 5, 10)

        """
        return operator.BetweenQuery(field, low, high)

    @staticmethod
    def in_last(field, interval):
        """
        In Last Query Factory

        :param field: Field name to query
        :type field: :class:`str`
        :param interval: An interval to select
        :type interval: :class:`dict`

        Usage::

            >>> from emma.query.factory import QueryFactory as qf
            >>> query = qf.in_last('member_since', {"day": 4})
            >>> query.to_tuple()
            ("member_since", "in last", {"day": 4})

        """

        return operator.InLastQuery(field, interval)