Soong
Soong provides a general-purpose ETL library for data migration.
CountableExtractorBase Class Reference

Provides default implementation of count(). More...

Inheritance diagram for CountableExtractorBase:
ExtractorBase Countable OptionsResolverComponent Extractor ConfigurableComponent ConfigurableComponent PropertyList ArrayExtractor

Public Member Functions

 count ()
 
- Public Member Functions inherited from ExtractorBase
 getProperties ()
 List the properties available in records generated by this extractor.
Returns
array Array of property names.
More...
 
 getKeyProperties ()
 List the properties which form a unique key for the extracted data.
Returns
array Array keyed by property name, with value being an array containing a 'type' key whose value is the type of the property.
More...
 
 extractFiltered ()
 Iterator taking into account any applicable filtering.
Returns
Record[] One data record from the source being extracted.
More...
 
- Public Member Functions inherited from OptionsResolverComponent
 getConfigurationValue (string $optionName)
 Retrieve a configuration value for a named option.
Parameters
string$optionNameName of the option to retrieve.
Returns
mixed|null Retrieved value, or NULL if unset.
More...
 
 getAllConfigurationValues ()
 Retrieve a list of all available configuration values.
Returns
iterable Option values keyed by names.
More...
 
- Public Member Functions inherited from Extractor
 extractAll ()
 Iterator over all canonical source data. More...
 

Protected Member Functions

 optionDefinitions ()
 
 getUncachedCount ()
 Determine the "real" count directly from the source. More...
 
- Protected Member Functions inherited from ExtractorBase
 optionDefinitions ()
 
- Protected Member Functions inherited from OptionsResolverComponent
 optionDefinitions ()
 List of definition arrays for each option supported by the component. More...
 

Additional Inherited Members

- Protected Attributes inherited from OptionsResolverComponent
 $configuration = []
 Resolved configuration for the component. More...
 
 $resolver
 Use Symfony OptionsResolver as our default configuration manager. More...
 

Detailed Description

Provides default implementation of count().

Member Function Documentation

◆ optionDefinitions()

optionDefinitions ( )
protected

◆ count()

count ( )

◆ getUncachedCount()

getUncachedCount ( )
protected

Determine the "real" count directly from the source.

Override for sources with more efficient ways to get the count.

Referenced by CountableExtractorBase\count().