All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlan.samples.events.NumaflowScorer Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
// Generated by delombok at Thu Sep 07 11:44:18 UTC 2023
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.samples.events;

import io.numaproj.numaflow.function.FunctionServer;

/**
 * An example to calculate a Data as a Product (DaaP) completeness score based on
 * the level of enrichment of an asset.
 */
public class NumaflowScorer extends AbstractNumaflowHandler {
    @java.lang.SuppressWarnings("all")
    private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(NumaflowScorer.class);

    /**
     * Default constructor - pass handler up to superclass.
     */
    public NumaflowScorer() {
        super(DaapScoreCalculator.getInstance());
    }

    /**
     * Register the event processing function.
     *
     * @param args (unused)
     * @throws Exception on any errors starting the event processor
     */
    public static void main(String[] args) throws Exception {
        new FunctionServer().registerMapHandler(new NumaflowScorer()).start();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy