Package org.broadinstitute.gatk.engine.io.storage

Examples of org.broadinstitute.gatk.engine.io.storage.Storage


* @author mhanna
* @version 0.1
*/
public class DirectOutputTracker extends OutputTracker {
    public <T> T getStorage( Stub<T> stub ) {
        Storage target = outputs.get(stub);
        if( target == null ) {
            target = StorageFactory.createStorage(stub);
            outputs.put(stub, target);
        }
        return (T)target;
View Full Code Here


            threadLocalOutputStreams = new HashMap<Stub,Storage>();
            threadsToStorage.put( group, threadLocalOutputStreams );
        }

        for ( final Stub stub : outputs.keySet() ) {
            final Storage target = StorageFactory.createStorage(stub, createTempFile(stub));
            threadLocalOutputStreams.put(stub, target);
        }
    }
View Full Code Here

        }
    }

    @Override
    public <T> T getStorage( final Stub<T> stub ) {
        Storage target;

        if (bypass) {
            target = outputs.get(stub);
            if( target == null ) {
                target = StorageFactory.createStorage(stub);
View Full Code Here

            return null;

        final OutputMergeTask outputMergeTask = new OutputMergeTask();
        for( Map.Entry<Stub,Storage> entry: threadLocalOutputStreams.entrySet() ) {
            final Stub stub = entry.getKey();
            final Storage storageEntry = entry.getValue();

            storageEntry.close();
            outputMergeTask.addMergeOperation(getTargetStream(stub), storageEntry);
        }

//        logger.info("Closing " + Thread.currentThread().getId() + " => " + threadLocalOutputStreams);
        threadLocalOutputStreams.clear();
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.engine.io.storage.Storage

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.