public WriteBatch(DataFile dataFile, int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size = Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public WriteBatch(DataFile dataFile,int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size=Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset+size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset + size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }
public WriteBatch(DataFile dataFile, int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size = Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public WriteBatch(DataFile dataFile,int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size=Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public WriteBatch(DataFile dataFile, int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size = Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public WriteBatch(DataFile dataFile,int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size=Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public WriteBatch(DataFile dataFile,int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size=Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public WriteBatch(DataFile dataFile, int offset) { this.dataFile = dataFile; this.offset = offset; this.dataFile.incrementLength(Journal.BATCH_CONTROL_RECORD_SIZE); this.size = Journal.BATCH_CONTROL_RECORD_SIZE; journal.addToTotalLength(Journal.BATCH_CONTROL_RECORD_SIZE); }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset+size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset + size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset + size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset+size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset+size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }
public void append(Journal.WriteCommand write) throws IOException { this.writes.addLast(write); write.location.setDataFileId(dataFile.getDataFileId()); write.location.setOffset(offset + size); int s = write.location.getSize(); size += s; dataFile.incrementLength(s); journal.addToTotalLength(s); } }