I see, in that case, it should work. Can you add a unit test for MetadataInputFormat that, when given various inputs (e.g., directories with tiffs and other files) yields the correct number of records through the RecordReader. Should be straightforward.