Class CustomBatchSource<TOutput>

Define your own source block. This block allows you to read batches of data from your own custom written functions, which are then send subsequently into your data flow.

Inheritance
object
CustomBatchSource<TOutput>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow.Connectors
Assembly: ETLBox.dll
Syntax
    public class CustomBatchSource<TOutput> : DataFlowExecutableSource<TOutput>, ILoggableTask, IDataFlowLogging, IDataFlowExecutableSource<TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowComponent, IDataFlowExecutableSource
Type Parameters
NameDescription
TOutput

Type of outgoing data.

Constructors

CustomBatchSource()

Declaration
    public CustomBatchSource()

CustomBatchSource(Func<int, IEnumerable<TOutput>>, Predicate<int>)

Declaration
    public CustomBatchSource(Func<int, IEnumerable<TOutput>> readBatchFunc, Predicate<int> readingCompleted)
Parameters
TypeNameDescription
System.Func<T, TResult><int, System.Collections.Generic.IEnumerable<T><TOutput>>readBatchFunc

Sets the ReadBatchFunc

System.Predicate<T><int>readingCompleted

Sets the ReadingCompleted

Properties

ReadBatchFunc

The function that returns a batch of data row as output. An integer value with the current progress count is the input of the function.

Declaration
    public Func<int, IEnumerable<TOutput>> ReadBatchFunc { get; set; }
Property Value
TypeDescription
System.Func<T, TResult><int, System.Collections.Generic.IEnumerable<T><TOutput>>

ReadingCompleted

This predicate returns true when all rows for the flow are successfully returned from the ReadBatchFunc. An integer value with the current progress count is the input of the predicate.

Declaration
    public Predicate<int> ReadingCompleted { get; set; }
Property Value
TypeDescription
System.Predicate<T><int>

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
string
Overrides

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

CleanUpOnFaulted(Exception)

Declaration
    protected override void CleanUpOnFaulted(Exception e)
Parameters
TypeNameDescription
System.Exceptione
Overrides

CleanUpOnSuccess()

Declaration
    protected override void CleanUpOnSuccess()
Overrides

OnExecutionDoAsyncWork()

Declaration
    protected override void OnExecutionDoAsyncWork()
Overrides
ETLBox.DataFlow.DataFlowExecutableSource<TOutput>.OnExecutionDoAsyncWork()

OnExecutionDoSynchronousWork()

Declaration
    protected override void OnExecutionDoSynchronousWork()
Overrides
ETLBox.DataFlow.DataFlowExecutableSource<TOutput>.OnExecutionDoSynchronousWork()

Implements