/** * Create a new page output stream. * * @param store the page store * @param trunkPage the first trunk page (already allocated) * @param exclude the pages not to use * @param logKey the log key of the first trunk page * @param atEnd whether only pages at the end of the file should be used */ public PageOutputStream(PageStore store, int trunkPage, BitField exclude, int logKey, boolean atEnd) { this.trace = store.getTrace(); this.store = store; this.trunkPageId = trunkPage; this.exclude = exclude; // minus one, because we increment before creating a trunk page this.logKey = logKey - 1; this.atEnd = atEnd; minPageId = atEnd ? trunkPage : 0; }
PageInputStream(PageStore store, int logKey, int firstTrunkPage, int dataPage) { this.store = store; this.trace = store.getTrace(); // minus one because we increment before comparing this.logKey = logKey - 1; this.firstTrunkPage = firstTrunkPage; trunkIterator = new PageStreamTrunk.Iterator(store, firstTrunkPage); this.dataPage = dataPage; }
PageLog(PageStore store) { this.store = store; dataBuffer = store.createData(); trace = store.getTrace(); compress = new CompressLZF(); compressBuffer = new byte[store.getPageSize() * 2]; }
/** * Create a new page output stream. * * @param store the page store * @param trunkPage the first trunk page (already allocated) * @param exclude the pages not to use * @param logKey the log key of the first trunk page * @param atEnd whether only pages at the end of the file should be used */ public PageOutputStream(PageStore store, int trunkPage, BitField exclude, int logKey, boolean atEnd) { this.trace = store.getTrace(); this.store = store; this.trunkPageId = trunkPage; this.exclude = exclude; // minus one, because we increment before creating a trunk page this.logKey = logKey - 1; this.atEnd = atEnd; minPageId = atEnd ? trunkPage : 0; }
/** * Create a new page output stream. * * @param store the page store * @param trunkPage the first trunk page (already allocated) * @param exclude the pages not to use * @param logKey the log key of the first trunk page * @param atEnd whether only pages at the end of the file should be used */ public PageOutputStream(PageStore store, int trunkPage, BitField exclude, int logKey, boolean atEnd) { this.trace = store.getTrace(); this.store = store; this.trunkPageId = trunkPage; this.exclude = exclude; // minus one, because we increment before creating a trunk page this.logKey = logKey - 1; this.atEnd = atEnd; minPageId = atEnd ? trunkPage : 0; }
PageInputStream(PageStore store, int logKey, int firstTrunkPage, int dataPage) { this.store = store; this.trace = store.getTrace(); // minus one because we increment before comparing this.logKey = logKey - 1; this.firstTrunkPage = firstTrunkPage; trunkIterator = new PageStreamTrunk.Iterator(store, firstTrunkPage); this.dataPage = dataPage; }
PageInputStream(PageStore store, int logKey, int firstTrunkPage, int dataPage) { this.store = store; this.trace = store.getTrace(); // minus one because we increment before comparing this.logKey = logKey - 1; this.firstTrunkPage = firstTrunkPage; trunkIterator = new PageStreamTrunk.Iterator(store, firstTrunkPage); this.dataPage = dataPage; }
PageLog(PageStore store) { this.store = store; dataBuffer = store.createData(); trace = store.getTrace(); compress = new CompressLZF(); compressBuffer = new byte[store.getPageSize() * 2]; }
PageLog(PageStore store) { this.store = store; dataBuffer = store.createData(); trace = store.getTrace(); compress = new CompressLZF(); compressBuffer = new byte[store.getPageSize() * 2]; }