flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Анастасія Баша <nastja.ba...@mail.ru>
Subject Possibility to get the line numbers?
Date Wed, 03 Feb 2016 23:37:44 GMT
 Is there a way to get the current line number (or generally the number of element currently
being processed) inside a mapper?
The example is a matrix you read line-line by line from the file and need both the row and
the column numbers. Column number is easy to get, but how to know the row number?
Thanks a lot in advance, 
View raw message