@classmethod
def _format_results_to_hdict(cls, obj, results, translator, hdict_row):
    """Convert hdict row to translator format for hdict.

        results - table row entries from subtables of a translator.
        translator - is the translator to convert obj.
        hdict_row - all the value fields of an hdict populated in a dict.
        """
    field_translators = translator[cls.FIELD_TRANSLATORS]
    table = translator[cls.TABLE_NAME]
    id_col = translator.get(cls.ID_COL)
    parent_key = translator.get(cls.PARENT_KEY)
    new_row = []
    for fieldtranslator in field_translators:
        col = fieldtranslator.get(cls.COL, fieldtranslator[cls.FIELDNAME])
        if col in hdict_row:
            new_row.append(hdict_row[col])
    if id_col:
        h = cls._compute_id(id_col, obj, new_row)
        new_row = (h,) + tuple(new_row)
    elif parent_key:
        h = None
        parent_col_name = translator.get(cls.PARENT_COL_NAME, cls.
            PARENT_KEY_COL_NAME)
        new_row = (hdict_row[parent_col_name],) + tuple(new_row)
    else:
        h = None
        new_row = tuple(new_row)
    results.append((table, new_row))
    return results, h
