App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
google.appengine.ext.mapreduce.file_format_root._FileRange Class Reference
Inheritance diagram for google.appengine.ext.mapreduce.file_format_root._FileRange:
google.appengine.ext.mapreduce.json_util.JsonMixin

Public Member Functions

def __init__
 
def to_json
 
def from_json
 
- Public Member Functions inherited from google.appengine.ext.mapreduce.json_util.JsonMixin
def to_json_str
 
def from_json_str
 

Public Attributes

 filename
 
 range
 

Static Public Attributes

string FILENAME = 'filename'
 
string RANGE = 'range'
 

Detailed Description

Describe a range of a file to read.

FileFormatRootFactory creates instances of this class and
feeds them to different roots.

Constructor & Destructor Documentation

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.

The documentation for this class was generated from the following file: