com.sleepycat.bind.tuple
public abstract class TupleTupleKeyCreator extends TupleBase implements SecondaryKeyCreator
Constructor Summary | |
---|---|
TupleTupleKeyCreator()
Creates a tuple-tuple key creator. |
Method Summary | |
---|---|
boolean | createSecondaryKey(SecondaryDatabase db, DatabaseEntry primaryKeyEntry, DatabaseEntry dataEntry, DatabaseEntry indexKeyEntry) |
abstract boolean | createSecondaryKey(TupleInput primaryKeyInput, TupleInput dataInput, TupleOutput indexKeyOutput)
Creates the index key from primary key tuple and data tuple.
|
boolean | nullifyForeignKey(SecondaryDatabase db, DatabaseEntry dataEntry) |
boolean | nullifyForeignKey(TupleInput dataInput, TupleOutput dataOutput)
Clears the index key in the tuple data entry. |
Parameters: primaryKeyInput is the TupleInput for the primary key entry. dataInput is the TupleInput for the data entry. indexKeyOutput is the destination index key tuple.
Returns: true if a key was created, or false to indicate that the key is not present.
The secondary key should be output or removed by this method such that TupleTupleKeyCreator will return false. Other fields in the data object should remain unchanged.
Parameters: dataInput is the TupleInput for the data entry. dataOutput is the destination TupleOutput.
Returns: true if the key was cleared, or false to indicate that the key is not present and no change is necessary.