20 lines
491 B
C#
20 lines
491 B
C#
namespace bts.BlueOrb;
|
|
|
|
using BCG;
|
|
|
|
public class ColumnMaskRow : IBlueRow {
|
|
readonly IBlueRow inputRow;
|
|
readonly (string? Name, int Index)[] columnMap;
|
|
|
|
public ColumnMaskRow(IBlueRow inputRow, (string? Name, int Index)[] columnMap, IBlueTableSchema schema) {
|
|
this.inputRow = inputRow;
|
|
this.columnMap = columnMap;
|
|
this.schema = schema;
|
|
}
|
|
|
|
public IBlueTableSchema schema { get; }
|
|
|
|
public object? this[int index] =>
|
|
inputRow[columnMap[index].Index];
|
|
}
|