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 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

      public org.gvsig.fmap.dal.feature.FeatureIndex getFeatureIndex(String name)
      Specified by:
      getFeatureIndex in interface org.gvsig.fmap.dal.feature.FeatureIndexes
    • addIndex

      public void addIndex(org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices index)
    • iterator

      public Iterator iterator()
      Specified by:
      iterator in interface org.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:
      getFeatureSet in interface org.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:
      areValid in interface org.gvsig.fmap.dal.feature.FeatureIndexes
    • toString

      public String toString()
      Overrides:
      toString in class Object