Package com.hp.hpl.jena.tdb.base.file

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannelFile


    private static Logger log = LoggerFactory.getLogger(JournalControl.class) ;

    /** Dump a journal - debug support function - opens the journal specially - inconsistent views possible  */
    public static void print(String filename)
    {
        BufferChannelFile chan = BufferChannelFile.createUnmanaged(filename, "r") ;
        Journal journal = new Journal(chan) ;
        JournalControl.print(journal) ;
        chan.close() ;
    }
View Full Code Here


    private static Logger log = LoggerFactory.getLogger(JournalControl.class) ;

    /** Dump a journal - debug support function - opens the journal specially - inconsistent views possible  */
    public static void print(String filename)
    {
        BufferChannelFile chan = BufferChannelFile.createUnmanaged(filename, "r") ;
        Journal journal = new Journal(chan) ;
        JournalControl.print(journal) ;
        chan.close() ;
    }
View Full Code Here

   
    @Override
    protected ObjectFile make()
    {
        FileOps.deleteSilent(filename) ;
        BufferChannel chan = new BufferChannelFile(filename) ;
        // No buffering.
        return new ObjectFileStorage(chan, -1) ;
    }
View Full Code Here

   
    @Override
    protected BufferChannel open()
    {
        FileOps.deleteSilent(filename) ;
        return new BufferChannelFile(filename) ;
    }
View Full Code Here

    {
        BufferChannel chan ;
        if ( location.isMem() )
            chan = BufferChannelMem.create() ;
        else
            chan = new BufferChannelFile(journalFilename(location)) ;
        return new Journal(chan) ;
    }
View Full Code Here

   
    private static String journalFilename(Location location) { return location.absolute(Names.journalFile) ; }
   
    private Journal(String filename)
    {
        this(new BufferChannelFile(filename)) ;
       
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.base.file.BufferChannelFile

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.