Package htsjdk.tribble.index.linear
Class LinearIndexCreator
java.lang.Object
htsjdk.tribble.index.TribbleIndexCreator
htsjdk.tribble.index.linear.LinearIndexCreator
- All Implemented Interfaces:
IndexCreator
For creating a LinearIndex from a stream of features.
-
Field Summary
FieldsFields inherited from class htsjdk.tribble.index.TribbleIndexCreator
properties -
Constructor Summary
ConstructorsConstructorDescriptionLinearIndexCreator(File inputFile) LinearIndexCreator(File inputFile, int binSize) LinearIndexCreator(Path inputPath) LinearIndexCreator(Path inputPath, int binSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(Feature feature, long filePosition) add a feature to the indexintthe current default bin sizefinalizeIndex(long finalFilePosition) finalize the index; producing an index objectintMethods inherited from class htsjdk.tribble.index.TribbleIndexCreator
addProperty, setIndexSequenceDictionary
-
Field Details
-
DEFAULT_BIN_WIDTH
public static final int DEFAULT_BIN_WIDTH- See Also:
-
-
Constructor Details
-
LinearIndexCreator
-
LinearIndexCreator
-
LinearIndexCreator
-
LinearIndexCreator
-
-
Method Details
-
addFeature
add a feature to the index- Parameters:
feature- the feature, from which we use the contig, start, and stopfilePosition- the position of the file at the BEGINNING of the current feature
-
finalizeIndex
finalize the index; producing an index object- Parameters:
finalFilePosition- the final file position, for indexes that have to close out with the final position- Returns:
- an Index object
-
defaultBinSize
public int defaultBinSize()the current default bin size- Returns:
-
getBinSize
public int getBinSize()
-