| com.atlassian.stash.idx.ChangesetIndexer |
This interface is deprecated.
in 3.7 for removal in 5.0. All things "changeset" are being renamed to "commit", the more common term
for the data they represent. Due to the significant number of touchpoints, the deprecated classes and
interfaces will be left in for an entire major release cycle, rather than being removed in 4.0.
Indexers should implement CommitIndexer instead.
Indexer that is called for any changeset indexing operation.
Any ChangesetIndexer implementations must be threadsafe because the same instance can be used for multiple
parallel indexing operations. Any state that needs to be stored during an indexing run should be stored in the
provided IndexingContext
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Callback that is called after the last changeset has been processed.
| |||||||||||
Callback that is called at the beginning of an indexing run.
| |||||||||||
Important: This method will only be called once for a changeset during an indexing run, but
may be called multiple times for the same changeset across different indexing run.
| |||||||||||
Important: This method will only be called once for a changeset during an indexing run, but
may be called multiple times for the same changeset across different indexing run.
| |||||||||||
| repository | the repository |
|---|
repository
Callback that is called after the last changeset has been processed. Any cleanup / teardown that needs to be done can be done at this point.
| context | the indexing context |
|---|
Callback that is called at the beginning of an indexing run. ChangesetIndexers must be
threadsafe, because they can be called in parallel for different repositories. If the indexer
requires any kind of state during the indexing of a repository, it store that state in context.
Note that the context is shared between all ChangesetIndexer instances that are enabled
for the repository.
| context | the indexing context |
|---|
Important: This method will only be called once for a changeset during an indexing run, but may be called multiple times for the same changeset across different indexing run. The reason for this is that when multiple changeset indexers are enabled. All changesets that have been added since the last time any ChangesetIndexer ran will be returned to all ChangesetIndexers.
| changeset | the changeset |
|---|---|
| ctx | the indexing context |
Important: This method will only be called once for a changeset during an indexing run, but may be called multiple times for the same changeset across different indexing run. The reason for this is that when multiple changeset indexers are enabled. All changesets that have been removed since the last time any ChangesetIndexer ran will be returned to all ChangesetIndexers.
| changeset | the changeset |
|---|---|
| ctx | the indexing context |