Inheritance diagram for com::sleepycat::bind::tuple::TupleTupleMarshalledKeyCreator:
Public Member Functions | |
TupleTupleMarshalledKeyCreator (TupleTupleMarshalledBinding binding, String keyName) | |
boolean | createSecondaryKey (TupleInput primaryKeyInput, TupleInput dataInput, TupleOutput indexKeyOutput) |
boolean | nullifyForeignKey (TupleInput dataInput, TupleOutput dataOutput) |
Note that a marshalled tuple key creator is somewhat less efficient than a non-marshalled key tuple creator because more conversions are needed. A marshalled key creator must convert the entry to an object in order to create the key, while an unmarshalled key creator does not.
Definition at line 25 of file TupleTupleMarshalledKeyCreator.java.
|
Creates a tuple-tuple marshalled key creator.
Definition at line 39 of file TupleTupleMarshalledKeyCreator.java. |
|
Creates the index key from primary key tuple and data tuple.
Implements com::sleepycat::bind::tuple::TupleTupleKeyCreator. Definition at line 47 of file TupleTupleMarshalledKeyCreator.java. References com::sleepycat::bind::tuple::TupleTupleMarshalledBinding::entryToObject(), and com::sleepycat::bind::tuple::MarshalledTupleKeyEntity::marshalSecondaryKey(). |
|
Clears the index key in the tuple data entry. The dataInput should be read and then written to the dataOutput, clearing the index key in the process. The secondary key should be output or removed by this method such that createSecondaryKey will return false. Other fields in the data object should remain unchanged.
Reimplemented from com::sleepycat::bind::tuple::TupleTupleKeyCreator. Definition at line 62 of file TupleTupleMarshalledKeyCreator.java. References com::sleepycat::bind::tuple::TupleTupleMarshalledBinding::entryToObject(), com::sleepycat::bind::tuple::MarshalledTupleKeyEntity::nullifyForeignKey(), and com::sleepycat::bind::tuple::TupleTupleMarshalledBinding::objectToData(). |