Package org.gvsig.fmap.dal.feature.impl
Class DefaultFeatureIndexes
java.lang.Object
org.gvsig.fmap.dal.feature.impl.DefaultFeatureIndexes
- All Implemented Interfaces:
org.gvsig.fmap.dal.feature.FeatureIndexes
public class DefaultFeatureIndexes
extends Object
implements org.gvsig.fmap.dal.feature.FeatureIndexes
This class provides access to a FeatureStore local indexes and also decides
which index to use given an evaluator containing the filter expression.
- Author:
- jyarza
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty DataIndexes for the given FeatureStore -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndex(org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices index) booleanareValid()org.gvsig.fmap.dal.feature.FeatureIndexgetFeatureIndex(String name) org.gvsig.fmap.dal.feature.FeatureSetgetFeatureSet(org.gvsig.tools.evaluator.Evaluator evaluator) Using the given evaluator attributes, choose and use an appropriate index to obtain a FeatureSet.iterator()toString()
-
Constructor Details
-
DefaultFeatureIndexes
public DefaultFeatureIndexes(DefaultFeatureStore store) throws org.gvsig.fmap.dal.exception.DataException Creates an empty DataIndexes for the given FeatureStore- Parameters:
store- FeatureStore to whom this belongs- Throws:
org.gvsig.fmap.dal.exception.DataException
-
-
Method Details
-
getFeatureIndex
- Specified by:
getFeatureIndexin interfaceorg.gvsig.fmap.dal.feature.FeatureIndexes
-
addIndex
public void addIndex(org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices index) -
iterator
- Specified by:
iteratorin interfaceorg.gvsig.fmap.dal.feature.FeatureIndexes
-
getFeatureSet
public org.gvsig.fmap.dal.feature.FeatureSet getFeatureSet(org.gvsig.tools.evaluator.Evaluator evaluator) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException Using the given evaluator attributes, choose and use an appropriate index to obtain a FeatureSet. If no index can be applied, then this method returns null- Specified by:
getFeatureSetin interfaceorg.gvsig.fmap.dal.feature.FeatureIndexes- Parameters:
evaluator-- Returns:
- FeatureSet or null if could not find any appropriate index.
- Throws:
org.gvsig.fmap.dal.feature.exception.FeatureIndexException
-
areValid
public boolean areValid()- Specified by:
areValidin interfaceorg.gvsig.fmap.dal.feature.FeatureIndexes
-
toString
-