Package htsjdk.samtools
Class BinningIndexContent
java.lang.Object
htsjdk.samtools.BinningIndexContent
In-memory representation of the binning index for a single reference. BAM and Tabix are both binning indices
with slightly different disk formats but identical in-memory representations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class is used to encapsulate the list of Bins store in the BAMIndexContent While it is currently represented as an array, we may decide to change it to an ArrayList or other structure -
Constructor Summary
ConstructorsConstructorDescriptionBinningIndexContent
(int referenceSequence, BinningIndexContent.BinList binList, LinearIndex linearIndex) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsBin
(Bin bin) Does this content have anything in this bin?boolean
getBins()
getChunksOverlapping
(int startPos, int endPos) int
Reference for this Contentint
hashCode()
-
Constructor Details
-
BinningIndexContent
public BinningIndexContent(int referenceSequence, BinningIndexContent.BinList binList, LinearIndex linearIndex) - Parameters:
referenceSequence
- Content corresponds to this reference.binList
- Array of bins represented by this content, possibly sparselinearIndex
- Additional index used to optimize queries
-
-
Method Details
-
getReferenceSequence
public int getReferenceSequence()Reference for this Content -
containsBin
Does this content have anything in this bin? -
getBins
- Returns:
- iterable list of bins represented by this content
-
getAllChunks
- Returns:
- all chunks associated with all bins in this content
-
getLinearIndex
- Returns:
- the linear index represented by this content
-
getChunksOverlapping
- Parameters:
startPos
- 1-based, inclusiveendPos
- 1-based, inclusive- Returns:
- List of Chunks overlapping the given region. May return null if there are none.
-
equals
-
hashCode
public int hashCode()
-