@classmethod
def load(cls, path, name):
    assert ('_cdc' in name), ('expected to find _cdc in passed in index name. Did not: ' + name)
    with open(os.path.join(path, name), 'r') as f:
        (offset, completed) = [line.strip() for line in f.readlines()]
    return cls(idx_name=name, completed=completed, offset=int(offset), log_name=re.sub('_cdc.idx', '.log', name))
@classmethod
def load(cls, path, name):
    assert ('_cdc' in name), ('expected to find _cdc in passed in index name. Did not: ' + name)
    with open(os.path.join(path, name), 'r') as f:
        (offset, completed) = [line.strip() for line in f.readlines()]
    return cls(idx_name=name, completed=completed, offset=int(offset), log_name=re.sub('_cdc.idx', '.log', name))