Package org.apache.jena.atlas

Examples of org.apache.jena.atlas.AtlasException


            dftKeyLength = SystemTDB.LenIndexQuadRecord ;
            dftValueLength = 0 ;
        }
        else
        {
            throw new AtlasException("Index name: "+indexName) ;
        }
       
        ColumnMap colMap = new ColumnMap(primaryOrder, indexName) ;

View Full Code Here


       
        try {
            outputTriples = new FileOutputStream(dataFileTriples) ;
            outputQuads = new FileOutputStream(dataFileQuads) ;
        }
        catch (FileNotFoundException e) { throw new AtlasException(e) ; }
       
        NodeTableBuilder sink = new NodeTableBuilder(dsg, monitor, outputTriples, outputQuads) ;
        monitor.start() ;
        sink.startBulk() ;
        for( String filename : datafiles)
View Full Code Here

        this.serializationFactory = serializerFactory;
    }
   
    private void checkClosed()
    {
        if (closed) throw new AtlasException("DefaultDataBag is closed, no operations can be performed on it.") ;
    }
View Full Code Here

    @Override
    public void add(E item)
    {
        checkClosed();
        if (finishedAdding)
            throw new AtlasException("DefaultDataBag: Cannot add any more items after the writing phase is complete.");
       
        if (!policy.isThresholdExceeded())
        {
            memory.add(item);
        }
View Full Code Here

        {
            out = getSpillStream();
        }
        catch (IOException e)
        {
            throw new AtlasException(e);
        }
        serializer = serializationFactory.createSerializer(out);
       
        for (E e : memory)
        {
View Full Code Here

            {
                in = new BufferedInputStream(new FileInputStream(spillFile)) ;
            }
            catch ( FileNotFoundException ex )
            {
                throw new AtlasException(ex) ;
            }
            Iterator<E> deserializer = serializationFactory.createDeserializer(in) ;
            IteratorResourceClosing<E> irc = new IteratorResourceClosing<E>(deserializer, in) ;
            registerCloseableIterator(irc);
            toReturn = irc;
View Full Code Here

        this.finished = false;
    }
   
    private void checkFinished()
    {
        if (finished) throw new AtlasException("IteratorResourceClosing is closed, no further operations can be performed on it.") ;
    }
View Full Code Here

        this.comparator = comparator;
    }
   
    protected void checkClosed()
    {
        if (closed) throw new AtlasException("SortedDataBag is closed, no operations can be performed on it.") ;
    }
View Full Code Here

    @Override
    public void add(E item)
    {
        checkClosed();
        if (finishedAdding)
            throw new AtlasException("SortedDataBag: Cannot add any more items after the writing phase is complete.");
       
        if (policy.isThresholdExceeded())
        {
            spill();
        }
View Full Code Here

            {
                out = getSpillStream();
            }
            catch (IOException e)
            {
                throw new AtlasException(e);
            }
           
            // Sort the tuples
            // Collections.sort() will copy to an array, sort, and then copy back.  Avoid that
            // extra copy by copying to an array and using Arrays.sort().  Also it lets us use
View Full Code Here

TOP

Related Classes of org.apache.jena.atlas.AtlasException

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.