Package xbird.storage.io

Examples of xbird.storage.io.FixedSegments


        _strChunk.flush(coll, docName, properties);

        properties.save();

        // #4 write block in segment paged files
        FixedSegments paged = getPaged(coll, docName);
        pageOutSegments(paged, 0, true);
        close();
    }
View Full Code Here


    }

    public FixedSegments getPaged(final DbCollection coll, final String docName) {
        final File baseDir = new File(coll.getAbsolutePath());
        final File segFile = new File(baseDir, docName + DTM_SEGMENT_FILE_SUFFIX);
        return new FixedSegments(segFile, PAGE_SIZE);
    }
View Full Code Here

        private final ILock _lock = new AtomicBackoffLock();

        protected PersistentBigDocumentTable(final DbCollection coll, final String docName, final PropertyMap docProps) {
            super(coll, docName, docProps);
            final FixedSegments paged = loadSegments(coll, docName);
            this._paged = paged;
            final IntHash<long[]> readCache = ENV_USE_2QCACHE ? new Int2QCache<long[]>(PAGE_CACHE_SIZE)
                    : new IntLRUMap<long[]>(PAGE_CACHE_SIZE);
            this._pageReadCache = readCache;
            this._dirtyBuffer = new ObservableLongLRUMap<long[]>(256, 32, new BufferWriter(paged, readCache));
View Full Code Here

            this._dirtyBuffer = new ObservableLongLRUMap<long[]>(256, 32, new BufferWriter(paged, readCache));
        }

        public PersistentBigDocumentTable(final DbCollection coll, final String docName) {
            super(coll, docName);
            final FixedSegments paged = loadSegments(coll, docName);
            this._paged = paged;
            final IntLRUMap<long[]> readCache = new IntLRUMap<long[]>(PAGE_CACHE_SIZE);
            this._pageReadCache = readCache;
            this._dirtyBuffer = new ObservableLongLRUMap<long[]>(256, 32, new BufferWriter(paged, readCache));
        }
View Full Code Here

            }
        }

        private static FixedSegments loadSegments(final DbCollection coll, final String docName) {
            final File segFile = new File(coll.getDirectory(), docName + DTM_SEGMENT_FILE_SUFFIX);
            return new FixedSegments(segFile, PAGE_SIZE);
        }
View Full Code Here

        _strChunk.flush(coll, docName, properties);

        properties.save();

        // #4 write block in segment paged files
        FixedSegments paged = getPaged(coll, docName);
        pageOutSegments(paged, 0, true);
        close();
    }
View Full Code Here

    }

    public FixedSegments getPaged(final DbCollection coll, final String docName) {
        final File baseDir = new File(coll.getAbsolutePath());
        final File segFile = new File(baseDir, docName + DTM_SEGMENT_FILE_SUFFIX);
        return new FixedSegments(segFile, PAGE_SIZE);
    }
View Full Code Here

        private final ILock _lock = new AtomicBackoffLock();

        protected PersistentBigDocumentTable(final DbCollection coll, final String docName, final PropertyMap docProps) {
            super(coll, docName, docProps);
            final FixedSegments paged = loadSegments(coll, docName);
            this._paged = paged;
            final IntHash<long[]> readCache = ENV_USE_2QCACHE ? new Int2QCache<long[]>(PAGE_CACHE_SIZE)
                    : new IntLRUMap<long[]>(PAGE_CACHE_SIZE);
            this._pageReadCache = readCache;
            this._dirtyBuffer = new ObservableLongLRUMap<long[]>(256, 32, new BufferWriter(paged, readCache));
View Full Code Here

            this._dirtyBuffer = new ObservableLongLRUMap<long[]>(256, 32, new BufferWriter(paged, readCache));
        }

        public PersistentBigDocumentTable(final DbCollection coll, final String docName) {
            super(coll, docName);
            final FixedSegments paged = loadSegments(coll, docName);
            this._paged = paged;
            final IntLRUMap<long[]> readCache = new IntLRUMap<long[]>(PAGE_CACHE_SIZE);
            this._pageReadCache = readCache;
            this._dirtyBuffer = new ObservableLongLRUMap<long[]>(256, 32, new BufferWriter(paged, readCache));
        }
View Full Code Here

            }
        }

        private static FixedSegments loadSegments(final DbCollection coll, final String docName) {
            final File segFile = new File(coll.getDirectory(), docName + DTM_SEGMENT_FILE_SUFFIX);
            return new FixedSegments(segFile, PAGE_SIZE);
        }
View Full Code Here

TOP

Related Classes of xbird.storage.io.FixedSegments

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.