Turi Create  4.0
turi::fileio::s3::AWSReadStreamBase Class Referenceabstract

reader stream that should be used to read from AWS SDK there's no buffer in this implementation. Every read will fetch packets through network. So combine this with read_caching_device More...

#include <core/storage/fileio/s3_filesys.hpp>

Public Member Functions

virtual size_t Tell (void)
 tell the position of the stream
 
virtual size_t FileSize () const
 
virtual bool AtEnd (void) const
 Returns true if at end of stream.
 
virtual void Seek (size_t pos)
 seek to certain position of the file
 

Protected Member Functions

virtual void InitRequest (size_t begin_bytes, s3url &url)=0
 initialize the ecurl request, More...
 

Detailed Description

reader stream that should be used to read from AWS SDK there's no buffer in this implementation. Every read will fetch packets through network. So combine this with read_caching_device

Definition at line 104 of file s3_filesys.hpp.

Member Function Documentation

◆ FileSize()

virtual size_t turi::fileio::s3::AWSReadStreamBase::FileSize ( ) const
inlinevirtual

tell the physical size of the stream

Implements turi::fileio::s3::SeekStream.

Definition at line 118 of file s3_filesys.hpp.

◆ InitRequest()

virtual void turi::fileio::s3::AWSReadStreamBase::InitRequest ( size_t  begin_bytes,
s3url url 
)
protectedpure virtual

initialize the ecurl request,

Parameters
begin_bytesthe beginning bytes of the stream

Implemented in turi::fileio::s3::ReadStream.


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