Package htsjdk.tribble.index
Interface IndexCreator
- All Known Implementing Classes:
AllRefsTabixIndexCreator
,DynamicIndexCreator
,IntervalIndexCreator
,LinearIndexCreator
,StreamBasedTabixIndexCreator
,TabixIndexCreator
,TribbleIndexCreator
public interface IndexCreator
An interface for creating indexes
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeature
(Feature feature, long filePosition) Add a feature to the indexfinalizeIndex
(long finalFilePosition) Create the index, given the stream of features passed in to this pointdefault void
Set the sequence dictionary for the index.
-
Method Details
-
addFeature
Add a feature to the index- Parameters:
feature
- the feature, of which start, end, and contig must be filled infilePosition
- the current file position, at the beginning of the specified feature
-
finalizeIndex
Create the index, given the stream of features passed in to this point- Parameters:
finalFilePosition
- the final file position, for indexes that have to close out with the final position- Returns:
- an index object
-
setIndexSequenceDictionary
Set the sequence dictionary for the index. Default implementation does nothing.- Parameters:
dict
- the dictionary to add to the index.
-