Examples of ReorderTransformation


Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

    public static ReorderTransformation chooseOptimizer(Location location)
    {
        if ( location == null )
            return ReorderLib.identity() ;

        ReorderTransformation reorder = null ;
        if ( location.exists(Names.optStats) )
        {
            try {
                reorder = ReorderLib.weighted(location.getPath(Names.optStats)) ;
                log.debug("Statistics-based BGP optimizer")
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

            System.err.println("Not a quad or triple pattern") ;
            System.exit(2) ;
            bgp = null ;
        }
       
        ReorderTransformation reorder = chooseReorder(statsFile) ;
        //ReorderTransformation reorder = ReorderLib.fixed() ;
        BasicPattern bgp2 = reorder.reorder(bgp) ;
    
        System.out.println() ;
       
        print(bgp) ;
        System.out.println() ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

        //nodeTable = new NodeTableLogger(null, nodeTable) ;
       
        TripleTable tripleTable = makeTripleTable(location, nodeTable, policy) ;
        QuadTable quadTable = makeQuadTable(location, nodeTable, policy) ;
        DatasetPrefixesTDB prefixes = makePrefixTable(location, policy) ;
        ReorderTransformation transform  = chooseReorderTransformation(location) ;
       
        DatasetGraphTDB dsg = new DatasetGraphTDB(tripleTable, quadTable, prefixes, transform, null) ;
        return dsg ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

       
        TripleTable tripleTable = makeTripleTable(location, nodeTable, policy) ;
        QuadTable quadTable = makeQuadTable(location, nodeTable, policy) ;
        DatasetPrefixesTDB prefixes = makePrefixTable(location, policy) ;
       
        ReorderTransformation transform = (_transform==null) ? chooseReorderTransformation(location) : _transform ;
       
        StorageConfig storageConfig = new StorageConfig(location, params, readonly, blockMgrs, bufferChannels, nodeTables) ;
        DatasetGraphTDB dsg = new DatasetGraphTDB(tripleTable, quadTable, prefixes, transform, storageConfig) ;
        return dsg ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

    public static ReorderTransformation chooseOptimizer(Location location)
    {
        if ( location == null )
            return ReorderLib.identity() ;

        ReorderTransformation reorder = null ;
        if ( location.exists(Names.optStats) )
        {
            try {
                reorder = ReorderLib.weighted(location.getPath(Names.optStats)) ;
                log.debug("Statistics-based BGP optimizer")
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

    private static ReorderTransformation chooseOptimizer(Location location)
    {
        if ( location == null )
            return ReorderLib.identity() ;
       
        ReorderTransformation reorder = null ;
        if ( location.exists(Names.optStats) )
        {
            try {
                reorder = ReorderLib.weighted(location.getPath(Names.optStats)) ;
                logInfo.info("Statistics-based BGP optimizer")
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

        Graph graph = execCxt.getActiveGraph() ;

        // Choose reorder transformation and execution strategy.
       
        final ReorderTransformation reorder ;
        final StageGenerator executor ;
       
        if ( graph instanceof GraphMemFaster || graph instanceof GraphMem )            // New and old Graph-in-memory
        {
            reorder = reorderBasicStats(graph) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

    private static ReorderTransformation chooseOptimizer(Location location)
    {
        if ( location == null )
            return ReorderLib.identity() ;
       
        ReorderTransformation reorder = null ;
        if ( location.exists(Names.optStats) )
        {
            try {
                reorder = ReorderLib.weighted(location.getPath(Names.optStats)) ;
                logInfo.info("Statistics-based BGP optimizer")
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

        if ( ! input.hasNext() )
            return input ;
   
        // -- Input
        // Must pass this iterator into the next stage.
        ReorderTransformation transform = graph.getReorderTransform() ;
        if ( transform != null )
        {
            QueryIterPeek peek = QueryIterPeek.create(input, execCxt) ;
            input = peek ; // Must pass on
            pattern = reorder(pattern, peek, transform) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.optimizer.reorder.ReorderTransformation

        gn = decideGraphNode(gn, execCxt) ;
        if ( gn == null )
            return optimizeExecuteTriples(ds.getEffectiveDefaultGraph(), input, bgp, exprs, execCxt) ;
       
        // ---- Execute quads+filters
        ReorderTransformation transform = ds.getTransform() ;

        if ( transform != null )
        {
            QueryIterPeek peek = QueryIterPeek.create(input, execCxt) ;
            input = peek ; // Original input now invalid.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.