Package krati.core.array.SimpleDataArrayCompactor

Examples of krati.core.array.SimpleDataArrayCompactor.CompactionUpdateBatch


     */
    protected boolean consumeCompactionBatch() {
        /*
         * Consume one compaction update batch generated by the compactor.
         */
        CompactionUpdateBatch updateBatch = _compactor.pollCompactionBatch();
        if(updateBatch != null) {
            try {
                consumeCompaction(updateBatch);
            } catch (Exception e) {
                _log.error("failed to consume compaction batch " + updateBatch.getDescriptiveId(), e);
            } finally {
                _compactor.recycleCompactionBatch(updateBatch);
            }
            return true;
        }
View Full Code Here


    /**
     * Consumes all {@link CompactionUpdateBatch}(es) produced by the Segment compactor.
     */
    protected void consumeCompactionBatches() {
        while(true) {
            CompactionUpdateBatch updateBatch = _compactor.pollCompactionBatch();
            if(updateBatch == null) break;
           
            try {
                consumeCompaction(updateBatch);
            } catch (Exception e) {
                _log.error("failed to consume compaction batch " + updateBatch.getDescriptiveId(), e);
            } finally {
                _compactor.recycleCompactionBatch(updateBatch);
            }
        }
    }
View Full Code Here

TOP

Related Classes of krati.core.array.SimpleDataArrayCompactor.CompactionUpdateBatch

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.