public class SplitListState<T> extends Object implements org.apache.flink.api.common.state.ListState<T>
ListState
-like experience for sources that use SimpleSourceSplit
.Constructor and Description |
---|
SplitListState(String identifier,
java.util.function.Function<T,String> serializer,
java.util.function.Function<String,T> deserializer) |
Modifier and Type | Method and Description |
---|---|
void |
add(T value) |
void |
addAll(List<T> values) |
void |
clear() |
List<T> |
get() |
void |
restoreState(List<SimpleSourceSplit> splits) |
List<SimpleSourceSplit> |
snapshotState() |
void |
update(List<T> values) |
public SplitListState(String identifier, java.util.function.Function<T,String> serializer, java.util.function.Function<String,T> deserializer)
public void add(T value)
public void update(List<T> values)
update
in interface org.apache.flink.api.common.state.ListState<T>
public void clear()
clear
in interface org.apache.flink.api.common.state.State
public List<SimpleSourceSplit> snapshotState()
public void restoreState(List<SimpleSourceSplit> splits)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.