Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for creating time series collection. #3731

Closed
christophstrobl opened this issue Jul 14, 2021 · 0 comments
Closed

Add support for creating time series collection. #3731

christophstrobl opened this issue Jul 14, 2021 · 0 comments

Comments

@christophstrobl
Copy link
Member

Available since MongoDB 5.0.

@Document
public @interface TimeSeries {

    @AliasFor(annotation = Document.class, attribute = "collection")
    String collection() default "";

    String timeField();

    // ...
}
@christophstrobl christophstrobl added the type: enhancement A general enhancement label Jul 14, 2021
@christophstrobl christophstrobl linked a pull request Jul 15, 2021 that will close this issue
@mp911de mp911de added this to the 3.3 M1 (2021.1.0) milestone Jul 16, 2021
mp911de added a commit that referenced this issue Jul 16, 2021
Rename Granularities/Granularity to Granularity and GranularityDefinition to proivide a more natural wording towards using predefined granularities.

Validate presence of referenced properties through the TimeSeries annotation.

Tweak Javadoc, reformat code, add unit tests.

See #3731
Original pull request: #3732.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants