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

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


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


                blkMgr.overwrite(blk) ;
                return true ;
            }  
            case Buffer:
            {
                BufferChannel chan = dsg.getConfig().bufferChannels.get(e.getFileRef()) ;
                ByteBuffer bb = e.getByteBuffer() ;
                log.debug("Replay: {} {}",e.getFileRef(), bb) ;
                chan.write(bb, 0) ; // YUK!
                return true ;
            }
               
            case Commit:
                return false ;
View Full Code Here

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

public class TestObjectFileBuffering extends BaseTest
{
    protected ObjectFile make(int bufferSize)
    {
        BufferChannel chan = BufferChannelMem.create() ;
        return new ObjectFileStorage(chan, bufferSize) ;
    }
View Full Code Here

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

    static FileRef testRef2 = FileRef.create("TEST2") ;
   
    Journal journal ;
    @Before public void before()
    {
        BufferChannel mem = BufferChannelMem.create("journal") ;
        journal = new Journal(mem) ;
        bb1.clear() ;
        bb2.clear() ;
        bb3.clear() ;
    }
View Full Code Here

TOP

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

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.