Search Results for

    Show / Hide Table of Contents

    Class RowSchemaMapCounts

    Allows the caller to track how many times each SchemaNode in the SchemaNodeList list property has been mapped. This is useful since some dataflow types can only be copied once (SingleShallow), or must be deep copied after the first copy (SingleShallowThenDeep).

    Inheritance
    Object
    RowSchemaMapCounts
    Namespace: actionETL
    Assembly: actionETL.dll
    Syntax
    public sealed class RowSchemaMapCounts

    Constructors

    RowSchemaMapCounts(Int32)

    Initializes a new instance of the RowSchemaMapCounts class.

    Declaration
    public RowSchemaMapCounts(int schemaNodeListCount)
    Parameters
    Type Name Description
    Int32 schemaNodeListCount

    The maximum number of items to be mapped.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    schemaNodeListCount - Must be 0 or greater.

    Properties

    Count

    Gets the maximum number of items to be mapped.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    MappedCount

    Gets the number of items with a mapped count greater than 0.

    Declaration
    public int MappedCount { get; }
    Property Value
    Type Description
    Int32

    Methods

    Get(Int32)

    Gets the map count for a particular (SchemaNode) index.

    Declaration
    public int Get(int schemaNodeListIndex)
    Parameters
    Type Name Description
    Int32 schemaNodeListIndex

    Index of the SchemaNode in the SchemaNodeList list for which to return the map count.

    Returns
    Type Description
    Int32

    The map count; 0 if not mapped.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    schemaNodeListIndex was outside [0, number of items).

    Increment(Int32)

    Increments the map count for a particular (SchemaNode) index.

    Declaration
    public void Increment(int schemaNodeListIndex)
    Parameters
    Type Name Description
    Int32 schemaNodeListIndex

    Index of the SchemaNode in the SchemaNodeList list for which to increment the map count.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    schemaNodeListIndex was outside [0, number of items).

    IsMapped(Int32)

    Determines whether the specified (SchemaNode) index is mapped.

    Declaration
    public bool IsMapped(int schemaNodeListIndex)
    Parameters
    Type Name Description
    Int32 schemaNodeListIndex

    Index of the SchemaNode in the SchemaNodeList list for which to return whether it is mapped or not.

    Returns
    Type Description
    Boolean

    true if the specified SchemaNode has a map count greater than 0; otherwise, false.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    schemaNodeListIndex was outside [0, number of items).

    See Also

    RowSchemaBase<TRowSchema, TSchemaNode>
    In This Article
    Back to top Copyright © 2023 Envobi Ltd