InputResourceFile

class hailtop.batch.resource.InputResourceFile

Bases: hailtop.batch.resource.ResourceFile

Class representing a resource from an input file.

Examples

input is an InputResourceFile of the batch b and is used in job j:

>>> b = Batch()
>>> input = b.read_input('data/hello.txt')
>>> j = b.new_job(name='hello')
>>> j.command(f'cat {input}')
>>> b.run()