Class DefaultFileNameFormat

java.lang.Object
org.apache.storm.hdfs.trident.format.DefaultFileNameFormat
All Implemented Interfaces:
Serializable, FileNameFormat

public class DefaultFileNameFormat extends Object implements FileNameFormat
Creates file names with the following format:
     {prefix}-{partitionId}-{rotationNum}-{timestamp}{extension}
 
For example:
     MyBolt-5-7-1390579837830.txt
 

By default, prefix is empty and extenstion is ".txt".

See Also:
  • Constructor Details

    • DefaultFileNameFormat

      public DefaultFileNameFormat()
  • Method Details