IndexCreator
public class IntervalIndexCreator extends TribbleIndexCreator
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_FEATURE_COUNT |
properties
Constructor | Description |
---|---|
IntervalIndexCreator(File inputFile) |
|
IntervalIndexCreator(File inputFile,
int featuresPerInterval) |
|
IntervalIndexCreator(Path inputPath) |
|
IntervalIndexCreator(Path inputPath,
int featuresPerInterval) |
Modifier and Type | Method | Description |
---|---|---|
void |
addFeature(Feature feature,
long filePosition) |
Add a feature to the index
|
Index |
finalizeIndex(long finalFilePosition) |
finalize the index; create a tree index given the feature list passed in so far
|
int |
getFeaturesPerInterval() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProperty, setIndexSequenceDictionary
public IntervalIndexCreator(Path inputPath, int featuresPerInterval)
public IntervalIndexCreator(File inputFile, int featuresPerInterval)
public IntervalIndexCreator(File inputFile)
public IntervalIndexCreator(Path inputPath)
public void addFeature(Feature feature, long filePosition)
IndexCreator
feature
- the feature, of which start, end, and contig must be filled infilePosition
- the current file position, at the beginning of the specified featurepublic Index finalizeIndex(long finalFilePosition)
finalFilePosition
- the final file position, for indexes that have to close out with the final positionpublic int getFeaturesPerInterval()