public class TableTtl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TableTtl.TtlMode |
static class |
TableTtl.TtlUnit |
| Constructor and Description |
|---|
TableTtl()
Deprecated.
|
TableTtl(TableTtl.TtlMode ttlMode,
String dateTimeColumn,
Integer expireAfterSeconds)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static TableTtl |
dateTimeColumn(String columnName,
int expireAfterSeconds)
The row will be considered as expired at the moment of time, when the value stored in columnName is less
than or equal to the current time (in epoch time format), and expireAfterSeconds has passed since that
moment; i.e.
|
String |
getDateTimeColumn() |
Integer |
getExpireAfterSeconds() |
Integer |
getRunIntervaelSeconds() |
TableTtl.TtlMode |
getTtlMode() |
TableTtl.TtlUnit |
getTtlUnit() |
static TableTtl |
notSet()
Construct an empty TTL configuration
|
static TableTtl |
valueSinceUnixEpoch(String columnName,
TableTtl.TtlUnit unit,
int expireAfterSeconds)
The row will be considered as expired at the moment of time, when the value stored in columnName is less
than or equal to the current time (in epoch time format), and expireAfterSeconds has passed since that
moment; i.e.
|
TableTtl |
withRunIntervalSeconds(int seconds) |
@Deprecated public TableTtl(@Nonnull TableTtl.TtlMode ttlMode, @Nonnull String dateTimeColumn, @Nonnull Integer expireAfterSeconds)
@Deprecated public TableTtl()
@Nonnull public TableTtl.TtlMode getTtlMode()
@Nonnull public TableTtl.TtlUnit getTtlUnit()
public TableTtl withRunIntervalSeconds(int seconds)
public static TableTtl notSet()
public static TableTtl dateTimeColumn(@Nonnull String columnName, int expireAfterSeconds)
columnName - name of column with type Date, Datetime or TimestampexpireAfterSeconds - number of seconds to add to the time in the columnpublic static TableTtl valueSinceUnixEpoch(@Nonnull String columnName, TableTtl.TtlUnit unit, int expireAfterSeconds)
columnName - name of column with type UInt32, UInt64 or DyNumberunit - time unit of columnexpireAfterSeconds - number of seconds to add to the time in the columnCopyright © 2024. All rights reserved.