def row_processor(self, query, context, result):
    adapter = self._get_entity_clauses(query, context)
    if (context.adapter and adapter):
        adapter = adapter.wrap(context.adapter)
    elif (not adapter):
        adapter = context.adapter
    if ((not adapter) and self.mapper._requires_row_aliasing):
        adapter = sql_util.ColumnAdapter(self.selectable, self.mapper._equivalent_columns)
    if (query._primary_entity is self):
        _instance = loading.instance_processor(self.mapper, context, result, self.path, adapter, only_load_props=query._only_load_props, refresh_state=context.refresh_state, polymorphic_discriminator=self._polymorphic_discriminator)
    else:
        _instance = loading.instance_processor(self.mapper, context, result, self.path, adapter, polymorphic_discriminator=self._polymorphic_discriminator)
    return (_instance, self._label_name)
def row_processor(self, query, context, result):
    adapter = self._get_entity_clauses(query, context)
    if (context.adapter and adapter):
        adapter = adapter.wrap(context.adapter)
    elif (not adapter):
        adapter = context.adapter
    if ((not adapter) and self.mapper._requires_row_aliasing):
        adapter = sql_util.ColumnAdapter(self.selectable, self.mapper._equivalent_columns)
    if (query._primary_entity is self):
        _instance = loading.instance_processor(self.mapper, context, result, self.path, adapter, only_load_props=query._only_load_props, refresh_state=context.refresh_state, polymorphic_discriminator=self._polymorphic_discriminator)
    else:
        _instance = loading.instance_processor(self.mapper, context, result, self.path, adapter, polymorphic_discriminator=self._polymorphic_discriminator)
    return (_instance, self._label_name)