def get_resultset_status(matched, nextrecord):
    """ Helper function to assess status of a result set """
    status = 'subset'
    if nextrecord == 0:
        status = 'complete'
    elif matched == 0:
        status = 'none'
    return status
