Class FileSizeRotationPolicy

java.lang.Object
org.apache.storm.hdfs.bolt.rotation.FileSizeRotationPolicy
All Implemented Interfaces:
Serializable, FileRotationPolicy

public class FileSizeRotationPolicy extends Object implements FileRotationPolicy
File rotation policy that will rotate files when a certain file size is reached.

For example:

     // rotate when files reach 5MB
     FileSizeRotationPolicy policy =
          new FileSizeRotationPolicy(5.0, Units.MB);
 
See Also:
  • Constructor Details

    • FileSizeRotationPolicy

      public FileSizeRotationPolicy(float count, FileSizeRotationPolicy.Units units)
    • FileSizeRotationPolicy

      protected FileSizeRotationPolicy(long maxBytes)
  • Method Details