public interface FileNameFormat extends Serializable
Formatter interface for determining HDFS file names.
Modifier and Type | Method and Description |
---|---|
String |
getName(long rotation,
long timeStamp)
Returns the filename the HdfsBolt will create.
|
String |
getPath() |
void |
prepare(Map conf,
int partitionIndex,
int numPartitions) |
void prepare(Map conf, int partitionIndex, int numPartitions)
String getName(long rotation, long timeStamp)
Returns the filename the HdfsBolt will create.
rotation
- the current file rotation number (incremented on every rotation)timeStamp
- current time in milliseconds when the rotation occursString getPath()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.