com.bigdata.btree
Class BTree.NodeFactory

java.lang.Object
  extended by com.bigdata.btree.BTree.NodeFactory
All Implemented Interfaces:
INodeFactory
Enclosing class:
BTree

protected static class BTree.NodeFactory
extends Object
implements INodeFactory

Factory for mutable nodes and leaves used by the NodeSerializer.


Field Summary
static INodeFactory INSTANCE
           
 
Method Summary
 Leaf allocLeaf(AbstractBTree btree, long addr, ILeafData data)
          Create a leaf.
 Node allocNode(AbstractBTree btree, long addr, INodeData data)
          Create a node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final INodeFactory INSTANCE
Method Detail

allocLeaf

public Leaf allocLeaf(AbstractBTree btree,
                      long addr,
                      ILeafData data)
Description copied from interface: INodeFactory
Create a leaf.

Specified by:
allocLeaf in interface INodeFactory
Parameters:
btree - The owning B+Tree.
addr - The address from which the leaf was read.
data - The leaf data record.
Returns:
A leaf initialized from those data.

allocNode

public Node allocNode(AbstractBTree btree,
                      long addr,
                      INodeData data)
Description copied from interface: INodeFactory
Create a node.

Specified by:
allocNode in interface INodeFactory
Parameters:
btree - The owning B+Tree.
addr - The address from which the node was read.
data - The node data record.
Returns:
A node initialized from those data.


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.