TimeSeriesDataStore is a Java API to store and iterate over time-series data retrieved from a data feed and stored in a database. Data from a data feed is fetched if data within a requested time range is not in a database. This data is then stored in a database for future requests. Data from a database is fetched if data within a requested time range is in a database, thus serving data much quicker than the data feed.
If you are using Gradle as your build tool, add the following dependency to your build.gradle
file:
dependencies {
implementation group: 'net.jacobpeterson', name: 'timeseriesdatastore', version: '1.0'
}
If you are using Maven as your build tool, add the following dependency to your pom.xml
file:
<dependency>
<groupId>net.jacobpeterson</groupId>
<artifactId>timeseriesdatastore</artifactId>
<version>1.0</version>
</dependency>
For logging, this library uses SLF4j which serves as an interface for various logging frameworks. This enables you to use whatever logging framework you would like. However, if you do not add a logging framework as a dependency in your project, the console will output a message stating that SLF4j is defaulting to a no-operation (NOP) logger implementation. To enable logging, add a logging framework of your choice as a dependency to your project such as Log4j 2, SLF4j-simple, or Apache Commons Logging.
Contributions are welcome!
If you are creating a Pull Request, be sure to create a new branch in your forked repository for your feature or bug fix instead of committing directly to the main
branch in your fork.