public class StoreSinkWriteState extends Object
StoreSinkWrite
s.
States are positioned first by table name and then by key name. This class should be initiated
in a sink operator and then given to StoreSinkWrite
.
Modifier and Type | Class and Description |
---|---|
static class |
StoreSinkWriteState.StateValue
A state value for
StoreSinkWrite . |
static interface |
StoreSinkWriteState.StateValueFilter
Given the table name, partition and bucket of a
StoreSinkWriteState.StateValue in a union list state,
decide whether to keep this StoreSinkWriteState.StateValue in this subtask. |
Constructor and Description |
---|
StoreSinkWriteState(org.apache.flink.runtime.state.StateInitializationContext context,
StoreSinkWriteState.StateValueFilter stateValueFilter) |
Modifier and Type | Method and Description |
---|---|
List<StoreSinkWriteState.StateValue> |
get(String tableName,
String key) |
void |
put(String tableName,
String key,
List<StoreSinkWriteState.StateValue> stateValues) |
void |
snapshotState() |
StoreSinkWriteState.StateValueFilter |
stateValueFilter() |
public StoreSinkWriteState(org.apache.flink.runtime.state.StateInitializationContext context, StoreSinkWriteState.StateValueFilter stateValueFilter) throws Exception
Exception
public StoreSinkWriteState.StateValueFilter stateValueFilter()
@Nullable public List<StoreSinkWriteState.StateValue> get(String tableName, String key)
public void put(String tableName, String key, List<StoreSinkWriteState.StateValue> stateValues)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.