Package org.gvsig.fmap.dal.feature.impl
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 Summary
ConstructorsConstructorDescriptionDefaultFeatureIndex(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 Summary
Modifier and TypeMethodDescriptionvoidaddObserver(org.gvsig.tools.observer.Observer observer) final voiddelete(org.gvsig.fmap.dal.feature.Feature feat) final voiddelete(org.gvsig.fmap.dal.feature.FeatureSet data) voiddeleteObserver(org.gvsig.tools.observer.Observer observer) voidprotected voidvoidfill()voidfill(boolean background, org.gvsig.tools.observer.Observer observer) final Stringfinal intfinal org.gvsig.fmap.dal.feature.FeatureAttributeDescriptororg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderfinal org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServicesfinal org.gvsig.fmap.dal.feature.FeatureTypeorg.gvsig.fmap.dal.feature.FeatureSetgetMatchFeatureSet(Object value) getName()org.gvsig.fmap.dal.feature.FeatureSetgetNearestFeatureSet(int count, Object value) org.gvsig.fmap.dal.feature.FeatureSetgetNearestFeatureSet(int count, Object value, Object tolerance) getNewFileName(String prefix, String sufix) org.gvsig.fmap.dal.feature.FeatureSetgetRangeFeatureSet(Object value1, Object value2) voidfinal voidinsert(org.gvsig.fmap.dal.feature.Feature feat) final voidinsert(org.gvsig.fmap.dal.feature.FeatureSet data) booleanbooleanisValid()voidnotifyObservers(Object notification) voidsetValid(boolean valid) toString()voidMethods inherited from class org.gvsig.tools.dispose.impl.AbstractDisposable
dispose, disposeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.tools.dispose.Disposable
dispose
-
Constructor Details
-
DefaultFeatureIndex
-
-
Method Details
-
getFeatureAttributeDescriptor
public final org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor getFeatureAttributeDescriptor()- Specified by:
getFeatureAttributeDescriptorin interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
getFeatureStoreProviderServices
public final org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServices getFeatureStoreProviderServices()- Specified by:
getFeatureStoreProviderServicesin interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
getFeatureType
public final org.gvsig.fmap.dal.feature.FeatureType getFeatureType()- Specified by:
getFeatureTypein interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
getAttributeName
-
getDataType
public final int getDataType()- Specified by:
getDataTypein interfaceorg.gvsig.fmap.dal.feature.FeatureIndex
-
fill
public void fill() throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException- Specified by:
fillin interfaceorg.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:
fillin interfaceorg.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:
insertin interfaceorg.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:
insertin interfaceorg.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:
deletein interfaceorg.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:
deletein interfaceorg.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:
getMatchFeatureSetin interfaceorg.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:
getRangeFeatureSetin interfaceorg.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:
getNearestFeatureSetin interfaceorg.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:
getNearestFeatureSetin interfaceorg.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:
initializein interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices- Throws:
org.gvsig.fmap.dal.exception.InitializeException
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceorg.gvsig.fmap.dal.feature.FeatureIndex
-
getNewFileName
- Specified by:
getNewFileNamein interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
getFileName
- Specified by:
getFileNamein interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
getTemporaryFileName
- Specified by:
getTemporaryFileNamein interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
getFeatureIndexProvider
public org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider getFeatureIndexProvider() -
isFilling
public boolean isFilling()- Specified by:
isFillingin interfaceorg.gvsig.fmap.dal.feature.FeatureIndex
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.gvsig.fmap.dal.feature.FeatureIndex
-
waitForIndex
public void waitForIndex()- Specified by:
waitForIndexin interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
setValid
public void setValid(boolean valid) - Specified by:
setValidin interfaceorg.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices
-
doDispose
protected void doDispose() throws org.gvsig.tools.exception.BaseException- Specified by:
doDisposein classorg.gvsig.tools.dispose.impl.AbstractDisposable- Throws:
org.gvsig.tools.exception.BaseException
-
toString
-
notifyObservers
-
getName
- Specified by:
getNamein interfaceorg.gvsig.fmap.dal.feature.FeatureIndex
-
addObserver
public void addObserver(org.gvsig.tools.observer.Observer observer) - Specified by:
addObserverin interfaceorg.gvsig.tools.observer.Observable
-
deleteObserver
public void deleteObserver(org.gvsig.tools.observer.Observer observer) - Specified by:
deleteObserverin interfaceorg.gvsig.tools.observer.Observable
-
deleteObservers
public void deleteObservers()- Specified by:
deleteObserversin interfaceorg.gvsig.tools.observer.Observable
-