Uses of Class
org.springframework.data.mongodb.core.CollectionOptions.TimeSeriesOptions
Packages that use CollectionOptions.TimeSeriesOptions
-
Uses of CollectionOptions.TimeSeriesOptions in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core that return CollectionOptions.TimeSeriesOptionsModifier and TypeMethodDescriptionCollectionOptions.TimeSeriesOptions.expireAfter
(Duration ttl) Set theDuration
for automatic removal of documents older than a specified value.CollectionOptions.TimeSeriesOptions.granularity
(GranularityDefinition granularity) Select theGranularityDefinition
parameter to define how data in the time series collection is organized.Set the name of the field which contains metadata in each time series document.CollectionOptions.TimeSeriesOptions.timeSeries
(String timeField) Create a new instance ofCollectionOptions.TimeSeriesOptions
using the given field as its timeField.Methods in org.springframework.data.mongodb.core that return types with arguments of type CollectionOptions.TimeSeriesOptionsModifier and TypeMethodDescriptionCollectionOptions.getTimeSeriesOptions()
Get theCollectionOptions.TimeSeriesOptions
if available.Methods in org.springframework.data.mongodb.core with parameters of type CollectionOptions.TimeSeriesOptionsModifier and TypeMethodDescriptionCollectionOptions.timeSeries
(CollectionOptions.TimeSeriesOptions timeSeriesOptions) Create newCollectionOptions
with the givenCollectionOptions.TimeSeriesOptions
.Method parameters in org.springframework.data.mongodb.core with type arguments of type CollectionOptions.TimeSeriesOptionsModifier and TypeMethodDescriptionstatic CollectionOptions
CollectionOptions.timeSeries
(String timeField, Function<CollectionOptions.TimeSeriesOptions, CollectionOptions.TimeSeriesOptions> options) Set upCollectionOptions
for a Time Series collection.static CollectionOptions
CollectionOptions.timeSeries
(String timeField, Function<CollectionOptions.TimeSeriesOptions, CollectionOptions.TimeSeriesOptions> options) Set upCollectionOptions
for a Time Series collection.