Package org.broad.igv.bbfile
Class BPTree
- java.lang.Object
-
- org.broad.igv.bbfile.BPTree
-
public class BPTree extends java.lang.ObjectCreated by IntelliJ IDEA. User: martind Date: Dec 17, 2009 Time: 12:28:30 PM To change this template use File | Settings | File Templates.
-
-
Field Summary
Fields Modifier and Type Field Description static intBPTREE_NODE_FORMAT_SIZEstatic intBPTREE_NODE_ITEM_SIZE
-
Constructor Summary
Constructors Constructor Description BPTree(SeekableStream fis, long fileOffset, boolean isLowToHigh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindAllChromosomeNames(BPTreeNode thisNode, java.util.ArrayList<java.lang.String> chromosomeList)intgetBlockSize()longgetBPTreeOffset()intgetChromosomeID(java.lang.String chromKey)java.util.HashMap<java.lang.Integer,java.lang.String>getChromosomeIDMap(int startChromID, int endChromID)java.lang.StringgetChromosomeKey(java.lang.String chromosome)java.lang.StringgetChromosomeName(int chromID)java.util.ArrayList<java.lang.String>getChromosomeNames()SeekableStreamgetFis()longgetItemCount()intgetKeySize()longgetNodeCount()BPTreeNodegetRootNode()BPTreeHeadergetTreeHeader()intgetValueSize()voidprint()
-
-
-
Field Detail
-
BPTREE_NODE_FORMAT_SIZE
public static final int BPTREE_NODE_FORMAT_SIZE
- See Also:
- Constant Field Values
-
BPTREE_NODE_ITEM_SIZE
public static final int BPTREE_NODE_ITEM_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BPTree
public BPTree(SeekableStream fis, long fileOffset, boolean isLowToHigh)
-
-
Method Detail
-
getFis
public SeekableStream getFis()
-
getBPTreeOffset
public long getBPTreeOffset()
-
getTreeHeader
public BPTreeHeader getTreeHeader()
-
getBlockSize
public int getBlockSize()
-
getKeySize
public int getKeySize()
-
getValueSize
public int getValueSize()
-
getItemCount
public long getItemCount()
-
getNodeCount
public long getNodeCount()
-
getRootNode
public BPTreeNode getRootNode()
-
getChromosomeKey
public java.lang.String getChromosomeKey(java.lang.String chromosome)
-
getChromosomeID
public int getChromosomeID(java.lang.String chromKey)
-
getChromosomeName
public java.lang.String getChromosomeName(int chromID)
-
getChromosomeNames
public java.util.ArrayList<java.lang.String> getChromosomeNames()
-
getChromosomeIDMap
public java.util.HashMap<java.lang.Integer,java.lang.String> getChromosomeIDMap(int startChromID, int endChromID)
-
print
public void print()
-
findAllChromosomeNames
public void findAllChromosomeNames(BPTreeNode thisNode, java.util.ArrayList<java.lang.String> chromosomeList)
-
-