return String.format("Index Type %s, Index Parameter %s", type, parameter);
}
public Index getIndex(final File vcfFile) {
switch (type) {
case DYNAMIC_SEEK : return IndexFactory.createDynamicIndex(vcfFile, new VCFCodec(), IndexFactory.IndexBalanceApproach.FOR_SEEK_TIME);
case DYNAMIC_SIZE : return IndexFactory.createDynamicIndex(vcfFile, new VCFCodec(), IndexFactory.IndexBalanceApproach.FOR_SIZE);
case LINEAR : return IndexFactory.createLinearIndex(vcfFile, new VCFCodec(), parameter);
case INTERVAL : return IndexFactory.createIntervalIndex(vcfFile, new VCFCodec(), parameter);
default : throw new TestException("Invalid index type");
}
}