com.atlan.samples.events.NumaflowScorer Maven / Gradle / Ivy
// 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();
}
}