Uses of Class
org.springframework.data.mongodb.core.CollectionOptions.TimeSeriesOptions
Packages that use CollectionOptions.TimeSeriesOptions
Package
Description
MongoDB core support.
Support for the MongoDB aggregation framework.
-
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 theDurationfor automatic removal of documents older than a specified value.CollectionOptions.TimeSeriesOptions.granularity(GranularityDefinition granularity) Select theGranularityDefinitionparameter 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.Select the time between timestamps in the same bucket to define how data in the time series collection is organized.CollectionOptions.TimeSeriesOptions.timeSeries(String timeField) Create a new instance ofCollectionOptions.TimeSeriesOptionsusing 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.TimeSeriesOptionsif available.Methods in org.springframework.data.mongodb.core with parameters of type CollectionOptions.TimeSeriesOptionsModifier and TypeMethodDescriptionCollectionOptions.timeSeries(CollectionOptions.TimeSeriesOptions timeSeriesOptions) Create newCollectionOptionswith the givenCollectionOptions.TimeSeriesOptions.Method parameters in org.springframework.data.mongodb.core with type arguments of type CollectionOptions.TimeSeriesOptionsModifier and TypeMethodDescriptionstatic CollectionOptionsCollectionOptions.timeSeries(String timeField, Function<CollectionOptions.TimeSeriesOptions, CollectionOptions.TimeSeriesOptions> options) Set upCollectionOptionsfor a Time Series collection.static CollectionOptionsCollectionOptions.timeSeries(String timeField, Function<CollectionOptions.TimeSeriesOptions, CollectionOptions.TimeSeriesOptions> options) Set upCollectionOptionsfor a Time Series collection. -
Uses of CollectionOptions.TimeSeriesOptions in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation with parameters of type CollectionOptions.TimeSeriesOptionsModifier and TypeMethodDescriptionstatic OutOperationAggregation.out(String outCollectionName, CollectionOptions.TimeSeriesOptions timeSeriesOptions) Creates a newOutOperationfor time series collections using the given collection name and time series options.OutOperation.timeSeries(CollectionOptions.TimeSeriesOptions timeSeriesOptions) Set the time series options for creating a time series collection.