org.apache.kahadb.index
Class ListNode.NodeMarshaller<Key,Value>

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

public static final class ListNode.NodeMarshaller<Key,Value>
extends VariableMarshaller<ListNode<Key,Value>>

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


Constructor Summary
ListNode.NodeMarshaller(Marshaller<Key> keyMarshaller, Marshaller<Value> valueMarshaller)
           
 
Method Summary
 ListNode<Key,Value> readPayload(java.io.DataInput is)
          Read the payload of the object from the DataInput stream.
 void writePayload(ListNode<Key,Value> node, java.io.DataOutput os)
          Write the payload of the object to the DataOutput stream.
 
Methods inherited from class org.apache.kahadb.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

ListNode.NodeMarshaller

public ListNode.NodeMarshaller(Marshaller<Key> keyMarshaller,
                               Marshaller<Value> valueMarshaller)
Method Detail

writePayload

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

Throws:
java.io.IOException

readPayload

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

Returns:
unmarshalled object
Throws:
java.io.IOException


Copyright © 2005-2016. All Rights Reserved.