![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | from_property_filter |
def | intersect |
def | __getstate__ |
def | __eq__ |
![]() | |
def | __call__ |
![]() | |
def | __eq__ |
def | __ne__ |
A filter predicate that represents a range of values. Since we allow multi-valued properties there is a large difference between "x > 0 AND x < 1" and "0 < x < 1." An entity with x = [-1, 2] will match the first but not the second. Since the datastore only allows a single inequality filter, multiple in-equality filters are merged into a single range filter in the datastore (unlike equality filters). This class is used by datastore_query.CompositeFilter to implement the same logic.
def google.appengine.datastore.datastore_query._PropertyRangeFilter.__init__ | ( | self, | |
start = None , |
|||
start_incl = True , |
|||
end = None , |
|||
end_incl = True |
|||
) |
Constructs a range filter using start and end properties. Args: start: A entity_pb.Property to use as a lower bound or None to indicate no lower bound. start_incl: A boolean that indicates if the lower bound is inclusive. end: A entity_pb.Property to use as an upper bound or None to indicate no upper bound. end_incl: A boolean that indicates if the upper bound is inclusive.
def google.appengine.datastore.datastore_query._PropertyRangeFilter.intersect | ( | self, | |
other | |||
) |
Returns a filter representing the intersection of self and other.