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

Examples of com.hp.hpl.jena.tdb.base.StorageException


    @Override
    public void completeWrite(Block block)
    {
        if ( block.getId() != buffers.size()-1 )
            throw new StorageException() ;
        if ( block != allocBlock )
            throw new StorageException() ;
        allocBlock = null ;
        write(block.getId(), block.getByteBuffer()) ;
    }
View Full Code Here


    @Override
    public void reposition(long id)
    {
        if ( allocBlock != null )
            throw new StorageException("In the middle of an alloc-write") ;
        int newSize = (int)id ;
        if ( newSize < 0 || newSize > buffers.size() )
            // Can reposition to the end of the file.
            throw new StorageException() ;
        if ( newSize == buffers.size() )
            return ;
       
        List<ByteBuffer> buffers2 = new ArrayList<ByteBuffer>(newSize) ;
        for ( int i = 0 ; i < id ; i++ )
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.base.StorageException

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.