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

#include <JSONFileDirectorySource.h>

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

Public Member Functions

 JSONFileDirectorySource (const std::string &dirPath, const double sample=1)
 
 JSONFileDirectorySource (std::string dirPath, 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 directory containing one or multiple JSON files to be imported.

Constructor & Destructor Documentation

◆ JSONFileDirectorySource() [1/2]

joda::docparsing::JSONFileDirectorySource::JSONFileDirectorySource ( const std::string &  dirPath,
const double  sample = 1 
)
explicit

◆ JSONFileDirectorySource() [2/2]

joda::docparsing::JSONFileDirectorySource::JSONFileDirectorySource ( std::string  dirPath,
bool  lineSeparated,
const double  sample = 1.0 
)
explicit

Member Function Documentation

◆ estimatedSize()

size_t joda::docparsing::JSONFileDirectorySource::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::JSONFileDirectorySource::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.

Here is the call graph for this function:

◆ feedSources() [2/2]

void joda::docparsing::JSONFileDirectorySource::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.

Here is the call graph for this function:

◆ toQueryString()

const std::string joda::docparsing::JSONFileDirectorySource::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::JSONFileDirectorySource::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: