/// @param degreeOfParallelism number of threads to use for the computation /// @param maxDurationInHours maximum duration of the computation /// @param writer {@link SimilarItemsWriter} used to persist the results /// @return the number of similarities precomputed /// @throws IOException /// @throws RuntimeException if the computation takes longer than maxDurationInHours public abstract int computeItemSimilarities(int degreeOfParallelism, int maxDurationInHours, ISimilarItemsWriter writer);
/// @param degreeOfParallelism number of threads to use for the computation /// @param maxDurationInHours maximum duration of the computation /// @param writer {@link SimilarItemsWriter} used to persist the results /// @return the number of similarities precomputed /// @throws IOException /// @throws RuntimeException if the computation takes longer than maxDurationInHours public abstract int computeItemSimilarities(int degreeOfParallelism, int maxDurationInHours, ISimilarItemsWriter writer) ;