Package com.hp.hpl.jena.tdb.solver.stats

Examples of com.hp.hpl.jena.tdb.solver.stats.StatsCollectorNodeId


            this.monitor = monitor ;
            NodeTupleTable ntt = dsg.getTripleTable().getNodeTupleTable() ;
            this.nodeTable = ntt.getNodeTable() ;
            this.writerTriples = new WriteRows(outputTriples, 3, 20000) ;
            this.writerQuads = new WriteRows(outputQuads, 4, 20000) ;
            this.stats = new StatsCollectorNodeId(nodeTable) ;
        }
View Full Code Here


    }
   
    public static StatsResults stats(DatasetGraphTDB dsg, Node gn)
    {
        NodeTable nt = dsg.getTripleTable().getNodeTupleTable().getNodeTable() ;
        StatsCollectorNodeId stats = new StatsCollectorNodeId(nt) ;
       
        if ( gn == null )
        {
            Iterator<Tuple<NodeId>> iter = dsg.getTripleTable().getNodeTupleTable().findAll() ;
            for ( ; iter.hasNext(); )
            {
                Tuple<NodeId> t = iter.next() ;
                stats.record(null, t.get(0), t.get(1), t.get(2)) ;
            }
        } else {
            // If the union graph, then we need to scan all quads but with uniqueness.
            boolean unionGraph = Quad.isUnionGraph(gn) ;
            NodeId gnid = null ;
            if ( ! unionGraph )
            {
                gnid = nt.getNodeIdForNode(gn) ;
                if ( NodeId.isDoesNotExist(gnid) )
                Log.warn(tdbstats.class, "No such graph: "+gn) ;
            }
               
            NodeTupleTable ntt = dsg.getQuadTable().getNodeTupleTable() ;
            Iterator<Tuple<NodeId>> iter = unionGraph
                ? SolverLib.unionGraph(ntt)
                : ntt.find(gnid, null, null, null) ;
            for ( ; iter.hasNext(); )
            {
                Tuple<NodeId> t = iter.next() ;
                stats.record(t.get(0), t.get(1), t.get(2), t.get(3)) ;
            }
        }
        return stats.results() ;
    }
View Full Code Here

            this.monitor = monitor ;
            NodeTupleTable ntt = dsg.getTripleTable().getNodeTupleTable() ;
            this.nodeTable = ntt.getNodeTable() ;
            this.writerTriples = new WriteRows(outputTriples, 3, 20000) ;
            this.writerQuads = new WriteRows(outputQuads, 4, 20000) ;
            this.stats = new StatsCollectorNodeId(nodeTable) ;
        }
View Full Code Here

   
    private StatsResults statsForGraph(NodeId gid)
    {
        Iterator<Tuple<NodeId>> iter = quads.find(gid, null, null, null) ;
       
        StatsCollectorNodeId stats = new StatsCollectorNodeId(nt) ;
        for ( ; iter.hasNext(); )
        {
            Tuple<NodeId> t = iter.next() ;
            stats.record(t.get(0), t.get(1), t.get(2), t.get(3)) ;
        }
       
        return stats.results() ;
    }
View Full Code Here

   
    private StatsResults statsForDftGraph()
    {
        Iterator<Tuple<NodeId>> iter = triples.findAll() ;
       
        StatsCollectorNodeId stats = new StatsCollectorNodeId(nt) ;
        for ( ; iter.hasNext(); )
        {
            Tuple<NodeId> t = iter.next() ;
            stats.record(null, t.get(0), t.get(1), t.get(2)) ;
        }
       
        return stats.results() ;
    }
View Full Code Here

            this.monitor = monitor ;
            NodeTupleTable ntt = dsg.getTripleTable().getNodeTupleTable() ;
            this.nodeTable = ntt.getNodeTable() ;
            this.writerTriples = new WriteRows(outputTriples, 3, 20000) ;
            this.writerQuads = new WriteRows(outputQuads, 4, 20000) ;
            this.stats = new StatsCollectorNodeId() ;
        }
View Full Code Here

            this.monitor = monitor ;
            NodeTupleTable ntt = dsg.getTripleTable().getNodeTupleTable() ;
            this.nodeTable = ntt.getNodeTable() ;
            this.writerTriples = new WriteRows(outputTriples, 3, 20000) ;
            this.writerQuads = new WriteRows(outputQuads, 4, 20000) ;
            this.stats = new StatsCollectorNodeId(nodeTable) ;
        }
View Full Code Here

            this.monitor = monitor ;
            NodeTupleTable ntt = dsg.getTripleTable().getNodeTupleTable() ;
            this.nodeTable = ntt.getNodeTable() ;
            this.writerTriples = new WriteRows(outputTriples, 3, 20000) ;
            this.writerQuads = new WriteRows(outputQuads, 4, 20000) ;
            this.stats = new StatsCollectorNodeId() ;
        }
View Full Code Here

        String filename = new FileSet(dsg.getLocation(), Names.indexId2Node).filename(Names.extNodeData) ;
        this.objects = FileFactory.createObjectFileDisk(filename) ;
       
        this.outputTriples = outputTriples ;
        this.outputQuads = outputQuads ;
        this.stats = new StatsCollectorNodeId() ;
       
        this.sdb01 = new MultiThreadedSortedDataBag<Pair<byte[], byte[]>>(getThresholdPolicy(), serializationFactory, new PairComparator());
       
        try {
            this.digest = MessageDigest.getInstance("MD5") ;              
View Full Code Here

        this.monitor = monitor ;
        NodeTupleTable ntt = dsg.getTripleTable().getNodeTupleTable() ;
        this.nodeTable = ntt.getNodeTable() ;
        this.outputTriples = outputTriples ;
        this.outputQuads = outputQuads ;
        this.stats = new StatsCollectorNodeId() ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.solver.stats.StatsCollectorNodeId

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.