Package com.hp.hpl.jena.tdb

Examples of com.hp.hpl.jena.tdb.TDBException


    }
   
    private static Triple triple(NodeTable nodeTable, Tuple<NodeId> tuple)
    {
        if ( tuple.size() != 3 )
            throw new TDBException("Tuple is not of length 3: "+tuple) ;
        return triple(nodeTable, tuple.get(0), tuple.get(1), tuple.get(2)) ;
    }
View Full Code Here


    }
   
    private static Quad quad(NodeTable nodeTable, Tuple<NodeId> tuple)
    {
        if ( tuple.size() != 4 )
            throw new TDBException("Tuple is not of length 4: "+tuple) ;
        return quad(nodeTable, tuple.get(0), tuple.get(1), tuple.get(2), tuple.get(3)) ;
    }
View Full Code Here

            return "?"+n.getName() ;
//       
//        if ( n.equals(Node.ANY) )
//            return "ANY" ;

        throw new TDBException("Failed to turn a node into a string: "+n) ;
        //return null ;
    }
View Full Code Here

                     n.getLiteralLexicalForm(),
                     n.getLiteralLanguage(),
                     n.getLiteralDatatypeURI(), nt) ;
                return  ;
            case OTHER:
                throw new TDBException("Attempt to hash something strange: "+n) ;
        }
        throw new TDBException("NodeType broken: "+n) ;
    }
View Full Code Here

            int pRecLen = mf.getPropertyAsInteger(ParamValueLength) ;
            return new BPlusTreeParams(pOrder, pKeyLen, pRecLen) ;
        } catch (NumberFormatException ex)
        {
            Log.fatal(BPlusTreeParams.class, "Badly formed metadata for B+Tree") ;
            throw new TDBException("Failed to read metadata") ;
        }
    }
View Full Code Here

    public void begin(Transaction txn)
    {
        //debug("%s begin", txn.getLabel()) ;
       
        if ( this.txn.getTxnId() != txn.getTxnId() )
            throw new TDBException(String.format("Different transactions: %s %s", this.txn.getLabel(), txn.getLabel())) ;
        if ( passthrough )
            throw new TDBException("Already active") ;
        passthrough = false ;
       
        allocOffset = base.allocOffset().getId() ;
        // base node table empty e.g. first use.
        journalObjFileStartOffset = journalObjFile.length() ;
View Full Code Here

        System.err.println() ;
        System.err.println() ;
        System.err.println(msg) ;
        dump() ;  
        System.err.println() ;
        throw new TDBException(msg) ;
    }
View Full Code Here

            @SuppressWarnings("unchecked")
            Filter<Tuple<NodeId>> f = (Filter<Tuple<NodeId>>)x ;
            return f ;
        } catch (ClassCastException ex)
        {
            throw new TDBException("Not a Filter<Tuple<NodeId>>:"+x, ex) ;
        }
    }
View Full Code Here

    {
        FileRef f = id2name.get(fileId) ;
        if ( f == null )
        {
            Log.fatal(FileRef.class, "No FileRef registered for id: "+fileId) ;
            throw new TDBException("No FileRef registered for id: "+fileId) ;
        }
        return f ;
    }
View Full Code Here

                                        int sizeNodeId2NodeCache, int sizeNodeMissCacheSize)
        {
            FileRef ref = FileRef.create(fsObjectFile.filename(Names.extNodeData)) ;
            NodeTable ntBase = nodeTables.get(ref) ;
            if ( ntBase == null )
                throw new TDBException("No NodeTable for "+ref) ;
           
            RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId) ;
            Index idx = new IndexMap(recordFactory) ;
            String objFilename = fsObjectFile.filename(Names.extNodeData+"-"+Names.extJournal) ;
            ObjectFile objectFile ;
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.TDBException

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.