Package arvados :: Module arvfile :: Class StreamFileReader
[hide private]
[frames] | no frames]

Class StreamFileReader

source code

builtins.object --+        
                  |        
_FileLikeObjectBase --+    
                      |    
  ArvadosFileReaderBase --+
                          |
                         StreamFileReader

Nested Classes [hide private]
  _NameAttribute
Instance Methods [hide private]
 
__init__(self, stream, segments, name) source code
 
stream_name(self) source code
 
size(self) source code
 
read(self, size, num_retries=None)
Read up to 'size' bytes from the stream, starting at the current file position
source code
 
readfrom(self, start, size, num_retries=None)
Read up to 'size' bytes from the stream, starting at 'start'
source code
 
as_manifest(self) source code

Inherited from ArvadosFileReaderBase: __iter__, decompress, decompressed_name, readable, readall, readall_decompressed, readline, readlines, seek, seekable, tell, writable

Inherited from _FileLikeObjectBase: __enter__, __exit__, close

Static Methods [hide private]

Inherited from _FileLikeObjectBase (private): _before_close

Method Details [hide private]

__init__(self, stream, segments, name)
(Constructor)

source code 
Overrides: _FileLikeObjectBase.__init__

size(self)

source code 
Overrides: ArvadosFileReaderBase.size

read(self, size, num_retries=None)

source code 

Read up to 'size' bytes from the stream, starting at the current file position

Decorators:
  • @_FileLikeObjectBase._before_close
  • @retry_method
Overrides: ArvadosFileReaderBase.read

readfrom(self, start, size, num_retries=None)

source code 

Read up to 'size' bytes from the stream, starting at 'start'

Decorators:
  • @_FileLikeObjectBase._before_close
  • @retry_method
Overrides: ArvadosFileReaderBase.readfrom