com.atlassian.bitbucket.idx.CommitIndex |
Index to store meta data against commits. This interface serves to decouple commit indexing from storing metadata in an index.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Associates the provided
Commit with the specified Repository . | |||||||||||
Stores a string commit property.
| |||||||||||
Retrieves all
indexed commits that have a given property with a specified value. | |||||||||||
Retrieves the specified commit if it's been indexed.
| |||||||||||
Retrieves a property map containing all properties stored against the given commit, matching
propertyKeys . | |||||||||||
Retrieves a properties for each of the specified commits, matching the provided
propertyKeys . | |||||||||||
Removes the association between the specified commit and repository in the index.
| |||||||||||
Removes a commit property.
| |||||||||||
Searches the index for any matching commits.
| |||||||||||
Search the index for any
commits matching the provided search request. |
Associates the provided Commit
with the specified Repository
.
commit | the commit |
---|---|
repository | the repository |
Stores a string commit property. If the property (name-value pair) already exists, calling this method will have no effect.
commitId | the commit ID |
---|---|
key | the property key |
value | the property value |
Retrieves all indexed commits
that have a given property with a specified value.
propertyKey | the property key |
---|---|
propertyValue | the property value |
caseSensitive | whether matches against value should be case-sensitive |
pageRequest | the page request |
IndexedCommit commits
that have the provided property. The results in the page
are ordered by authorTimestamp
descending
Retrieves the specified commit if it's been indexed.
commitId | the commit ID |
---|
IndexedCommit
, or null
if the specified commit has not been indexed
Retrieves a property map containing all properties stored against the given commit, matching
propertyKeys
. The value of all the properties is of type Set<String>
.
commitId | the commit id |
---|---|
propertyKeys | the property keys to retrieve |
commitId
, matching propertyKeys
. Can be empty, but not
null
.
Retrieves a properties for each of the specified commits, matching the provided propertyKeys
. The
value of all the properties is of type Set<String>
.
commitIds | commit IDs |
---|---|
propertyKeys | the property keys to retrieve for each commit |
commitIds
, matching propertyKeys
, mapped by commit IDs.
Can be empty, but not null
.
commitId | the commit ID |
---|---|
repository | the repository |
true if the provided commit was indexed in the specified repository
Removes the association between the specified commit and repository in the index. If the specified repository was the only association for the commit, it will be fully removed from the index. Otherwise, the commit may still appear in the index if it is available in other repositories.
commitId | the ID of the commit to remove from the index |
---|---|
repository | the repository to remove the commit's association for |
Removes a commit property.
commitId | the commit ID |
---|---|
key | the property key |
value | the property value |
Searches the index for any matching commits.
searchRequest | the criteria to match |
---|---|
pageRequest | a pageRequest to delimit the search |
IndexedCommit
s, possibly empty if no indexed commits match
Search the index for any commits
matching the provided search request. Only
commits in repositories that the current user has access to will be returned. The provided
filter
should be at least 7 characters long.
indexSearchRequest | the search request |
---|---|
pageRequest | the page request |
commits
that match the criteria and that are in repositories
the current user has access toIllegalArgumentException | if criteria.getFilter() is less than 7 characters |
---|