public static enum FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType extends Enum<FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType> implements com.google.protobuf.ProtocolMessageEnum
This option value configures when to update last access timestamp which prolongs state TTL.Protobuf enum
org.apache.flink.fn_execution.v1.StateDescriptor.StateTTLConfig.UpdateType
Enum Constant and Description |
---|
Disabled
TTL is disabled.
|
OnCreateAndWrite
Last access timestamp is initialised when state is created and updated on every write operation.
|
OnReadAndWrite
The same as OnCreateAndWrite but also updated on read.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
Disabled_VALUE
TTL is disabled.
|
static int |
OnCreateAndWrite_VALUE
Last access timestamp is initialised when state is created and updated on every write operation.
|
static int |
OnReadAndWrite_VALUE
The same as OnCreateAndWrite but also updated on read.
|
Modifier and Type | Method and Description |
---|---|
static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType> |
internalGetValueMap() |
static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType Disabled
TTL is disabled. State does not expire.
Disabled = 0;
public static final FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType OnCreateAndWrite
Last access timestamp is initialised when state is created and updated on every write operation.
OnCreateAndWrite = 1;
public static final FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType OnReadAndWrite
The same as OnCreateAndWrite but also updated on read.
OnReadAndWrite = 2;
public static final FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType UNRECOGNIZED
public static final int Disabled_VALUE
TTL is disabled. State does not expire.
Disabled = 0;
public static final int OnCreateAndWrite_VALUE
Last access timestamp is initialised when state is created and updated on every write operation.
OnCreateAndWrite = 1;
public static final int OnReadAndWrite_VALUE
The same as OnCreateAndWrite but also updated on read.
OnReadAndWrite = 2;
public static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType[] values()
for (FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType c : FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType.values()) System.out.println(c);
public static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static FlinkFnApi.StateDescriptor.StateTTLConfig.UpdateType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.