original_docstring: Grabs a consistent snapshot of the given entity group.
  
      Args:
        entity_group: A entity_pb.Reference of the entity group of which the
          snapshot should be taken.
  
      Returns:
        A tuple of (meta_data, log_pos, snapshot) where log_pos is the current log
        position and snapshot is a map of reference key value to
        entity_pb.EntityProto.
      
docstring: Grabs a consistent snapshot of the given entity group.
docstring_tokens: Grabs a consistent snapshot of the given entity group .
code: def _GrabSnapshot(self, entity_group):
      """Grabs a consistent snapshot of the given entity group.
  
      Args:
        entity_group: A entity_pb.Reference of the entity group of which the
          snapshot should be taken.
  
      Returns:
        A tuple of (meta_data, log_pos, snapshot) where log_pos is the current log
        position and snapshot is a map of reference key value to
        entity_pb.EntityProto.
      """
  
      meta_data = self._GetMetaData(entity_group)
      meta_data._write_lock.acquire()
      try:
        if not meta_data._snapshot:
  
          meta_data.CatchUp()
          meta_data._snapshot = self._GetEntitiesInEntityGroup(entity_group)
        return meta_data, meta_data._log_pos, meta_data._snapshot
      finally:
  
        meta_data._write_lock.release()
code_tokens: def _GrabSnapshot ( self , entity_group ) : meta_data = self . _GetMetaData ( entity_group ) meta_data . _write_lock . acquire ( ) try : if not meta_data . _snapshot : meta_data . CatchUp ( ) meta_data . _snapshot = self . _GetEntitiesInEntityGroup ( entity_group ) return meta_data , meta_data . _log_pos , meta_data . _snapshot finally : meta_data . _write_lock . release ( )
short_docstring: Grabs a consistent snapshot of the given entity group.
short_docstring_tokens: Grabs a consistent snapshot of the given entity group .
comment: """Grabs a consistent snapshot of the given entity group.
  
      Args:
        entity_group: A entity_pb.Reference of the entity group of which the
          snapshot should be taken.
  
      Returns:
        A tuple of (meta_data, log_pos, snapshot) where log_pos is the current log
        position and snapshot is a map of reference key value to
        entity_pb.EntityProto.
      """