|
def | __init__ |
|
def | app |
|
def | namespace |
|
def | kind |
|
def | ancestor |
|
def | __call__ |
|
def | __eq__ |
|
def | __ne__ |
|
A class that implements the key filters available on a Query.
def google.appengine.datastore.datastore_query._QueryKeyFilter.__init__ |
( |
|
self, |
|
|
|
app = None , |
|
|
|
namespace = None , |
|
|
|
kind = None , |
|
|
|
ancestor = None |
|
) |
| |
Constructs a _QueryKeyFilter.
If app/namespace and ancestor are not defined, the app/namespace set in the
environment is used.
Args:
app: a string representing the required app id or None.
namespace: a string representing the required namespace or None.
kind: a string representing the required kind or None.
ancestor: a entity_pb.Reference representing the required ancestor or
None.
Raises:
datastore_erros.BadArgumentError if app and ancestor.app() do not match or
an unexpected type is passed in for any argument.
def google.appengine.datastore.datastore_query._QueryKeyFilter.__call__ |
( |
|
self, |
|
|
|
entity_or_reference |
|
) |
| |
Apply the filter.
Accepts either an entity or a reference to avoid the need to extract keys
from entities when we have a list of entities (which is a common case).
Args:
entity_or_reference: Either an entity_pb.EntityProto or
entity_pb.Reference.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/datastore/datastore_query.py