org.apache.activemq.store.kahadb.disk.index
Class BTreeNode.Marshaller<Key,Value>

java.lang.Object
  extended by org.apache.activemq.store.kahadb.disk.util.VariableMarshaller<BTreeNode<Key,Value>>
      extended by org.apache.activemq.store.kahadb.disk.index.BTreeNode.Marshaller<Key,Value>
Type Parameters:
Key -
Value -
All Implemented Interfaces:
Marshaller<BTreeNode<Key,Value>>
Enclosing class:
BTreeNode<Key,Value>

public static class BTreeNode.Marshaller<Key,Value>
extends VariableMarshaller<BTreeNode<Key,Value>>

The Marshaller is used to store and load the data in the BTreeNode into a Page.


Constructor Summary
BTreeNode.Marshaller(BTreeIndex<Key,Value> index)
           
 
Method Summary
 BTreeNode<Key,Value> readPayload(DataInput is)
          Read the payload of the object from the DataInput stream.
 void writePayload(BTreeNode<Key,Value> node, DataOutput os)
          Write the payload of the object to the DataOutput stream.
 
Methods inherited from class org.apache.activemq.store.kahadb.disk.util.VariableMarshaller
deepCopy, getFixedSize, isDeepCopySupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTreeNode.Marshaller

public BTreeNode.Marshaller(BTreeIndex<Key,Value> index)
Method Detail

writePayload

public void writePayload(BTreeNode<Key,Value> node,
                         DataOutput os)
                  throws IOException
Description copied from interface: Marshaller
Write the payload of the object to the DataOutput stream.

Throws:
IOException

readPayload

public BTreeNode<Key,Value> readPayload(DataInput is)
                                 throws IOException
Description copied from interface: Marshaller
Read the payload of the object from the DataInput stream.

Returns:
unmarshalled object
Throws:
IOException


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.