You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
It would be very useful if one could get results from an API: eg. Stock stock = YahooFinance.get("NVDA"); Then persist that to disk using SourcePersisterFactory as a Json, then parse the result as it comes back from the disk.
The text was updated successfully, but these errors were encountered:
Currently the file system impelentation needs a stream from network. As a result SourcePersisterFactory cannot work with an input of a scalar value like Stock. What you can do is write your own persister which can still use the FileSystem, within your read/write impelentation you can do the conversion from your data type to a BufferedSource. Use the SourcePersisterFactory as an example (there should be a test for it which shows how to create a bufferedsource from a string)
You're also free to create a new middleware for this and we will merge it in. ☺️
Alternatively you can use your own persister without our file system and write a persister implementation that can work with an input/output of Stock.
It would be very useful if one could get results from an API: eg. Stock stock = YahooFinance.get("NVDA"); Then persist that to disk using SourcePersisterFactory as a Json, then parse the result as it comes back from the disk.
The text was updated successfully, but these errors were encountered: