public static class CollectionOptions.TimeSeriesOptions extends Object
| Modifier and Type | Method and Description |
|---|---|
GranularityDefinition |
getGranularity() |
String |
getMetaField() |
String |
getTimeField() |
CollectionOptions.TimeSeriesOptions |
granularity(GranularityDefinition granularity)
Select the
GranularityDefinition parameter to define how data in the time series collection is organized. |
CollectionOptions.TimeSeriesOptions |
metaField(String metaField)
Set the name of the field which contains metadata in each time series document.
|
static CollectionOptions.TimeSeriesOptions |
timeSeries(String timeField)
Create a new instance of
CollectionOptions.TimeSeriesOptions using the given field as its timeField. |
public static CollectionOptions.TimeSeriesOptions timeSeries(String timeField)
CollectionOptions.TimeSeriesOptions using the given field as its timeField. The one,
that contains the date in each time series document. Annotated fieldnames will be considered during the mapping process.timeField - must not be null.CollectionOptions.TimeSeriesOptions.public CollectionOptions.TimeSeriesOptions metaField(String metaField)
timeSeries(String) timeField} nor point to an array or
Collection. Annotated fieldnames will be considered during the mapping process.metaField - must not be null.CollectionOptions.TimeSeriesOptions.public CollectionOptions.TimeSeriesOptions granularity(GranularityDefinition granularity)
GranularityDefinition parameter to define how data in the time series collection is organized.
Select one that is closest to the time span between incoming measurements.CollectionOptions.TimeSeriesOptions.Granularitypublic String getTimeField()
@Nullable public String getMetaField()
String as well, so maybe check via
StringUtils.hasText(String).public GranularityDefinition getGranularity()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.