public class HCFSStateStore extends Object implements StateStore
| Modifier and Type | Method and Description |
|---|---|
static HCFSStateStore |
from(org.apache.hadoop.fs.Path basePath) |
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) |
public static HCFSStateStore from(org.apache.hadoop.fs.Path basePath) throws IOException
IOException@Nullable public OffsetAndSequence readOffset(DeltaWorkerId id) throws IOException
readOffset in interface StateStoreIOExceptionpublic void writeOffset(DeltaWorkerId id, OffsetAndSequence offset) throws IOException
writeOffset in interface StateStoreIOException@Nullable public Long getLatestGeneration(String namespace, String pipelineName) throws IOException
getLatestGeneration in interface StateStoreIOExceptionpublic Collection<Integer> getWorkerInstances(DeltaPipelineId pipelineId) throws IOException
getWorkerInstances in interface StateStoreIOException@Nullable public byte[] readState(DeltaWorkerId id, String key) throws IOException
readState in interface StateStoreIOExceptionpublic void writeState(DeltaWorkerId id, String key, byte[] val) throws IOException
writeState in interface StateStoreIOExceptionCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.