Package com.sleepycat.bind.tuple
Class TupleInputBinding
java.lang.Object
com.sleepycat.bind.tuple.TupleInputBinding
- All Implemented Interfaces:
EntryBinding<TupleInput>
A concrete
EntryBinding that uses the TupleInput
object as the key or data object.
A concrete tuple binding for key or data entries which are TupleInput objects. This binding is used when tuples themselves are the
objects, rather than using application defined objects. A TupleInput
must always be used. To convert a TupleOutput to a TupleInput, use the TupleInput(TupleOutput) constructor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentryToObject(DatabaseEntry entry) Converts a entry buffer into an Object.voidobjectToEntry(TupleInput object, DatabaseEntry entry) Converts an Object into a entry buffer.
-
Constructor Details
-
TupleInputBinding
public TupleInputBinding()Creates a tuple input binding.
-
-
Method Details
-
entryToObject
Description copied from interface:EntryBindingConverts a entry buffer into an Object.- Specified by:
entryToObjectin interfaceEntryBinding<TupleInput>- Parameters:
entry- is the source entry buffer.- Returns:
- the resulting Object.
-
objectToEntry
Description copied from interface:EntryBindingConverts an Object into a entry buffer.- Specified by:
objectToEntryin interfaceEntryBinding<TupleInput>- Parameters:
object- is the source Object.entry- is the destination entry buffer.
-