Base class for custom data readers. Extend this class to implement a custom
             data reader. This can be used in for example a CustomDataSource or a 
             CustomDataTransformation
            Inheritance Hierarchy
              Spotfire.Dxp.DataDataRowReader
Spotfire.Dxp.Application.ExtensionCustomDataRowReader
Namespace: Spotfire.Dxp.Application.Extension
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
Syntax
C#
public abstract class CustomDataRowReader : DataRowReader
The CustomDataRowReader type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|  | CustomDataRowReader | 
            Initializes a new instance of the CustomDataRowReader class.
             | 
Methods
| Name | Description | |
|---|---|---|
|  | Close | Closes the data reader.
            (Inherited from DataRowReader.) | 
|  | Dispose | Dispose method.
            (Inherited from DataRowReader.) | 
|   | Dispose(Boolean) | Call when the caller is finished using the data reader. 
            (Inherited from DataRowReader.) | 
|  | Finalize | Releases unmanaged resources and performs other cleanup operations before the
            DataReader2 is reclaimed by garbage collection.
            (Inherited from DataRowReader.) | 
|  | GetColumnsCore | The implementor should provide a list of DataRowReaderColumns that it
            returns. 
            (Inherited from DataRowReader.) | 
|  | GetResultPropertiesCore | The implementor should provide the result properties.
            (Inherited from DataRowReader.) | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | MemberwiseClone | Creates a shallow copy of the current Object.(Inherited from Object.) | 
|  | MoveNext | Advances the reader to the next row.
            (Inherited from DataRowReader.) | 
|  | MoveNextCore | Advance to the next row.
            The implementor should update all DataValueCursors in the DataRowReaderColumns
            with values for the next row.
            (Inherited from DataRowReader.) | 
|  | Reset | Resets the reader so that the next time MoveNext is called
            the first row will be returned. 
            (Inherited from DataRowReader.) | 
|  | ResetCore | The implementor should implement this method to reset the
            enumerator. If this method is called then the MoveNextCore
            method should return the first row again when called the next time.
            (Inherited from DataRowReader.) | 
Properties
| Name | Description | |
|---|---|---|
|  | Columns | Represents a collection of the columns that the reader returns.
            (Inherited from DataRowReader.) | 
|  | IsClosed | 
            Gets a value indicating whether the data reader is closed.
            (Inherited from DataRowReader.) | 
|  | ResultProperties | Gets a read-only copy of the result properties, this is properties for the entire
            reader result and not for a specific column.
            (Inherited from DataRowReader.) | 
Examples
C#
public class EveryNColumnsTransformationReader : CustomDataRowReader { private DataRowReader inputReader; private List<DataRowReaderColumn> columns; public EveryNColumnsTransformationReader(DataRowReader inputReader, int n) { this.inputReader = inputReader; this.columns = new List<DataRowReaderColumn>(); int i = 0; foreach (DataRowReaderColumn col in inputReader.Columns) { if (i % n == 0) { this.columns.Add( new DataRowReaderColumn( col.Name, col.DataType, col.Properties, col.Cursor)); } i++; } } protected override IEnumerable<DataRowReaderColumn> GetColumnsCore() { return this.columns; } protected override ResultProperties GetResultPropertiesCore() { return this.inputReader.ResultProperties; } protected override void ResetCore() { this.inputReader.Reset(); } protected override bool MoveNextCore() { this.inputReader.MoveNext(); } }
Version Information
See Also