public interface FeatureIndexProviderServices extends FeatureIndex, Observable, Disposable
FeatureStoreNotification.INDEX_FILLING_SUCCESS
notification, with the index object if it has finished
successfully, or a FeatureStoreNotification.INDEX_FILLING_ERROR
notification with the exception object if there has been
any error in the process.Modifier and Type | Method and Description |
---|---|
void |
fill()
Fills this index with the store's data.
|
void |
fill(boolean background,
Observer observer)
Fills this index with the store's data.
|
FeatureAttributeDescriptor |
getFeatureAttributeDescriptor()
Column to which belongs this index
|
FeatureStoreProviderServices |
getFeatureStoreProviderServices()
FeatureStore to which belongs this index
|
FeatureType |
getFeatureType()
FeatureType to which belongs this index
|
java.lang.String |
getFileName()
Returns the absolute path (directory + filename) where this index is or
will be stored
|
java.lang.String |
getNewFileName(java.lang.String prefix,
java.lang.String sufix)
Calculates and returns a new filename for an index, using the given
prefix and suffix
|
java.lang.String |
getTemporaryFileName()
Returns a temporary absolute path (directory + filename) according to the
system environment
|
void |
initialize()
Initializes this provider
|
void |
setValid(boolean valid)
Sets the index as valid or invalid, so it may be used or not.
|
void |
waitForIndex()
If the index is in the process of being filled by a background task,
synchronize this method or add some mechanism for external callers to
block on it.
|
delete, delete, getAttributeNames, getDataType, getMatchFeatureSet, getName, getNearestFeatureSet, getNearestFeatureSet, getRangeFeatureSet, insert, insert, isFilling, isValid
addObserver, deleteObserver, deleteObservers
dispose
void initialize() throws InitializeException
InitializeException
FeatureAttributeDescriptor getFeatureAttributeDescriptor()
FeatureType getFeatureType()
FeatureStoreProviderServices getFeatureStoreProviderServices()
java.lang.String getFileName()
java.lang.String getTemporaryFileName()
java.lang.String getNewFileName(java.lang.String prefix, java.lang.String sufix)
void fill() throws FeatureIndexException
FeatureIndexException
- if there is an error while filling the indexvoid fill(boolean background, Observer observer) throws FeatureIndexException
background
- if the filling must be performed in backgroundobserver
- optional observer to be notified when the
fill index operation finishesFeatureIndexException
- if there is an error while filling the indexFeatureStoreNotification.INDEX_FILLING_STARTED
,
FeatureStoreNotification.INDEX_FILLING_SUCCESS
,
FeatureStoreNotification.INDEX_FILLING_CANCELLED
,
FeatureStoreNotification.INDEX_FILLING_ERROR
void setValid(boolean valid)
valid
- status to set the index tovoid waitForIndex()