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_stub_util.ValueRange Class Reference
Inheritance diagram for google.appengine.datastore.datastore_stub_util.ValueRange:

Public Member Functions

def __init__
 
def Update
 
def Contains
 
def Remap
 
def MapExtremes
 

Detailed Description

A range of values defined by its two extremes (inclusive or exclusive).

Constructor & Destructor Documentation

def google.appengine.datastore.datastore_stub_util.ValueRange.__init__ (   self)
Constructor.

Creates an unlimited range.

Member Function Documentation

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: