Skip to content

table_collection.remap_nodes(id_map) method #2707

@jeromekelleher

Description

@jeromekelleher

A useful extension to the keep_rows functions added in #2700 would be a way to remap all the node ID values in a TableCollection using a given id_map (i.e., the mapping array returned by node_table_keep_rows). The API would look something like

int
tsk_table_collection_remap_nodes(tsk_table_collection_t *self, const tsk_id_map_t *id_map, 
    tsk_size_t id_map_length, tsk_flags_t options)
{
    int ret = 0;
  
     ret = remap_id_column(self->edges->child, self->edges->num_rows, id_map, id_map_length);
     // etc
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    C APIIssue is about the C APIenhancementNew feature or requestfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.

    Type

    No type

    Projects

    Status

    Bigger things

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions