public interface DatasetStatePersistor
DatasetContext
to read and persist state.Modifier and Type | Method and Description |
---|---|
void |
persistState(DatasetContext datasetContext,
byte[] state)
Writes the serialized bytes of the state of the partition consuming process.
|
byte[] |
readState(DatasetContext datasetContext) |
@Nullable byte[] readState(DatasetContext datasetContext)
datasetContext
- context to use to instantiate dataset(s) for reading the statevoid persistState(DatasetContext datasetContext, byte[] state)
datasetContext
- context to use to instantiate dataset(s) for persisting the statestate
- the bytes to persistCopyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.