Describe a range of a file to read.
FileFormatRootFactory creates instances of this class and
feeds them to different roots.
def google.appengine.ext.mapreduce.file_format_root._FileRange.__init__ |
( |
|
self, |
|
|
|
filename, |
|
|
|
file_range = None |
|
) |
| |
Init.
Args:
filename: filename in str.
file_range: [start_index, end_index) tuple. This only makes sense for
_FileFormats that support splitting within a file.
It specify the range to read this file.
None means reading the entire file. When defined, what it means
differ for each format. For example, if a file is of zip format,
index specifies the member files to read. If a file is of record
format, index specifies the records to read.