public interface SyncPolicy extends Serializable
Interface for controlling when the HdfsBolt syncs and flushes the filesystem.
Modifier and Type | Method and Description |
---|---|
boolean |
mark(Tuple tuple,
long offset)
Called for every tuple the HdfsBolt executes.
|
void |
reset()
Called after the HdfsBolt performs a sync.
|
boolean mark(Tuple tuple, long offset)
Called for every tuple the HdfsBolt executes.
tuple
- The tuple executed.offset
- current offset for the file being writtenvoid reset()
Called after the HdfsBolt performs a sync.
Copyright © 2022 The Apache Software Foundation. All rights reserved.