Interface FeatureIndexProvider

All Superinterfaces:
org.gvsig.fmap.dal.DataFactoryUnit
All Known Implementing Classes:
AbstractFeatureIndexProvider

public interface FeatureIndexProvider extends org.gvsig.fmap.dal.DataFactoryUnit
  • Method Details

    • setFeatureIndexProviderServices

      void setFeatureIndexProviderServices(FeatureIndexProviderServices services)
      Sets the IndexProviderServices that will provide application services to this index provider
    • initialize

      void initialize() throws org.gvsig.fmap.dal.exception.InitializeException
      Initializes this provider
      Throws:
      org.gvsig.fmap.dal.exception.InitializeException
    • insert

      void insert(Object value, FeatureReferenceProviderServices fref)
      Inserts a value into the index
    • delete

      void delete(Object value, FeatureReferenceProviderServices fref)
      Deletes a value from the index, given its reference
    • match

      List match(Object value) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Performs a search in the index and returns a list with all the values that match the given value
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException - TODO
    • range

      List range(Object value1, Object value2) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Performs a search in the index and returns a list with the values that intersect with the given interval
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException - TODO
    • nearest

      List nearest(int count, Object value) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Performs a search in the index and returns the list of up to n values which are nearest to the given value.
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • nearest

      List nearest(int count, Object value, Object tolerance) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Performs a search in the index and returns the list of up to n values which are nearest to the given value and within the distance specified by tolerance.
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • isMatchSupported

      boolean isMatchSupported()
      Returns true if the provider supports the match function
    • isRangeSupported

      boolean isRangeSupported()
      Returns true if the provider supports the range function
    • isNearestSupported

      boolean isNearestSupported()
      Returns true if the provider supports the nearest function
    • isNearestToleranceSupported

      boolean isNearestToleranceSupported()
      Returns true if the provider supports the nearest with tolerance function
    • allowNulls

      boolean allowNulls()
    • clear

      void clear() throws org.gvsig.fmap.dal.exception.DataException
      Removes all indexed data.
      Throws:
      org.gvsig.fmap.dal.exception.DataException - if there is an error clearing the index