01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.rdbms.evaluation;
07:
08: import org.openrdf.query.Dataset;
09: import org.openrdf.sail.rdbms.RdbmsTripleRepository;
10: import org.openrdf.sail.rdbms.schema.IdSequence;
11:
12: /**
13: * Creates an {@link RdbmsEvaluation}.
14: *
15: * @author James Leigh
16: *
17: */
18: public class RdbmsEvaluationFactory {
19: private QueryBuilderFactory factory;
20: private RdbmsTripleRepository triples;
21: private IdSequence ids;
22:
23: public void setQueryBuilderFactory(QueryBuilderFactory factory) {
24: this .factory = factory;
25: }
26:
27: public void setRdbmsTripleRepository(RdbmsTripleRepository triples) {
28: this .triples = triples;
29: }
30:
31: public void setIdSequence(IdSequence ids) {
32: this .ids = ids;
33: }
34:
35: public RdbmsEvaluation createRdbmsEvaluation(Dataset dataset) {
36: return new RdbmsEvaluation(factory, triples, dataset, ids);
37: }
38: }
|