Class DefaultFeatureIndex

java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.fmap.dal.feature.impl.DefaultFeatureIndex
All Implemented Interfaces:
org.gvsig.fmap.dal.feature.FeatureIndex, org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.observer.Observable, org.gvsig.tools.observer.WeakReferencingObservable

public class DefaultFeatureIndex extends org.gvsig.tools.dispose.impl.AbstractDisposable implements org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices, org.gvsig.tools.observer.WeakReferencingObservable
Default feature index provider services.
Author:
gvSIG team
  • Constructor Details

    • DefaultFeatureIndex

      public DefaultFeatureIndex(org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServices featureStore, org.gvsig.fmap.dal.feature.FeatureType featureType, org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider indexProvider, String attributeName, String indexName)
  • Method Details

    • getFeatureAttributeDescriptor

      public final org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor getFeatureAttributeDescriptor()
      Specified by:
      getFeatureAttributeDescriptor in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • getFeatureStoreProviderServices

      public final org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServices getFeatureStoreProviderServices()
      Specified by:
      getFeatureStoreProviderServices in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • getFeatureType

      public final org.gvsig.fmap.dal.feature.FeatureType getFeatureType()
      Specified by:
      getFeatureType in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • getAttributeName

      public final String getAttributeName()
    • getDataType

      public final int getDataType()
      Specified by:
      getDataType in interface org.gvsig.fmap.dal.feature.FeatureIndex
    • fill

      public void fill() throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Specified by:
      fill in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • fill

      public void fill(boolean background, org.gvsig.tools.observer.Observer observer) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Specified by:
      fill in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • insert

      public final void insert(org.gvsig.fmap.dal.feature.FeatureSet data) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      insert in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • insert

      public final void insert(org.gvsig.fmap.dal.feature.Feature feat) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      insert in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • delete

      public final void delete(org.gvsig.fmap.dal.feature.FeatureSet data) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Specified by:
      delete in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • delete

      public final void delete(org.gvsig.fmap.dal.feature.Feature feat) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      delete in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getMatchFeatureSet

      public org.gvsig.fmap.dal.feature.FeatureSet getMatchFeatureSet(Object value) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Specified by:
      getMatchFeatureSet in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • getRangeFeatureSet

      public org.gvsig.fmap.dal.feature.FeatureSet getRangeFeatureSet(Object value1, Object value2) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Specified by:
      getRangeFeatureSet in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • getNearestFeatureSet

      public org.gvsig.fmap.dal.feature.FeatureSet getNearestFeatureSet(int count, Object value) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Specified by:
      getNearestFeatureSet in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • getNearestFeatureSet

      public org.gvsig.fmap.dal.feature.FeatureSet getNearestFeatureSet(int count, Object value, Object tolerance) throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
      Specified by:
      getNearestFeatureSet in interface org.gvsig.fmap.dal.feature.FeatureIndex
      Throws:
      org.gvsig.fmap.dal.feature.exception.FeatureIndexException
    • initialize

      public void initialize() throws org.gvsig.fmap.dal.exception.InitializeException
      Specified by:
      initialize in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
      Throws:
      org.gvsig.fmap.dal.exception.InitializeException
    • getAttributeNames

      public List getAttributeNames()
      Specified by:
      getAttributeNames in interface org.gvsig.fmap.dal.feature.FeatureIndex
    • getNewFileName

      public String getNewFileName(String prefix, String sufix)
      Specified by:
      getNewFileName in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • getFileName

      public String getFileName()
      Specified by:
      getFileName in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • getTemporaryFileName

      public String getTemporaryFileName()
      Specified by:
      getTemporaryFileName in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • getFeatureIndexProvider

      public org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider getFeatureIndexProvider()
    • isFilling

      public boolean isFilling()
      Specified by:
      isFilling in interface org.gvsig.fmap.dal.feature.FeatureIndex
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface org.gvsig.fmap.dal.feature.FeatureIndex
    • waitForIndex

      public void waitForIndex()
      Specified by:
      waitForIndex in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • setValid

      public void setValid(boolean valid)
      Specified by:
      setValid in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
    • doDispose

      protected void doDispose() throws org.gvsig.tools.exception.BaseException
      Specified by:
      doDispose in class org.gvsig.tools.dispose.impl.AbstractDisposable
      Throws:
      org.gvsig.tools.exception.BaseException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • notifyObservers

      public void notifyObservers(Object notification)
    • getName

      public String getName()
      Specified by:
      getName in interface org.gvsig.fmap.dal.feature.FeatureIndex
    • addObserver

      public void addObserver(org.gvsig.tools.observer.Observer observer)
      Specified by:
      addObserver in interface org.gvsig.tools.observer.Observable
    • deleteObserver

      public void deleteObserver(org.gvsig.tools.observer.Observer observer)
      Specified by:
      deleteObserver in interface org.gvsig.tools.observer.Observable
    • deleteObservers

      public void deleteObservers()
      Specified by:
      deleteObservers in interface org.gvsig.tools.observer.Observable