Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TIME_FIELD
The default time field value for timeseries collections.
|
Constructor and Description |
---|
TimeSeriesOptions() |
TimeSeriesOptions(JsonObject json) |
TimeSeriesOptions(TimeSeriesOptions options)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TimeSeriesGranularity |
getGranularity() |
String |
getMetaField() |
String |
getTimeField() |
int |
hashCode() |
TimeSeriesOptions |
setGranularity(TimeSeriesGranularity granularity) |
TimeSeriesOptions |
setMetaField(String metaField) |
TimeSeriesOptions |
setTimeField(String timeField) |
JsonObject |
toJson() |
com.mongodb.client.model.TimeSeriesOptions |
toMongoDriverObject() |
String |
toString() |
public static final String DEFAULT_TIME_FIELD
public TimeSeriesOptions()
public TimeSeriesOptions(TimeSeriesOptions options)
public TimeSeriesOptions(JsonObject json)
public JsonObject toJson()
public com.mongodb.client.model.TimeSeriesOptions toMongoDriverObject()
public String getTimeField()
public TimeSeriesOptions setTimeField(String timeField)
timeField
- the timeField to setpublic String getMetaField()
public TimeSeriesOptions setMetaField(String metaField)
metaField
- the metaField to setpublic TimeSeriesGranularity getGranularity()
public TimeSeriesOptions setGranularity(TimeSeriesGranularity granularity)
granularity
- the granularity to setCopyright © 2023 Eclipse. All rights reserved.