Interface PathSearch<P>

Type Parameters:
P -
All Known Implementing Classes:
PathSearchBase, PathSearchSparqlBase

public interface PathSearch<P>
A PathSearch represents a search of paths under given parameters. This interface provides methods to limit the number of results and their lengths. Implementations may e.g. forward these parameters to the backing core algorithm - or they may simply post-process a stream of paths by these conditions.
Author:
Claus Stadler, Nov 11, 2018
  • Method Details

    • setMaxPathLength

      default PathSearch<P> setMaxPathLength(Integer maxLength)
    • setMaxLength

      PathSearch<P> setMaxLength(Long maxLength)
    • getMaxLength

      Long getMaxLength()
    • setMaxInternalResultsHint

      default PathSearch<P> setMaxInternalResultsHint(Integer maxResults)
    • setMaxInternalResultsHint

      PathSearch<P> setMaxInternalResultsHint(Long maxResults)
      Hint to the backing path finding algorithm about how many candidate paths to generate. The hint may be ignored.
      Parameters:
      maxResults -
      Returns:
    • getMaxInternalResultsHint

      Long getMaxInternalResultsHint()
    • shuffle

      default PathSearch<P> shuffle(Random random)
    • filter

      default PathSearch<P> filter(Predicate<? super P> predicate)
    • transformInternal

      PathSearch<P> transformInternal(Function<io.reactivex.rxjava3.core.Flowable<P>,io.reactivex.rxjava3.core.Flowable<P>> filter)
    • exec

      io.reactivex.rxjava3.core.Flowable<P> exec()