souffle
2.0.2-371-g6315b36
|
#include <ReadStreamCSV.h>
Public Member Functions | |
ReadStreamCSV (std::istream &file, const std::map< std::string, std::string > &rwOperation, SymbolTable &symbolTable, RecordTable &recordTable) | |
Public Member Functions inherited from souffle::ReadStream | |
template<typename T > | |
void | readAll (T &relation) |
Public Member Functions inherited from souffle::SerialisationStream< false > | |
virtual | ~SerialisationStream ()=default |
Protected Member Functions | |
std::map< int, int > | getInputColumnMap (const std::map< std::string, std::string > &rwOperation, const unsigned arity_) const |
std::string | nextElement (const std::string &line, size_t &start, size_t &end) |
Own< RamDomain[]> | readNextTuple () override |
Read and return the next tuple. More... | |
RamUnsigned | readRamUnsigned (const std::string &element, size_t &charactersRead) |
Read an unsigned element. More... | |
Protected Member Functions inherited from souffle::ReadStream | |
void | consumeChar (const std::string &str, char c, size_t &pos) |
Read past given character, consuming any preceding whitespace. More... | |
void | consumeWhiteSpace (const std::string &str, size_t &pos) |
Advance position in the string until first non-whitespace character. More... | |
RamDomain | readADT (const std::string &source, const std::string &adtName, size_t pos=0, size_t *charactersRead=nullptr) |
std::string | readAlphanumeric (const std::string &source, size_t &pos) |
Read the next alphanumeric sequence (corresponding to IDENT). More... | |
RamDomain | readRecord (const std::string &source, const std::string &recordTypeName, size_t pos=0, size_t *charactersRead=nullptr) |
Read a record from a string. More... | |
ReadStream (const std::map< std::string, std::string > &rwOperation, SymbolTable &symTab, RecordTable &recTab) | |
std::string | readUntil (const std::string &source, const std::string stopChars, const size_t pos, size_t *charactersRead) |
Protected Member Functions inherited from souffle::SerialisationStream< false > | |
SerialisationStream (RO< SymbolTable > &symTab, RO< RecordTable > &recTab, const std::map< std::string, std::string > &rwOperation) | |
SerialisationStream (RO< SymbolTable > &symTab, RO< RecordTable > &recTab, Json types) | |
SerialisationStream (RO< SymbolTable > &symTab, RO< RecordTable > &recTab, Json types, std::vector< std::string > relTypes, size_t auxArity=0) | |
Protected Attributes | |
const std::string | delimiter |
std::istream & | file |
std::map< int, int > | inputMap |
size_t | lineNumber |
Protected Attributes inherited from souffle::SerialisationStream< false > | |
size_t | arity |
size_t | auxiliaryArity |
RO< RecordTable > & | recordTable |
RO< SymbolTable > & | symbolTable |
std::vector< std::string > | typeAttributes |
Json | types |
Additional Inherited Members | |
Protected Types inherited from souffle::SerialisationStream< false > | |
using | RO = std::conditional_t< readOnlyTables, const A, A > |
Definition at line 49 of file ReadStreamCSV.h.
|
inline |
Definition at line 51 of file ReadStreamCSV.h.
References souffle::SerialisationStream< false >::arity, inputMap, and TCB_SPAN_NAMESPACE_NAME::detail::size().
|
inlineprotected |
Definition at line 217 of file ReadStreamCSV.h.
|
inlineprotected |
Read and return the next tuple.
Returns nullptr if no tuple was readable.
Implements souffle::ReadStream.
Reimplemented in souffle::ReadFileCSV.
Definition at line 69 of file ReadStreamCSV.h.
|
inlineprotected |
Read an unsigned element.
Possible bases are 2, 10, 16 Base is indicated by the first two chars.
Definition at line 146 of file ReadStreamCSV.h.
References souffle::RamUnsignedFromString().
|
protected |
Definition at line 241 of file ReadStreamCSV.h.
Referenced by nextElement().
|
protected |
Definition at line 242 of file ReadStreamCSV.h.
Referenced by souffle::ReadFileCSV::ReadFileCSV().
|
protected |
Definition at line 244 of file ReadStreamCSV.h.
Referenced by ReadStreamCSV().
|
protected |
Definition at line 243 of file ReadStreamCSV.h.
Referenced by nextElement().