public class IntervalIndexCreator extends TribbleIndexCreator
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FEATURE_COUNT |
properties
Constructor and Description |
---|
IntervalIndexCreator(java.io.File inputFile) |
IntervalIndexCreator(java.io.File inputFile,
int featuresPerInterval) |
Modifier and Type | Method and 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() |
addProperty, setIndexSequenceDictionary
public IntervalIndexCreator(java.io.File inputFile, int featuresPerInterval)
public IntervalIndexCreator(java.io.File inputFile)
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()