public interface StateStore
| Modifier and Type | Method and Description |
|---|---|
Long |
getLatestGeneration(String namespace,
String pipelineName) |
Collection<Integer> |
getWorkerInstances(DeltaPipelineId pipelineId) |
OffsetAndSequence |
readOffset(DeltaWorkerId id) |
byte[] |
readState(DeltaWorkerId id,
String key) |
void |
writeOffset(DeltaWorkerId id,
OffsetAndSequence offset) |
void |
writeState(DeltaWorkerId id,
String key,
byte[] val) |
OffsetAndSequence readOffset(DeltaWorkerId id) throws IOException
IOExceptionvoid writeOffset(DeltaWorkerId id, OffsetAndSequence offset) throws IOException
IOExceptionbyte[] readState(DeltaWorkerId id, String key) throws IOException
IOExceptionvoid writeState(DeltaWorkerId id, String key, byte[] val) throws IOException
IOExceptionLong getLatestGeneration(String namespace, String pipelineName) throws IOException
IOExceptionCollection<Integer> getWorkerInstances(DeltaPipelineId pipelineId) throws IOException
IOExceptionCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.