Apache Singa
A General Distributed Deep Learning Library
Public Member Functions | List of all members
singa::io::TextFileReader Class Reference

TextFileReader reads tuples from CSV file. More...

#include <reader.h>

Inheritance diagram for singa::io::TextFileReader:
Inheritance graph
[legend]
Collaboration diagram for singa::io::TextFileReader:
Collaboration graph
[legend]

Public Member Functions

bool Open (const std::string &path) override
 
void Close () override
 
bool Read (std::string *key, std::string *value) override
 
int Count () override
 
void SeekToFirst () override
 
std::string path ()
 return path to text file
 
- Public Member Functions inherited from singa::io::Reader
virtual ~Reader ()
 In case that users forget to call Close() to release resources, e.g., memory, you can release them here. More...
 

Detailed Description

TextFileReader reads tuples from CSV file.

Member Function Documentation

◆ Close()

void singa::io::TextFileReader::Close ( )
overridevirtual

Implements singa::io::Reader.

◆ Count()

int singa::io::TextFileReader::Count ( )
overridevirtual

Implements singa::io::Reader.

◆ Open()

bool singa::io::TextFileReader::Open ( const std::string &  path)
overridevirtual

Implements singa::io::Reader.

◆ Read()

bool singa::io::TextFileReader::Read ( std::string *  key,
std::string *  value 
)
overridevirtual

Implements singa::io::Reader.

◆ SeekToFirst()

void singa::io::TextFileReader::SeekToFirst ( )
overridevirtual

Implements singa::io::Reader.


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