Package org.broad.igv.bbfile
Class BPTree
- java.lang.Object
-
- org.broad.igv.bbfile.BPTree
-
public class BPTree extends java.lang.Object
Created 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 int
BPTREE_NODE_FORMAT_SIZE
static int
BPTREE_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 void
findAllChromosomeNames(BPTreeNode thisNode, java.util.ArrayList<java.lang.String> chromosomeList)
int
getBlockSize()
long
getBPTreeOffset()
int
getChromosomeID(java.lang.String chromKey)
java.util.HashMap<java.lang.Integer,java.lang.String>
getChromosomeIDMap(int startChromID, int endChromID)
java.lang.String
getChromosomeKey(java.lang.String chromosome)
java.lang.String
getChromosomeName(int chromID)
java.util.ArrayList<java.lang.String>
getChromosomeNames()
SeekableStream
getFis()
long
getItemCount()
int
getKeySize()
long
getNodeCount()
BPTreeNode
getRootNode()
BPTreeHeader
getTreeHeader()
int
getValueSize()
void
print()
-
-
-
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)
-
-