Package com.hp.hpl.jena.tdb

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


        {
            // Find from file ref.
            FileRef ref = FileRef.create(fileSet, ext) ;
            BlockMgr baseMgr = blockMgrs.get(ref) ;
            if ( baseMgr == null )
                throw new TDBException("No BlockMgr for "+ref) ;
            BlockMgrJournal blkMgr = new BlockMgrJournal(txn, ref, baseMgr) ;
            txn.addComponent(blkMgr) ;
            return blkMgr ;
        }
View Full Code Here


        public BlockMgr buildBlockMgr(FileSet fileSet, String ext, int blockSize)
        {
            FileRef ref = FileRef.create(fileSet, ext) ;
            BlockMgr blockMgr = blockMgrs.get(ref) ;
            if ( blockMgr == null )
                throw new TDBException("No BlockMgr for "+ref) ;
            blockMgr = new BlockMgrReadonly(blockMgr) ;
            return blockMgr ;
        }
View Full Code Here

        protected DatasetGraphTDB dsgToQuery(DatasetGraph dataset)
        {
            if (dataset instanceof DatasetGraphTDB) return (DatasetGraphTDB)dataset ;
            if (dataset instanceof DatasetGraphTransaction)
                return ((DatasetGraphTransaction)dataset).getDatasetGraphToQuery() ;
            throw new TDBException("Internal inconsistency: trying to execute query on unrecognized kind of DatasetGraph: "+Lib.className(dataset)) ;
        }
View Full Code Here

        }
   
        @Override
        public void start()                     {}
        @Override
        public void tuple(Tuple<Node> tuple)    { throw new TDBException("Tuple encountered while loading a dataset") ; }
View Full Code Here

        }

        @Override
        public void start()                     {}
        @Override
        public void quad(Quad quad)             { throw new TDBException("Quad encountered while loading a single graph") ; }
View Full Code Here

        @Override
        public void start()                     {}
        @Override
        public void quad(Quad quad)             { throw new TDBException("Quad encountered while loading a single graph") ; }
        @Override
        public void tuple(Tuple<Node> tuple)    { throw new TDBException("Tuple encountered while loading a single graph") ; }
View Full Code Here

    protected PageBase(Block block)
    {
        this.block = block ;
        long x = block.getId() ;
        if ( x < 0 )
            throw new TDBException("Page id is negative: "+x) ;
        if ( x > Integer.MAX_VALUE )
            throw new TDBException("Page id is large than MAX_INT: "+x) ;
        this.id = block.getId().intValue() ;
    }
View Full Code Here

    public final boolean add(Tuple<NodeId> tuple)
    {
        if ( Check )
        {
            if ( tupleLength != tuple.size() )
            throw new TDBException(String.format("Mismatch: tuple length %d / index for length %d", tuple.size(), tupleLength)) ;
        }
        return performAdd(tuple) ;
    }
View Full Code Here

    public final boolean delete(Tuple<NodeId> tuple)
    {
        if ( Check )
        {
            if ( tupleLength != tuple.size() )
            throw new TDBException(String.format("Mismatch: tuple length %d / index for length %d", tuple.size(), tupleLength)) ;
        }

        return performDelete(tuple) ;
    }
View Full Code Here

    public final Iterator<Tuple<NodeId>> find(Tuple<NodeId> pattern)
    {
        if ( Check )
        {
            if ( tupleLength != pattern.size() )
            throw new TDBException(String.format("Mismatch: tuple length %d / index for length %d", pattern.size(), tupleLength)) ;
        }
        // null to NodeId.NodIdAny ??
        return performFind(pattern) ;
    }
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.