public static class LinearIndex.ChrIndex extends Object implements ChrIndex
Constructor and Description |
---|
ChrIndex()
Default constructor needed for factory methods -- DO NOT REMOVE
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getAverageFeatureSize() |
List<Block> |
getBlocks() |
List<Block> |
getBlocks(int start,
int end) |
double |
getFeaturesPerBlock() |
String |
getName() |
int |
getNBlocks() |
int |
getNFeatures() |
long |
getTotalSize() |
void |
incrementFeatureCount() |
LinearIndex.ChrIndex |
optimize(double threshold) |
void |
read(LittleEndianInputStream dis) |
void |
updateLongestFeature(int featureLength) |
void |
write(LittleEndianOutputStream dos) |
public ChrIndex()
public int getNBlocks()
public void updateLongestFeature(int featureLength)
public int getNFeatures()
public void incrementFeatureCount()
public void write(LittleEndianOutputStream dos) throws IOException
write
in interface ChrIndex
IOException
public void read(LittleEndianInputStream dis) throws IOException
read
in interface ChrIndex
IOException
public long getTotalSize()
public double getAverageFeatureSize()
public double getFeaturesPerBlock()
public LinearIndex.ChrIndex optimize(double threshold)