Class NoRotationPolicy
- java.lang.Object
- 
- org.apache.storm.hdfs.trident.rotation.NoRotationPolicy
 
- 
- All Implemented Interfaces:
- Serializable,- FileRotationPolicy
 
 public class NoRotationPolicy extends Object implements FileRotationPolicy File rotation policy that will never rotate... Just one big file. Intended for testing purposes.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NoRotationPolicy()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmark(long offset)Check if a file rotation should be performed based on the offset at which file is being written.booleanmark(TridentTuple tuple, long offset)Called for every tuple the HdfsBolt executes.voidreset()Called after the HdfsBolt rotates a file.voidstart()Start the policy.
 
- 
- 
- 
Method Detail- 
markpublic boolean mark(TridentTuple tuple, long offset) Description copied from interface:FileRotationPolicyCalled for every tuple the HdfsBolt executes.- Specified by:
- markin interface- FileRotationPolicy
- Parameters:
- tuple- The tuple executed.
- offset- current offset of file being written
- Returns:
- true if a file rotation should be performed
 
 - 
markpublic boolean mark(long offset) Description copied from interface:FileRotationPolicyCheck if a file rotation should be performed based on the offset at which file is being written.- Specified by:
- markin interface- FileRotationPolicy
- Parameters:
- offset- the current offset of file being written
- Returns:
- true if a file rotation should be performed.
 
 - 
resetpublic void reset() Description copied from interface:FileRotationPolicyCalled after the HdfsBolt rotates a file.- Specified by:
- resetin interface- FileRotationPolicy
 
 - 
startpublic void start() Description copied from interface:FileRotationPolicyStart the policy. Useful in case of policies like timed rotation where the timer can be started.- Specified by:
- startin interface- FileRotationPolicy
 
 
- 
 
-