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