org.hypergraphdb.storage
Class LinkBinding

java.lang.Object
  extended by com.sleepycat.bind.tuple.TupleBase
      extended by com.sleepycat.bind.tuple.TupleBinding
          extended by org.hypergraphdb.storage.LinkBinding
All Implemented Interfaces:
com.sleepycat.bind.EntryBinding

public class LinkBinding
extends com.sleepycat.bind.tuple.TupleBinding

A LinkBinding converts a UUIDPersistentHandle[] to and from a flat byte[] for the purposes of storage and retrieval in the BerkeleyDB.

Author:
Borislav Iordanov

Constructor Summary
LinkBinding()
           
 
Method Summary
 java.lang.Object entryToObject(com.sleepycat.bind.tuple.TupleInput input)
           
 void objectToEntry(java.lang.Object object, com.sleepycat.bind.tuple.TupleOutput output)
           
static HGPersistentHandle[] readHandles(byte[] buffer, int offset, int length)
           
 
Methods inherited from class com.sleepycat.bind.tuple.TupleBinding
entryToObject, getPrimitiveBinding, objectToEntry
 
Methods inherited from class com.sleepycat.bind.tuple.TupleBase
entryToInput, getTupleBufferSize, inputToEntry, newOutput, newOutput, outputToEntry, setTupleBufferSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkBinding

public LinkBinding()
Method Detail

readHandles

public static HGPersistentHandle[] readHandles(byte[] buffer,
                                               int offset,
                                               int length)

entryToObject

public java.lang.Object entryToObject(com.sleepycat.bind.tuple.TupleInput input)
Specified by:
entryToObject in class com.sleepycat.bind.tuple.TupleBinding

objectToEntry

public void objectToEntry(java.lang.Object object,
                          com.sleepycat.bind.tuple.TupleOutput output)
Specified by:
objectToEntry in class com.sleepycat.bind.tuple.TupleBinding