public class GeometryIndexProvider extends AbstractFeatureIndexProvider
AbstractFeatureIndexProvider.LongList
Constructor and Description |
---|
GeometryIndexProvider() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all indexed data.
|
void |
delete(Object value,
FeatureReferenceProviderServices fref)
Deletes a value from the index, given its reference
|
protected Envelope |
getEnvelope(Object value) |
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
|
allowNulls, getFeatureIndexProviderServices, setFeatureIndexProviderServices
public void initialize()
FeatureIndexProvider
initialize
in interface FeatureIndexProvider
initialize
in class AbstractFeatureIndexProvider
public void insert(Object value, FeatureReferenceProviderServices fref)
FeatureIndexProvider
public void delete(Object value, FeatureReferenceProviderServices fref)
FeatureIndexProvider
public List match(Object value) throws FeatureIndexException
FeatureIndexProvider
FeatureIndexException
- TODOpublic List nearest(int count, Object value)
FeatureIndexProvider
public boolean isMatchSupported()
FeatureIndexProvider
public boolean isNearestSupported()
FeatureIndexProvider
public boolean isNearestToleranceSupported()
FeatureIndexProvider
public boolean isRangeSupported()
FeatureIndexProvider
public List nearest(int count, Object value, Object tolerance) throws FeatureIndexException
FeatureIndexProvider
FeatureIndexException
public List range(Object value1, Object value2) throws FeatureIndexException
FeatureIndexProvider
FeatureIndexException
- TODOpublic void clear() throws DataException
FeatureIndexProvider
DataException
- if there is an error clearing the index