metron-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METRON-396) Make Stellar function resolution happen via an annotation and classpath search
Date Tue, 06 Sep 2016 16:06:20 GMT

    [ https://issues.apache.org/jira/browse/METRON-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15467774#comment-15467774
] 

ASF GitHub Bot commented on METRON-396:
---------------------------------------

Github user nickwallen commented on the issue:

    https://github.com/apache/incubator-metron/pull/233
  
    Due to the static initialization and use of a singleton for the function resolver, this
was a bit difficult to trace.  We should think about making this easier to grok as a follow-on
to this PR.  This would be painful for a new user creating their own functions.  I don't personally
have a solution right now, but need to noodle on it.


> Make Stellar function resolution happen via an annotation and classpath search
> ------------------------------------------------------------------------------
>
>                 Key: METRON-396
>                 URL: https://issues.apache.org/jira/browse/METRON-396
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Casey Stella
>            Assignee: Casey Stella
>              Labels: stellar
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> At the moment, the only way to add a stellar function is to implement StellarFunction
and add the instance to the StellarFunctions enum.  This is deficient in a few ways:
> * It requires you to modify Metron code to add a stellar capability
> * It requires you to make metron-common depend on your project
> * There is no way to enforce documentation of the function
> Instead, we should create an annotation which will define the name, namespace, description,
parameters and returns.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message