Class LinkIndexQueryResult
java.lang.Object
com.sodius.oslc.core.process.links.model.LinkIndexQueryResult
The result of a link index query.
- Since:
- 3.14.0
-
Constructor Summary
ConstructorsConstructorDescriptionLinkIndexQueryResult(LinkIndexQuery linkIndexQuery, List<DirectedLink> links) Creates a query result instance, that uses the global configuration of the query when completing the links discovery with the internal cache.LinkIndexQueryResult(LinkIndexQuery linkIndexQuery, List<DirectedLink> links, UnaryOperator<URI> cacheKeyProvider) Creates a query result instance, with a key provider that controls the access to the internal cache when completing the links discovery. -
Method Summary
Modifier and TypeMethodDescriptionGets theLinkIndexQuerythat allowed the links discovery.getLinks()Gets the list of discovered links.booleanDetermines whether an internal cache has enhanced the list of discovered links.
-
Constructor Details
-
LinkIndexQueryResult
Creates a query result instance, that uses the global configuration of the query when completing the links discovery with the internal cache.- Parameters:
linkIndexQuery- the link querylinks- the links that were discovered by the query
-
LinkIndexQueryResult
public LinkIndexQueryResult(LinkIndexQuery linkIndexQuery, List<DirectedLink> links, UnaryOperator<URI> cacheKeyProvider) Creates a query result instance, with a key provider that controls the access to the internal cache when completing the links discovery.- Parameters:
linkIndexQuery- the link querylinks- the links that were discovered by the querycacheKeyProvider- determines the cache key to use given a target URL of the link query- Since:
- 4.0.0
-
-
Method Details
-
getLinks
Gets the list of discovered links. They might have been enhanced by an internal cache.- Returns:
- a list of links.
- See Also:
-
getLinkIndexQuery
Gets theLinkIndexQuerythat allowed the links discovery.- Returns:
- a link index query.
-
isEnhancedByCache
public boolean isEnhancedByCache()Determines whether an internal cache has enhanced the list of discovered links.- Returns:
trueif modified by an internal cache.falseotherwise.
-