public class TimeseriesTableOptions extends Object implements Jsonizable
TTL: Abbreviation of TimeToLive. TableStore supports automatic data expiration, and TimeToLive refers to the data's survival time.
The server determines whether a specific version of each column has expired based on the current time, the version number of each column, and the TTL setting of the table. Data that has expired will be automatically cleaned up.| 构造器和说明 |
|---|
TimeseriesTableOptions()
Constructs a TableOptions object.
|
TimeseriesTableOptions(int timeToLive)
Constructs a TableOptions object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getTimeToLive()
Get the TTL time, in seconds.
|
boolean |
hasSetTimeToLive()
Query whether
setTimeToLive(int) has been called to set TTL. |
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
protected boolean |
jsonizeFields(StringBuilder sb,
boolean firstItem) |
void |
setTimeToLive(int timeToLive)
Set the TTL for table data, in seconds.
|
String |
toString()
Get the maximum number of versions.
|
public TimeseriesTableOptions()
public TimeseriesTableOptions(int timeToLive)
timeToLive - TTL timepublic int getTimeToLive()
IllegalStateException - if this parameter is not configuredpublic void setTimeToLive(int timeToLive)
timeToLive - TTL time, in secondspublic boolean hasSetTimeToLive()
setTimeToLive(int) has been called to set TTL.public String toString()
toString 在类中 ObjectIllegalStateException - if this parameter is not configuredpublic String jsonize()
jsonize 在接口中 Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize 在接口中 Jsonizableprotected boolean jsonizeFields(StringBuilder sb, boolean firstItem)
Copyright © 2025. All Rights Reserved.