@Internal public class StreamingFileSinkHelper<IN> extends Object implements ProcessingTimeService.ProcessingTimeCallback
Constructor and Description |
---|
StreamingFileSinkHelper(Buckets<IN,?> buckets,
boolean isRestored,
OperatorStateStore stateStore,
ProcessingTimeService procTimeService,
long bucketCheckInterval) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commitUpToCheckpoint(long checkpointId) |
void |
onElement(IN value,
long currentProcessingTime,
Long elementTimestamp,
long currentWatermark) |
void |
onProcessingTime(long timestamp)
This method is invoked with the time which the callback register for.
|
void |
snapshotState(long checkpointId) |
public StreamingFileSinkHelper(Buckets<IN,?> buckets, boolean isRestored, OperatorStateStore stateStore, ProcessingTimeService procTimeService, long bucketCheckInterval) throws Exception
Exception
public void commitUpToCheckpoint(long checkpointId) throws Exception
Exception
public void onProcessingTime(long timestamp) throws Exception
ProcessingTimeService.ProcessingTimeCallback
onProcessingTime
in interface ProcessingTimeService.ProcessingTimeCallback
timestamp
- The time this callback was registered for.Exception
public void onElement(IN value, long currentProcessingTime, @Nullable Long elementTimestamp, long currentWatermark) throws Exception
Exception
public void close()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.