paypal / yurita

Anomaly detection framework @ PayPal
Apache License 2.0
107 stars 32 forks source link

Make Java-frendly APIs #50

Closed Glamdring closed 5 years ago

Glamdring commented 5 years ago

Currently the library works well for Scala. However, it's nearly impossible to make it work with Java due to some scala specifics. Conversion/compatability libraries are required and even they are not sufficient for some parts.

For example - in order to build a model, you need to pass function references. However, from Java you can't get Scala function references. So you get make a java method that just calls the scala one, and get the reference to the java method. But you have to convert it to scala function, because that's what is expected. And you try using the scala java8 compat toolkit, with the FromJavaFunction .. however, it is not serializable and does not have default constructor, which makes it impossible to use.

Ideally, there should be a Java-friendly API that does the needed "to-scala" conversions behind the scenes.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.