Interface FeatureIndexProvider
- All Superinterfaces:
org.gvsig.fmap.dal.DataFactoryUnit
- All Known Implementing Classes:
AbstractFeatureIndexProvider
public interface FeatureIndexProvider
extends org.gvsig.fmap.dal.DataFactoryUnit
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclear()Removes all indexed data.voiddelete(Object value, FeatureReferenceProviderServices fref) Deletes a value from the index, given its referencevoidInitializes this providervoidinsert(Object value, FeatureReferenceProviderServices fref) Inserts a value into the indexbooleanReturns true if the provider supports the match functionbooleanReturns true if the provider supports the nearest functionbooleanReturns true if the provider supports the nearest with tolerance functionbooleanReturns true if the provider supports the range functionPerforms a search in the index and returns a list with all the values that match the given valuePerforms a search in the index and returns the list of up to n values which are nearest to the given value.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.Performs a search in the index and returns a list with the values that intersect with the given intervalvoidSets the IndexProviderServices that will provide application services to this index provider
-
Method Details
-
setFeatureIndexProviderServices
Sets the IndexProviderServices that will provide application services to this index provider -
initialize
void initialize() throws org.gvsig.fmap.dal.exception.InitializeExceptionInitializes this provider- Throws:
org.gvsig.fmap.dal.exception.InitializeException
-
insert
Inserts a value into the index -
delete
Deletes a value from the index, given its reference -
match
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.DataExceptionRemoves all indexed data.- Throws:
org.gvsig.fmap.dal.exception.DataException- if there is an error clearing the index
-