if (!logOpen) {
logRecordStore = RecordStore.openRecordStore(recordStoreName,
true);
}
RecordEnumeration recordEnum = logRecordStore.enumerateRecords(
null, new DescendingComparator(), false);
while (recordEnum.hasNextElement()) {
int recId = recordEnum.nextRecordId();
if (arrayPointer >= 0) {
// save recId