App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.datastore.datastore_query._PropertyRangeFilter Class Reference
Inheritance diagram for google.appengine.datastore.datastore_query._PropertyRangeFilter:
google.appengine.datastore.datastore_query._SinglePropertyFilter google.appengine.datastore.datastore_query.FilterPredicate google.appengine.datastore.datastore_query._PropertyComponent google.appengine.datastore.datastore_query._BaseComponent

Public Member Functions

def __init__
 
def from_property_filter
 
def intersect
 
def __getstate__
 
def __eq__
 
- Public Member Functions inherited from google.appengine.datastore.datastore_query.FilterPredicate
def __call__
 
- Public Member Functions inherited from google.appengine.datastore.datastore_query._BaseComponent
def __eq__
 
def __ne__
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

def google.appengine.datastore.datastore_query._PropertyRangeFilter.intersect (   self,
  other 
)
Returns a filter representing the intersection of self and other.

The documentation for this class was generated from the following file: