1 8 9 package com.sleepycat.je.recovery.stepwise; 10 11 import java.util.Iterator ; 12 import java.util.Map ; 13 import java.util.Set ; 14 15 import com.sleepycat.bind.tuple.IntegerBinding; 16 17 20 21 class NonTxnalDeletedEntry extends LogEntryInfo { 22 NonTxnalDeletedEntry(long lsn, 23 int key, 24 int data) { 25 super(lsn, key, data); 26 } 27 28 29 public void updateExpectedSet(Set useExpected, Map newUncommittedRecords, Map deletedUncommittedRecords) { 30 Iterator iter = useExpected.iterator(); 31 while (iter.hasNext()) { 32 TestData setItem = (TestData) iter.next(); 33 int keyValInSet = IntegerBinding.entryToInt(setItem.getKey()); 34 if (keyValInSet == key) { 35 if (data == -1) { 36 37 iter.remove(); 38 break; 39 } else { 40 int dataValInSet = IntegerBinding.entryToInt(setItem.getData()); 41 if (dataValInSet == data) { 42 iter.remove(); 43 break; 44 } 45 } 46 } 47 } 48 } 49 } 50 | Popular Tags |