Find Jobs
Hire Freelancers

scala super small assignment (5 hours estimate)

€8-30 EUR

Törölve
Kiadva ekkor: körülbelül 6 évvel ezelőtt

€8-30 EUR

Teljesítéskor fizetve
Aggregate Service Aggregate service is a simple REST service implemented with Spray which provides sum, mean and max functionality for different numeric types. The service accepts only POST requests with a JSON payload as follows: Request: json { "function": "sum", "values": "12.0, 13.00, 23.42", "valueType": "double" } Response: json { "result": "48.42" } How to run the server: sbt run => Starts the server at localhost:9090 How to change the default host or port: This can be done by changing the default values for the host and port in the [login to view URL] file. Assignment In the given sbt project the code responsible to start the server, receive messages and send the response back, together with marshalling and unmarshalling of messages is written in Scala and located in the [login to view URL] package. The basic implementation of aggregate functions is written in Java and located at [login to view URL] package. At the moment only the sum function is implemented. We would like you to: Convert all Java code to Scala. Implement the remaining aggregate functions for the given types. Add support for BigDecimal type. Add the tests you see fit to show the functionality works as intended, also in Scala, for all aggregate functionality. We encourage you to make changes to the aggregate functionality to improve the quality/readability of the code. We don't expect you to make changes in the server code (except for adding support for the BigDecimal type in the doAggregate function of [login to view URL]), but feel free to do so if necessary or when you see room for improvement.
Projektazonosító: 16750010

A projektről

Távolról teljesíthető projekt
Aktiválva: 6 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra

Az ügyfélről

FINLAND zászlója
Stockholm, Finland
0,0
0
Tagság kezdete: máj. 29, 2014

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.