INNER CODE UNIT · Java

ratings

SeaseLtd/rated-ranking-evaluator · rre-core/src/main/java/io/sease/rre/core/Engine.java:480

    private Stream<JsonNode> ratings() {
        final File[] ratingsFiles =
                requireNonNull(
                        ratingsFolder.listFiles(ONLY_JSON_FILES),
                        "Unable to find the ratings folder.");

        LOGGER.info("RRE: found " + ratingsFiles.length + " ratings sets.");

        return stream(ratingsFiles).map(Func::toJson);
    }

    /**
     * Streams out all members of a given JSON node.
     *
     * @param source the parent JSON node.
     * @return a stream consisting of all children of the given JSON node.
     */
    private Stream<JsonNode> all(final JsonNode source, final String name) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…