public abstract class AbstractCollectResultBuffer<T> extends Object
CollectSinkFunction
.Constructor and Description |
---|
AbstractCollectResultBuffer(TypeSerializer<T> serializer) |
Modifier and Type | Method and Description |
---|---|
void |
complete() |
void |
dealWithResponse(CollectCoordinationResponse response,
long responseOffset) |
long |
getOffset() |
String |
getVersion() |
protected abstract void |
maintainVisibility(long currentVisiblePos,
long lastCheckpointedOffset) |
protected void |
makeResultsVisible(long visiblePos) |
T |
next()
Get next user visible result, returns null if currently there is no more.
|
protected void |
reset()
Clear the whole buffer and discard all results.
|
protected void |
revert(long checkpointedOffset)
Revert the buffer back to the result whose offset is `checkpointedOffset`.
|
protected abstract void |
sinkRestarted(long lastCheckpointedOffset) |
public AbstractCollectResultBuffer(TypeSerializer<T> serializer)
public T next()
public long getOffset()
public String getVersion()
public void dealWithResponse(CollectCoordinationResponse response, long responseOffset) throws IOException
IOException
public void complete()
protected abstract void sinkRestarted(long lastCheckpointedOffset)
protected abstract void maintainVisibility(long currentVisiblePos, long lastCheckpointedOffset)
protected void makeResultsVisible(long visiblePos)
protected void revert(long checkpointedOffset)
protected void reset()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.