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._QueryKeyFilter Class Reference
Inheritance diagram for google.appengine.datastore.datastore_query._QueryKeyFilter:
google.appengine.datastore.datastore_query._BaseComponent

Public Member Functions

def __init__
 
def app
 
def namespace
 
def kind
 
def ancestor
 
def __call__
 
- Public Member Functions inherited from google.appengine.datastore.datastore_query._BaseComponent
def __eq__
 
def __ne__
 

Detailed Description

A class that implements the key filters available on a Query.

Constructor & Destructor Documentation

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.

Member Function Documentation

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: