public interface IndexingContext
CommitIndexer
s to store state during the indexing process. A new context will be used for each
indexing run, but for each run the same context will be shared by all enabled indexers.Modifier and Type | Method and Description |
---|---|
<T> T |
get(String key)
Retrieve an object from the context.
|
com.atlassian.bitbucket.repository.Repository |
getRepository() |
Object |
put(String key,
Object value)
Sets a key-value pair in the context.
|
Object |
remove(String key)
Removes a key-value pair from the context.
|
@Nullable <T> T get(@Nullable String key)
T
- the type of object expected at the specified keykey
- the key to lookupnull
if not present in the context@Nonnull com.atlassian.bitbucket.repository.Repository getRepository()
@Nullable Object put(@Nullable String key, @Nullable Object value)
indexers
for a given repository.key
- the key to store the value under, which should be uniquevalue
- the value to storenull
if the key is newCopyright © 2020 Atlassian. All rights reserved.