.pageSize(pageSize).minCacheSize(pageSize * Math.max(100, slots * 16)); mPageCopyIndex = _LocalDatabase.openTemp(tfm, config); mTempFile = config.mBaseFile;
.pageSize(pageSize).minCacheSize(pageSize * Math.max(100, slots * 16)); mPageCopyIndex = LocalDatabase.openTemp(tfm, config); mTempFile = config.mBaseFile;
.pageSize(pageSize).minCacheSize(pageSize * Math.max(100, slots * 16)); mPageCopyIndex = _LocalDatabase.openTemp(tfm, config); mTempFile = config.mBaseFile;
.pageSize(pageSize).minCacheSize(pageSize * Math.max(100, slots * 16)); mPageCopyIndex = LocalDatabase.openTemp(tfm, config); mTempFile = config.mBaseFile;
/** * @param nodeCache optional */ SnapshotImpl(TempFileManager tfm, long pageCount, long redoPos, _LocalDatabase nodeCache, PageArray rawPageArray) throws IOException { mNodeCache = nodeCache; mRawPageArray = rawPageArray; mTempFileManager = tfm; mSnapshotPageCount = pageCount; mSnapshotRedoPosition = redoPos; int pageSize = pageSize(); DatabaseConfig config = new DatabaseConfig() .pageSize(pageSize).minCacheSize(pageSize * 100); mPageCopyIndex = _LocalDatabase.openTemp(tfm, config); mTempFile = config.mBaseFile; mSnapshotLock = new Object(); mCaptureLatch = new Latch(); mCaptureBufferArray = new byte[pageSize]; // Allocates if page is not an array. The copy is not actually required. mCaptureBuffer = p_transfer(mCaptureBufferArray); // -2: Not yet started. -1: Started, but nothing written yet. mProgress = -2; mWriteInProgress = -2; mCaptureInProgress = -1; }
/** * @param nodeCache optional */ SnapshotImpl(TempFileManager tfm, long pageCount, long redoPos, LocalDatabase nodeCache, PageArray rawPageArray) throws IOException { mNodeCache = nodeCache; mRawPageArray = rawPageArray; mTempFileManager = tfm; mSnapshotPageCount = pageCount; mSnapshotRedoPosition = redoPos; int pageSize = pageSize(); DatabaseConfig config = new DatabaseConfig() .pageSize(pageSize).minCacheSize(pageSize * 100); mPageCopyIndex = LocalDatabase.openTemp(tfm, config); mTempFile = config.mBaseFile; mSnapshotLock = new Object(); mCaptureLatch = new Latch(); mCaptureBufferArray = new byte[pageSize]; // Allocates if page is not an array. The copy is not actually required. mCaptureBuffer = p_transfer(mCaptureBufferArray); // -2: Not yet started. -1: Started, but nothing written yet. mProgress = -2; mWriteInProgress = -2; mCaptureInProgress = -1; }
.lockTimeout(lockTimeout, TimeUnit.MILLISECONDS) .syncWrites(syncWrites) .pageSize(pageSize) .directPageAccess(directPageAccess) .checkpointRate(checkpointRate, TimeUnit.MILLISECONDS)