A range of values defined by its two extremes (inclusive or exclusive).
def google.appengine.datastore.datastore_stub_util.ValueRange.__init__ |
( |
|
self | ) |
|
Constructor.
Creates an unlimited range.
def google.appengine.datastore.datastore_stub_util.ValueRange.Contains |
( |
|
self, |
|
|
|
value |
|
) |
| |
Check if the range contains a specific value.
Args:
value: the value to check.
Returns:
True iff value is contained in this range.
def google.appengine.datastore.datastore_stub_util.ValueRange.MapExtremes |
( |
|
self, |
|
|
|
mapper |
|
) |
| |
Evaluate a function on the range extremes.
Args:
mapper: function to apply to the range extremes.
Returns:
(x, y) where x = None if the range has no start,
mapper(start, start_inclusive, False) otherwise
y = None if the range has no end,
mapper(end, end_inclusive, True) otherwise
def google.appengine.datastore.datastore_stub_util.ValueRange.Remap |
( |
|
self, |
|
|
|
mapper |
|
) |
| |
Transforms the range extremes with a function.
The function mapper must preserve order, i.e.
x rel_op y iff mapper(x) rel_op y
Args:
mapper: function to apply to the range extremes.
def google.appengine.datastore.datastore_stub_util.ValueRange.Update |
( |
|
self, |
|
|
|
rel_op, |
|
|
|
limit |
|
) |
| |
Filter the range by 'rel_op limit'.
Args:
rel_op: relational operator from datastore_pb.Query_Filter.
limit: the value to limit the range by.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/datastore/datastore_stub_util.py