@Override public LogRecordWithDLSN nextRecord() throws IOException { if (numRecords <= 0) { return null; } int recordLen = reader.getInt(); byte[] recordData = new byte[recordLen]; reader.get(recordData); DLSN dlsn = new DLSN(logSegmentSeqNo, entryId, slotId); LogRecordWithDLSN record = new LogRecordWithDLSN(dlsn, startSequenceId); record.setPositionWithinLogSegment(position); record.setTransactionId(transactionId); record.setPayload(recordData); ++slotId; ++position; --numRecords; return record; }
record.setTransactionId(currTxId); record.readPayload(in); recordSetReader = LogRecordSet.of(record);
nextRecordInStream.setTransactionId(in.readLong()); nextRecordInStream.readPayload(in); if (LOG.isTraceEnabled()) {
@Override public LogRecordWithDLSN nextRecord() throws IOException { if (numRecords <= 0) { return null; } int recordLen = reader.getInt(); byte[] recordData = new byte[recordLen]; reader.get(recordData); DLSN dlsn = new DLSN(logSegmentSeqNo, entryId, slotId); LogRecordWithDLSN record = new LogRecordWithDLSN(dlsn, startSequenceId); record.setPositionWithinLogSegment(position); record.setTransactionId(transactionId); record.setPayload(recordData); ++slotId; ++position; --numRecords; return record; }
record.setTransactionId(currTxId); record.readPayload(in); recordSetReader = LogRecordSet.of(record);
nextRecordInStream.setTransactionId(in.readLong()); nextRecordInStream.readPayload(in); if (LOG.isTraceEnabled()) {