org.aksw.commons.sparql.api.limit
Class QueryExecutionFactoryLimit<T extends com.hp.hpl.jena.query.QueryExecution>

java.lang.Object
  extended by org.aksw.commons.sparql.api.core.QueryExecutionFactoryDecorator<T>
      extended by org.aksw.commons.sparql.api.limit.QueryExecutionFactoryLimit<T>
All Implemented Interfaces:
QueryExecutionFactory, QueryExecutionFactoryQuery, QueryExecutionFactoryString

public class QueryExecutionFactoryLimit<T extends com.hp.hpl.jena.query.QueryExecution>
extends QueryExecutionFactoryDecorator<T>

A query execution that sets a limit on all queries

Author:
Claus Stadler

Date: 11/19/11 Time: 11:33 PM


Constructor Summary
QueryExecutionFactoryLimit(QueryExecutionFactory<? extends T> decoratee, boolean doCloneQuery, Long limit)
           
 
Method Summary
 T createQueryExecution(com.hp.hpl.jena.query.Query query)
           
 T createQueryExecution(String queryString)
           
static
<U extends com.hp.hpl.jena.query.QueryExecution>
QueryExecutionFactoryLimit<U>
decorate(QueryExecutionFactory<U> decoratee, boolean doCloneQuery, Long limit)
           
 
Methods inherited from class org.aksw.commons.sparql.api.core.QueryExecutionFactoryDecorator
getId, getState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryExecutionFactoryLimit

public QueryExecutionFactoryLimit(QueryExecutionFactory<? extends T> decoratee,
                                  boolean doCloneQuery,
                                  Long limit)
Method Detail

decorate

public static <U extends com.hp.hpl.jena.query.QueryExecution> QueryExecutionFactoryLimit<U> decorate(QueryExecutionFactory<U> decoratee,
                                                                                                      boolean doCloneQuery,
                                                                                                      Long limit)

createQueryExecution

public T createQueryExecution(com.hp.hpl.jena.query.Query query)
Specified by:
createQueryExecution in interface QueryExecutionFactoryQuery
Overrides:
createQueryExecution in class QueryExecutionFactoryDecorator<T extends com.hp.hpl.jena.query.QueryExecution>

createQueryExecution

public T createQueryExecution(String queryString)
Specified by:
createQueryExecution in interface QueryExecutionFactoryString
Overrides:
createQueryExecution in class QueryExecutionFactoryDecorator<T extends com.hp.hpl.jena.query.QueryExecution>


Copyright © 2012. All Rights Reserved.