Class LinkIndexQueryResult

java.lang.Object
com.sodius.oslc.core.process.links.model.LinkIndexQueryResult

public class LinkIndexQueryResult extends Object
The result of a link index query.
Since:
3.14.0
  • Constructor Details

    • LinkIndexQueryResult

      public LinkIndexQueryResult(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.
      Parameters:
      linkIndexQuery - the link query
      links - 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 query
      links - the links that were discovered by the query
      cacheKeyProvider - determines the cache key to use given a target URL of the link query
      Since:
      4.0.0
  • Method Details

    • getLinks

      public List<DirectedLink> getLinks()
      Gets the list of discovered links. They might have been enhanced by an internal cache.
      Returns:
      a list of links.
      See Also:
    • getLinkIndexQuery

      public LinkIndexQuery getLinkIndexQuery()
      Gets the LinkIndexQuery that 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:
      true if modified by an internal cache. false otherwise.