Interface FileNameFormat
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultFileNameFormat,SimpleFileNameFormat
public interface FileNameFormat extends Serializable
Formatter interface for determining HDFS file names.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName(long rotation, long timeStamp)Returns the filename the HdfsBolt will create.StringgetPath()voidprepare(Map<String,Object> conf, TopologyContext topologyContext)
-
-
-
Method Detail
-
prepare
void prepare(Map<String,Object> conf, TopologyContext topologyContext)
-
getName
String getName(long rotation, long timeStamp)
Returns the filename the HdfsBolt will create.- Parameters:
rotation- the current file rotation number (incremented on every rotation)timeStamp- current time in milliseconds when the rotation occurs
-
getPath
String getPath()
-
-