def _GetCompiledQuery(self):
    compiled_query_function = self.__compiled_query_source
    if compiled_query_function:
      compiled_query = compiled_query_function()
      if compiled_query:
        return compiled_query
    raise AssertionError('No compiled query available, either this query has '
                         'not been executed or there is no compilation '
                         'available for this kind of query')
Build new document.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/Query._GetCompiledQuery--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/yaml_builder.py/Builder.BuildDocument