edu.utdallas.paged.query
Class PagedQueryExecutionFactory

java.lang.Object
  extended by edu.utdallas.paged.query.PagedQueryExecutionFactory

public class PagedQueryExecutionFactory
extends java.lang.Object

A factory class that returns query execution plans given the query and the model, we use this class primarily to switch between the extended in-memory model and the RDB model when we are using the unified model

Author:
vaibhav

Method Summary
static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.rdf.model.Model model)
          Method that returns a query execution plan
static com.hp.hpl.jena.query.QueryExecution create(java.lang.String queryStr, com.hp.hpl.jena.rdf.model.Model model)
          Method that returns a query execution plan
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query,
                                                          com.hp.hpl.jena.rdf.model.Model model)
Method that returns a query execution plan

Parameters:
query - - the SPARQL query
model - - the model we want to query
Returns:
- A query execution plan

create

public static com.hp.hpl.jena.query.QueryExecution create(java.lang.String queryStr,
                                                          com.hp.hpl.jena.rdf.model.Model model)
Method that returns a query execution plan

Parameters:
queryStr - - the SPARQL query as a string
model - - the model we want to query
Returns:
- A query execution plan