Returns the data for the record or None
if no record should be generated for the data.
Returns the data for the record or None
if no record should be generated for the data.
Returns a data record for the data.
Returns a data record for the data.
Builds an error record.
Builds an error record. Should never throw an exception.
Returns the record built from the input or an empty traversable if the input should be skipped.
Returns the record built from the input or an empty traversable if the input should be skipped.
Returns the result of buildData()
after saving it in _maybeData
for possible use
in errorRecord()
.
Returns the result of buildData()
after saving it in _maybeData
for possible use
in errorRecord()
.
Called for every record that is emitted.
Called for every record that is emitted.
The record to be emitted.
Called when a record with non-empty data that should not be skipped is generated.
Called when a record with non-empty data that should not be skipped is generated.
The record with data.
Called when record builder produced no data from the record input.
Called when record builder produced no data from the record input. Note that this is different from the case of data being produced and the builder deciding that the record should be skipped.
The feature mask accumulated by the builder to this point.
Called when an error record was produced.
Called when an error record was produced. The record will not have data.
The error record.
Called once for each top-level build()
call for AnyRecordBuilder
.
Called once for each top-level build()
call for AnyRecordBuilder
.
Called every time a record is emitted, independent of whether it has data or not and whether it is an error or not.
Called every time a record is emitted, independent of whether it has data or not and whether it is an error or not.
Will not be called on skipped records.
The record about to be emitted.
Called when data was produced that should be skipped.
Called when data was produced that should be skipped.
The data to be skipped or None
if no data was produced.
Orchestrates statistics collection.
Orchestrates statistics collection.
Called when there is an internal error as part of record building.
Called when there is an internal error as part of record building.
An error issue will be created for this exception and collectIssueStats will take it into account. This method is called in order to specifically capture statistics about this internal error.
The record with the unhandled exception in issues
.
The unhandled exception.
Returns true
if the feature mask collected during record building contains
one of more of the 1 bits in the provided bitmask.
Returns true
if the feature mask collected during record building contains
one of more of the 1 bits in the provided bitmask.
Returns the feature mask collected during record building.
Returns the feature mask collected during record building.
source data
Shorthand for jobContext.
Shorthand for jobContext.
the job context
the job context
Returns _maybeData
.
Returns _maybeData
.
Notifies the builder to add this Throwable to the list from which issues will be generated.
Notifies the builder to add this Throwable to the list from which issues will be generated.
If the provided parameter is extends FeatureMask, its features will be added to the set aggregated by the builder.
Notifies the builder to add the following features to the aggregate features.
Notifies the builder to add the following features to the aggregate features.
Returns a record from the data or None
, if no record should be emitted.
Returns a record from the data or None
, if no record should be emitted.
For a record to be emitted, there must either be data or an error and
The Features.SKIP flag must not be set in features
.
Returns an error record for an unhandled exception.
Returns an error record for an unhandled exception. Collects unhandled error metrics.
Base class for record builders of single records.
The source input
The record data
The record
The job context