Class ListNode.NodeMarshaller<Key,Value>
- java.lang.Object
-
- org.apache.activemq.store.kahadb.disk.util.VariableMarshaller<ListNode<Key,Value>>
-
- org.apache.activemq.store.kahadb.disk.index.ListNode.NodeMarshaller<Key,Value>
-
- Type Parameters:
Key
-Value
-
- All Implemented Interfaces:
Marshaller<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
Constructors Constructor Description NodeMarshaller(Marshaller<Key> keyMarshaller, Marshaller<Value> valueMarshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListNode<Key,Value>
readPayload(DataInput is)
Read the payload of the object from the DataInput stream.void
writePayload(ListNode<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
-
-
-
-
Constructor Detail
-
NodeMarshaller
public NodeMarshaller(Marshaller<Key> keyMarshaller, Marshaller<Value> valueMarshaller)
-
-
Method Detail
-
writePayload
public void writePayload(ListNode<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 ListNode<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
-
-