JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions
joda::docparsing::JSONFileSource Class Reference

#include <JSONFileSource.h>

Inheritance diagram for joda::docparsing::JSONFileSource:
[legend]
Collaboration diagram for joda::docparsing::JSONFileSource:
[legend]

Public Member Functions

 JSONFileSource (const std::string &filePath, const double sample=1)
 
 JSONFileSource (std::string filePath, bool lineSeparated, const double sample=1.0)
 
void feedSources (JODA_READER_QUEUE< JODA_JSON_FILE_LINESEPERATED_READER_FLAG >::queue_t &queue, JODA_READER_QUEUE< JODA_JSON_FILE_LINESEPERATED_READER_FLAG >::queue_t::ptok_t &ptok) override
 
void feedSources (JODA_READER_QUEUE< JODA_JSON_FILE_BEAUTIFIED_READER_FLAG >::queue_t &queue, JODA_READER_QUEUE< JODA_JSON_FILE_BEAUTIFIED_READER_FLAG >::queue_t::ptok_t &ptok) override
 
size_t estimatedSize () override
 
const std::string toString () override
 
const std::string toQueryString () override
 
- Public Member Functions inherited from joda::docparsing::IImportSource
 IImportSource (ReaderFlag readerFlag, ParserFlag parserFlag, ContainerFlag containerFlag)
 
virtual ~IImportSource ()=default
 
ReaderFlag getReaderFlag () const
 
ParserFlag getParserFlag () const
 
ContainerFlag getContainerFlag () const
 
virtual void feedSources (JODA_READER_QUEUE< JODA_JSON_URL_READER_FLAG >::queue_t &queue, JODA_READER_QUEUE< JODA_JSON_URL_READER_FLAG >::queue_t::ptok_t &ptok)
 

Detailed Description

Represents a single JSON file to be imported

Constructor & Destructor Documentation

◆ JSONFileSource() [1/2]

joda::docparsing::JSONFileSource::JSONFileSource ( const std::string &  filePath,
const double  sample = 1 
)

◆ JSONFileSource() [2/2]

joda::docparsing::JSONFileSource::JSONFileSource ( std::string  filePath,
bool  lineSeparated,
const double  sample = 1.0 
)

Member Function Documentation

◆ estimatedSize()

size_t joda::docparsing::JSONFileSource::estimatedSize ( )
overridevirtual

Estimates the size of the document to be imported

Reimplemented from joda::docparsing::IImportSource.

Here is the call graph for this function:

◆ feedSources() [1/2]

void joda::docparsing::JSONFileSource::feedSources ( JODA_READER_QUEUE< JODA_JSON_FILE_BEAUTIFIED_READER_FLAG >::queue_t &  queue,
JODA_READER_QUEUE< JODA_JSON_FILE_BEAUTIFIED_READER_FLAG >::queue_t::ptok_t &  ptok 
)
overridevirtual

Reimplemented from joda::docparsing::IImportSource.

◆ feedSources() [2/2]

void joda::docparsing::JSONFileSource::feedSources ( JODA_READER_QUEUE< JODA_JSON_FILE_LINESEPERATED_READER_FLAG >::queue_t &  queue,
JODA_READER_QUEUE< JODA_JSON_FILE_LINESEPERATED_READER_FLAG >::queue_t::ptok_t &  ptok 
)
overridevirtual

Reimplemented from joda::docparsing::IImportSource.

◆ toQueryString()

const std::string joda::docparsing::JSONFileSource::toQueryString ( )
overridevirtual

Returns a string as this IImportSource would be represented in a query

Returns

Implements joda::docparsing::IImportSource.

◆ toString()

const std::string joda::docparsing::JSONFileSource::toString ( )
overridevirtual

Returns a (human readable) string describing the IImportSource. A.toString() == B.toString() => A == B

Returns

Implements joda::docparsing::IImportSource.


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