Class SimpleFileNameFormat
java.lang.Object
org.apache.storm.hdfs.trident.format.SimpleFileNameFormat
- All Implemented Interfaces:
- Serializable,- FileNameFormat
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetName(long rotation, long timeStamp) Returns the filename the HdfsBolt will create.getPath()voidsupport parameters:
 $TIME - current time.withTimeFormat(String timeFormat) 
- 
Constructor Details- 
SimpleFileNameFormatpublic SimpleFileNameFormat()
 
- 
- 
Method Details- 
getNameDescription copied from interface:FileNameFormatReturns the filename the HdfsBolt will create.- Specified by:
- getNamein interface- FileNameFormat
- Parameters:
- rotation- the current file rotation number (incremented on every rotation)
- timeStamp- current time in milliseconds when the rotation occurs
 
- 
getPath- Specified by:
- getPathin interface- FileNameFormat
 
- 
prepare- Specified by:
- preparein interface- FileNameFormat
 
- 
withPath
- 
withNamesupport parameters:
 $TIME - current time. usewithTimeFormatto format.
 $NUM - rotation number
 $HOST - local host name
 $PARTITION - partition index- Parameters:
- name- file name
 
- 
withTimeFormat
 
-