Package org.apache.jena.atlas

Examples of org.apache.jena.atlas.AtlasException


        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

                    for (Iterator<E> it : inputs)
                    {
                        Iter.close(it);
                    }
                   
                    throw new AtlasException("Cannot find one of the spill files", e);
                }
            }
           
            SpillSortIterator<E> ssi = new SpillSortIterator<>(inputs, comparator);
            registerCloseableIterator(ssi);
View Full Code Here

                memory = new ArrayList<>() ;
            }
        }
        catch (IOException e)
        {
            throw new AtlasException(e) ;
        }
    }
View Full Code Here

            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

        write(ch) ;
        column += 1 ;
    }

    private void write(char ch)
    { try { out.write(ch) ; } catch (IOException ex) { throw new AtlasException(ex) ; } }
View Full Code Here

    private void write(char ch)
    { try { out.write(ch) ; } catch (IOException ex) { throw new AtlasException(ex) ; } }
   
    private void write(String s)
    { try { out.write(s) ; } catch (IOException ex) { throw new AtlasException(ex) ; } }
View Full Code Here

    {
        try
        {
            InputStream details = new FileInputStream(file) ;
            java.util.logging.LogManager.getLogManager().readConfiguration(details) ;
        } catch (Exception ex) { throw new AtlasException(ex) ; }
    }
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.