Hi Josh,

FileInputFormat stores the currently read FileInputSplit in a protected
variable FileInputFormat.currentSplit.
You can override your FileInputFormat and access the path of the read file
from the FileInputSplit in the method that emits the records from the


2018-04-06 17:46 GMT+02:00 Josh Lemer <joshle...@gmail.com>:

> Hey there, is it possible to somehow read the filename of elements that
> are read from `env.readFile`? In our case, the date of creation is encoded
> in the file name.
> Otherwise, maybe it is possible to assign timestamps somehow by the file's
> creation time directly?
> Thanks!

Reply via email to