24 lines
522 B
C#
24 lines
522 B
C#
namespace bts.BlueOrb;
|
|
|
|
using BCG;
|
|
|
|
public class IndexRow : IBlueRow {
|
|
readonly IBlueRow inputRow;
|
|
readonly int id;
|
|
readonly int idIndex;
|
|
|
|
public IndexRow(IBlueRow inputRow, int id, int idIndex, IBlueTableSchema schema) {
|
|
this.inputRow = inputRow;
|
|
this.id = id;
|
|
this.idIndex = idIndex;
|
|
this.schema = schema;
|
|
}
|
|
|
|
public IBlueRow InputRow => inputRow;
|
|
|
|
public IBlueTableSchema schema { get; }
|
|
|
|
public object? this[int index] =>
|
|
index == idIndex ? id : inputRow[index];
|
|
}
|