4 * Generic class that wraps all the different types of information
5 * that can be stored in a Slot.
6 * @author Brian Demsky <bdemsky@uci.edu>
10 Entry * Entry_decode(Slot * slot, ByteBuffer * bb) {
11 char type = bb->get();
15 return CommitPart_decode(slot, bb);
18 return Abort_decode(slot, bb);
20 case TypeTransactionPart:
21 return TransactionPart_decode(slot, bb);
24 return NewKey_decode(slot, bb);
27 return LastMessage_decode(slot, bb);
29 case TypeRejectedMessage:
30 return RejectedMessage_decode(slot, bb);
33 return TableStatus_decode(slot, bb);
40 void Entry::setDead() {
43 return; // already dead
48 if (parentslot != NULL) {
49 parentslot->decrementLiveCount();