public interface FeatureIndexProvider extends DataFactoryUnit
Modifier and Type | Method and Description |
---|---|
boolean |
allowNulls() |
void |
clear()
Removes all indexed data.
|
void |
delete(Object value,
FeatureReferenceProviderServices fref)
Deletes a value from the index, given its reference
|
void |
initialize()
Initializes this provider
|
void |
insert(Object value,
FeatureReferenceProviderServices fref)
Inserts a value into the index
|
boolean |
isMatchSupported()
Returns true if the provider supports the match function
|
boolean |
isNearestSupported()
Returns true if the provider supports the nearest function
|
boolean |
isNearestToleranceSupported()
Returns true if the provider supports the nearest with tolerance function
|
boolean |
isRangeSupported()
Returns true if the provider supports the range function
|
List |
match(Object value)
Performs a search in the index and returns a list with all the values that match the given value
|
List |
nearest(int count,
Object value)
Performs a search in the index and returns the list of up to n values which are nearest to the given value.
|
List |
nearest(int count,
Object value,
Object tolerance)
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.
|
List |
range(Object value1,
Object value2)
Performs a search in the index and returns a list with the values that intersect with the given interval
|
void |
setFeatureIndexProviderServices(FeatureIndexProviderServices services)
Sets the IndexProviderServices that will provide application services to this index provider
|
void setFeatureIndexProviderServices(FeatureIndexProviderServices services)
void initialize() throws InitializeException
InitializeException
void insert(Object value, FeatureReferenceProviderServices fref)
void delete(Object value, FeatureReferenceProviderServices fref)
List match(Object value) throws FeatureIndexException
FeatureIndexException
- TODOList range(Object value1, Object value2) throws FeatureIndexException
FeatureIndexException
- TODOList nearest(int count, Object value) throws FeatureIndexException
FeatureIndexException
List nearest(int count, Object value, Object tolerance) throws FeatureIndexException
FeatureIndexException
boolean isMatchSupported()
boolean isRangeSupported()
boolean isNearestSupported()
boolean isNearestToleranceSupported()
boolean allowNulls()
void clear() throws DataException
DataException
- if there is an error clearing the index