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 Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<P>exec()default PathSearch<P>default PathSearch<P>setMaxInternalResultsHint(Integer maxResults) setMaxInternalResultsHint(Long maxResults) Hint to the backing path finding algorithm about how many candidate paths to generate.setMaxLength(Long maxLength) default PathSearch<P>setMaxPathLength(Integer maxLength) default PathSearch<P>transformInternal(Function<io.reactivex.rxjava3.core.Flowable<P>, io.reactivex.rxjava3.core.Flowable<P>> filter)
-
Method Details
-
setMaxPathLength
-
setMaxLength
-
getMaxLength
Long getMaxLength() -
setMaxInternalResultsHint
-
setMaxInternalResultsHint
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
-
filter
-
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()
-