def GetAllLengths( tbl_nrdb, nids ):
    """retrieve all lengths for a set of nids.
    """
    lengths = []
    for nid in nids:
        lengths.append( tbl_nrdb.GetLength( nid ))

    return lengths