01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.caching.impl;
17:
18: import org.geotools.caching.DataCache;
19: import org.geotools.caching.FeatureIndex;
20: import org.geotools.caching.QueryTracker;
21:
22: import org.geotools.data.DataStore;
23:
24: import org.geotools.feature.FeatureType;
25:
26: public class CacheInternalEngine {
27: private final FeatureType type;
28: private final QueryTracker tracker;
29: private final FeatureIndex index;
30:
31: public CacheInternalEngine(DataCache parent, FeatureType t) {
32: this .type = t;
33: this .tracker = new SpatialQueryTracker();
34: this .index = new MemoryFeatureIndex(parent, t, 100);
35: }
36:
37: public FeatureType getType() {
38: return type;
39: }
40:
41: public QueryTracker getTracker() {
42: return tracker;
43: }
44:
45: public FeatureIndex getIndex() {
46: return index;
47: }
48: }
|