com.bigdata.btree
Class IndexSegment.ImmutableNodeFactory

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

protected static class IndexSegment.ImmutableNodeFactory
extends Object
implements INodeFactory

Factory for immutable nodes and leaves used by the NodeSerializer.


Nested Class Summary
static class IndexSegment.ImmutableNodeFactory.ImmutableLeaf
          Immutable leaf throws UnsupportedOperationException for the public mutator API but does not try to override all low-level mutation behaviors.
static class IndexSegment.ImmutableNodeFactory.ImmutableNode
          Immutable node throws UnsupportedOperationException for the public mutator API but does not try to override all low-level mutation behaviors.
 
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.