Pool of file append operations.
def google.appengine.ext.mapreduce.output_writers._FilePool.__init__ |
( |
|
self, |
|
|
|
flush_size_chars = _FILES_API_FLUSH_SIZE , |
|
|
|
ctx = None |
|
) |
| |
Constructor.
Args:
flush_size_chars: buffer flush size in bytes as int. Internal buffer
will be flushed once this size is reached.
ctx: mapreduce context as context.Context. Can be null.
def google.appengine.ext.mapreduce.output_writers._FilePool.append |
( |
|
self, |
|
|
|
filename, |
|
|
|
data |
|
) |
| |
Append data to a file.
Args:
filename: the name of the file as string.
data: data as string.
Raises:
Error: If it can't append the data to the file.
def google.appengine.ext.mapreduce.output_writers._FilePool.flush |
( |
|
self | ) |
|
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/ext/mapreduce/output_writers.py