public class NoRotationPolicy extends Object implements FileRotationPolicy
Constructor and Description |
---|
NoRotationPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
mark(long offset)
Check if a file rotation should be performed based on
the offset at which file is being written.
|
boolean |
mark(TridentTuple tuple,
long offset)
Called for every tuple the HdfsBolt executes.
|
void |
reset()
Called after the HdfsBolt rotates a file.
|
void |
start()
Start the policy.
|
public boolean mark(TridentTuple tuple, long offset)
FileRotationPolicy
mark
in interface FileRotationPolicy
tuple
- The tuple executed.offset
- current offset of file being writtenpublic boolean mark(long offset)
FileRotationPolicy
mark
in interface FileRotationPolicy
offset
- the current offset of file being writtenpublic void reset()
FileRotationPolicy
reset
in interface FileRotationPolicy
public void start()
FileRotationPolicy
start
in interface FileRotationPolicy
Copyright © 2023 The Apache Software Foundation. All rights reserved.