Interface HeadSearcher
public interface HeadSearcher
-
Method Summary
Modifier and TypeMethodDescriptionGet allHead
s for a given search term.long
getSearchCount
(String searchTerm) Get the number of times a certain search term is used.
-
Method Details
-
getSearchCount
Get the number of times a certain search term is used.- Parameters:
searchTerm
- the search term- Returns:
- the number of times the search term is used
- Throws:
LockingException
- when the current thread is unable to obtain the lock for starting a transaction
-
getHead
- Parameters:
headOwner
- the head owner UUID- Returns:
- the optional head
- Throws:
LockingException
- when the current thread is unable to obtain the lock for starting a transaction
-
getHeads
Get allHead
s for a given search term. This method will also update the cached heads for the search term if necessary.- Parameters:
searchTerm
- the search term to use when searching for heads- Returns:
- a list of all heads that match the search term.
- Throws:
LockingException
- when the current thread is unable to obtain the lock for starting a transaction
-