Class BTree.BTreeNode
package: src.net.jxta.impl.xindice.core.filer
private final class BTree.BTreeNode
BTreeNode
Field Summary
private boolean
private Page
private long[]
private Value
Constructor Summary
public
public
Method Summary
public synchronized long
addValue(Value value, long pointer)
public synchronized long
getChildNode(int idx)
public synchronized void
getChildStream(int idx, Streamable stream)
public synchronized long[]
public Value
getSeparator(Value value1, Value value2)
public synchronized Value
public synchronized boolean
public synchronized void
promoteValue(Value value, long rightPointer)
public synchronized void
query(IndexQuery query, BTreeCallback callback)
public synchronized void
public synchronized long
public synchronized void
setLoaded(boolean loaded)
public synchronized void
setPointers(long[] ptrs)
public synchronized void
public synchronized void
public synchronized void
Field Detail
loaded
private boolean loaded

page
private Page page

parent
private BTree.BTreeNode parent

ph
private BTree.BTreePageHeader ph

ptrs
private long[] ptrs

root
private BTree.BTreeRootInfo root

values
private Value values
Constructor Detail
BTreeNode
public BTreeNode(BTree.BTreeRootInfo root, Page page)

BTreeNode
public BTreeNode(BTree.BTreeRootInfo root, Page page, BTree.BTreeNode parent)
Method Detail
addValue
public synchronized long addValue(Value value, long pointer)
Throws:
IOException
BTreeException

findValue
public synchronized long findValue(Value value)
Throws:
IOException
BTreeException

getChildNode
public BTree.BTreeNode getChildNode(int idx)

getChildStream
public synchronized void getChildStream(int idx, Streamable stream)
Throws:
IOException

getPointers
public synchronized long[] getPointers()

getSeparator
public Value getSeparator(Value value1, Value value2)

getValues
public synchronized Value getValues()

isLoaded
public synchronized boolean isLoaded()

promoteValue
public synchronized void promoteValue(Value value, long rightPointer)
Throws:
IOException
BTreeException

query
public synchronized void query(IndexQuery query, BTreeCallback callback)
Throws:
IOException
BTreeException

read
public synchronized void read()
Throws:
IOException

removeValue
public synchronized long removeValue(Value value)
Throws:
IOException
BTreeException

setLoaded
public synchronized void setLoaded(boolean loaded)

setPointers
public synchronized void setPointers(long[] ptrs)

setValues
public synchronized void setValues(Value values)

split
public synchronized void split()
Throws:
IOException
BTreeException

write
public synchronized void write()
Throws:
IOException