Qore json Module 1.11.0
Loading...
Searching...
No Matches
NdjsonDataProvider::NdjsonDataProviderFactory Class Reference

Factory class for NDJSON data providers. More...

#include <NdjsonDataProviderFactory.qc.dox.h>

Inherits DataProvider::AbstractDataProviderFactory.

Public Member Methods

hash< DataProviderFactoryInfo > getInfoImpl ()
 Returns the factory info.
 
Class getClassImpl ()
 Returns the class for the data provider.
 
DataProvider::AbstractDataProvider createImpl (hash< auto > options, soft< LoggerInterface > logger)
 Returns the data provider from the given options.
 
soft< hash< auto > > getInfoAsDataImpl (hash< auto > constructor_options, soft< bool > with_type_info)
 Returns static provider information as data; no connection is required.
 
string getDescImpl ()
 Returns the description of the factory.
 
hash< DataProvider::DataProviderInfo > getProviderInfoImpl ()
 Returns provider info.
 

Public Attributes

const auto FactoryInfo = ...
 Factory info.
 

Detailed Description

Factory class for NDJSON data providers.

Member Function Documentation

◆ createImpl()

DataProvider::AbstractDataProvider NdjsonDataProvider::NdjsonDataProviderFactory::createImpl ( hash< auto >  options,
soft< LoggerInterface >  logger 
)

Returns the data provider from the given options.

Parameters
optionsthe options for the data provider; one of:
  • path: path to an NDJSON file
  • stream: an input stream
  • data: NDJSON data as a string
loggeran optional logger
Returns
the data provider created from the given options

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