org.hypergraphdb.storage
Class LinkBinding
java.lang.Object
com.sleepycat.bind.tuple.TupleBase
com.sleepycat.bind.tuple.TupleBinding
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
| 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 |
LinkBinding
public LinkBinding()
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