IndexCreator
public class LinearIndexCreator extends TribbleIndexCreator
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_BIN_WIDTH |
properties
Constructor | Description |
---|---|
LinearIndexCreator(File inputFile) |
|
LinearIndexCreator(File inputFile,
int binSize) |
|
LinearIndexCreator(Path inputPath) |
|
LinearIndexCreator(Path inputPath,
int binSize) |
Modifier and Type | Method | Description |
---|---|---|
void |
addFeature(Feature feature,
long filePosition) |
add a feature to the index
|
int |
defaultBinSize() |
the current default bin size
|
Index |
finalizeIndex(long finalFilePosition) |
finalize the index; producing an index object
|
int |
getBinSize() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProperty, setIndexSequenceDictionary
public LinearIndexCreator(Path inputPath, int binSize)
public LinearIndexCreator(File inputFile, int binSize)
public LinearIndexCreator(File inputFile)
public LinearIndexCreator(Path inputPath)
public void addFeature(Feature feature, long filePosition)
feature
- the feature, from which we use the contig, start, and stopfilePosition
- the position of the file at the BEGINNING of the current featurepublic Index finalizeIndex(long finalFilePosition)
finalFilePosition
- the final file position, for indexes that have to close out with the final positionpublic int defaultBinSize()
public int getBinSize()