original_docstring: Get the entities for the given keys.
  
      Args:
        raw_keys: A list of unverified entity_pb.Reference objects.
        transaction: The datastore_pb.Transaction to use or None.
        eventual_consistency: If we should allow stale, potentially inconsistent
          results.
        trusted: If the calling app is trusted.
        calling_app: The app requesting the results or None to pull the app from
          the environment.
  
      Returns:
        A list containing the entity or None if no entity exists.
      
docstring: Get the entities for the given keys.
docstring_tokens: Get the entities for the given keys .
code: def Get(self, raw_keys, transaction=None, eventual_consistency=False,
            trusted=False, calling_app=None):
      """Get the entities for the given keys.
  
      Args:
        raw_keys: A list of unverified entity_pb.Reference objects.
        transaction: The datastore_pb.Transaction to use or None.
        eventual_consistency: If we should allow stale, potentially inconsistent
          results.
        trusted: If the calling app is trusted.
        calling_app: The app requesting the results or None to pull the app from
          the environment.
  
      Returns:
        A list containing the entity or None if no entity exists.
      """
  
      if not raw_keys:
        return []
  
      calling_app = datastore_types.ResolveAppId(calling_app)
  
      if not transaction and eventual_consistency:
  
        result = []
        for key in raw_keys:
          CheckReference(calling_app, trusted, key)
          result.append(self._GetWithPseudoKinds(None, key))
        return result
  
  
  
  
      grouped_keys = collections.defaultdict(list)
      for i, key in enumerate(raw_keys):
        CheckReference(trusted, calling_app, key)
        entity_group = _GetEntityGroup(key)
        entity_group_key = datastore_types.ReferenceToKeyValue(entity_group)
        grouped_keys[entity_group_key].append((key, i))
  
      if transaction:
  
        txn = self.GetTxn(transaction, trusted, calling_app)
        return [self._GetWithPseudoKinds(txn, key) for key in raw_keys]
      else:
  
  
        result = [None] * len(raw_keys)
  
        def op(txn, v):
          key, i = v
          result[i] = self._GetWithPseudoKinds(txn, key)
        for keys in grouped_keys.itervalues():
          self._RunInTxn(keys, keys[0][0].app(), op)
        return result
code_tokens: def Get ( self , raw_keys , transaction = None , eventual_consistency = False , trusted = False , calling_app = None ) : if not raw_keys : return [ ] calling_app = datastore_types . ResolveAppId ( calling_app ) if not transaction and eventual_consistency : result = [ ] for key in raw_keys : CheckReference ( calling_app , trusted , key ) result . append ( self . _GetWithPseudoKinds ( None , key ) ) return result grouped_keys = collections . defaultdict ( list ) for i , key in enumerate ( raw_keys ) : CheckReference ( trusted , calling_app , key ) entity_group = _GetEntityGroup ( key ) entity_group_key = datastore_types . ReferenceToKeyValue ( entity_group ) grouped_keys [ entity_group_key ] . append ( ( key , i ) ) if transaction : txn = self . GetTxn ( transaction , trusted , calling_app ) return [ self . _GetWithPseudoKinds ( txn , key ) for key in raw_keys ] else : result = [ None ] * len ( raw_keys ) def op ( txn , v ) : key , i = v result [ i ] = self . _GetWithPseudoKinds ( txn , key ) for keys in grouped_keys . itervalues ( ) : self . _RunInTxn ( keys , keys [ 0 ] [ 0 ] . app ( ) , op ) return result
short_docstring: Get the entities for the given keys.
short_docstring_tokens: Get the entities for the given keys .
comment: """Get the entities for the given keys.
  
      Args:
        raw_keys: A list of unverified entity_pb.Reference objects.
        transaction: The datastore_pb.Transaction to use or None.
        eventual_consistency: If we should allow stale, potentially inconsistent
          results.
        trusted: If the calling app is trusted.
        calling_app: The app requesting the results or None to pull the app from
          the environment.
  
      Returns:
        A list containing the entity or None if no entity exists.
      """