APISonar


org.apache.jena.sparql.engine.iterator.QueryIteratorTiming.time

> org > apache > jena > sparql > engine > iterator > QueryIteratorTiming > time
org APIs apache APIs jena APIs sparql APIs engine APIs iterator APIs QueryIteratorTiming APIs time APIs

Example 1
public QueryIterator eval(Op op, DatasetGraph dsg, Binding input, Context context)
    {
        ExecutionContext execCxt = new ExecutionContext(context, dsg.getDefaultGraph(), dsg, QC.getFactory(context)) ;
        QueryIterator qIter1 = 
            ( input.isEmpty() ) ? QueryIterRoot.create(execCxt) 
                                : QueryIterRoot.create(input, execCxt);
        QueryIterator qIter = QC.execute(op, qIter1, execCxt) ;
        // Wrap with something to check for closed iterators.
        qIter = QueryIteratorCheck.check(qIter, execCxt) ;
        // Need call back.
        if ( context.isTrue(ARQ.enableExecutionTimeLogging) )
            qIter = QueryIteratorTiming.time(qIter) ;
        return qIter ;
    }