You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a possibility to make a mapper selection based on the line position in the file ?
Most of the files I deal with have the first and last lines coming in a different format than the rest of the file.
So, for example, I would like to be able to tell the selector that if it's dealing with the first line then the mapper to use is the one I've declared for the header. Same with the last line considered as a footer.
Thanks.
The text was updated successfully, but these errors were encountered:
That's a really good idea. As a workaround, I am debating if you could declare an int in the outer scope and create a closure over it in the lambda, incrementing it as you read records.
Is there a possibility to make a mapper selection based on the line position in the file ?
Most of the files I deal with have the first and last lines coming in a different format than the rest of the file.
So, for example, I would like to be able to tell the selector that if it's dealing with the first line then the mapper to use is the one I've declared for the header. Same with the last line considered as a footer.
Thanks.
The text was updated successfully, but these errors were encountered: