@Deprecated
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Version
Indexer
implementation. Index data will be invalidated if the version changes. The version can be any string. It is not required to be numerical or match any specific pattern. Version strings are only tested for string equality. Unequal strings cause invalidation of index data.
The version should change whenever the data stored by the Indexer
implementation changes in any significant way, such that the index data must be rebuilt. It should also change if the Indexer
implementation is registered for a different set of Node
types.
If an Indexer
implementation does not have this annotation, it can later be added. The absense of a version annotation is considered unequal to any version string. So addition of the annotation will invalidate the index data. It is recommended that for any implementation which does not already have this annotation, the owner wait until there is a change which requires invalidation of the index data before adding the annotation. That will avoid unnecessarily invalidating existing index data.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
Deprecated.
|