public class JSIRSpatialIndexProvider extends AbstractFeatureIndexProvider
AbstractFeatureIndexProvider.LongList| Constructor and Description |
|---|
JSIRSpatialIndexProvider() |
| 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 |
match(Object min,
Object max) |
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
|
protected com.infomatiq.jsi.Rectangle |
toJsiRect(Envelope env) |
allowNulls, getFeatureIndexProviderServices, setFeatureIndexProviderServicespublic static final String NAME
public void initialize()
FeatureIndexProviderinitialize in interface FeatureIndexProviderinitialize in class AbstractFeatureIndexProviderpublic void insert(Object value, FeatureReferenceProviderServices fref)
FeatureIndexProviderpublic void delete(Object value, FeatureReferenceProviderServices fref)
FeatureIndexProviderpublic List match(Object value) throws FeatureIndexException
FeatureIndexProviderFeatureIndexException - TODOpublic List nearest(int count, Object value)
FeatureIndexProviderpublic boolean isMatchSupported()
FeatureIndexProviderpublic boolean isNearestSupported()
FeatureIndexProviderpublic boolean isNearestToleranceSupported()
FeatureIndexProviderpublic boolean isRangeSupported()
FeatureIndexProviderpublic List nearest(int count, Object value, Object tolerance) throws FeatureIndexException
FeatureIndexProviderFeatureIndexExceptionpublic List range(Object value1, Object value2) throws FeatureIndexException
FeatureIndexProviderFeatureIndexException - TODOprotected com.infomatiq.jsi.Rectangle toJsiRect(Envelope env)
public void clear()
throws DataException
FeatureIndexProviderDataException - if there is an error clearing the index