internal StreamTableColWStreamName( StreamTableColPair pair, string optionalStreamName) { Pair = pair; OptionalStreamName = optionalStreamName; }
private StreamTableColPair FindTableColumnAcrossStreams(StreamTypeService streamTypeService, string columnName) { StreamTableColPair found = null; for (var i = 0; i < streamTypeService.EventTypes.Length; i++) { var type = streamTypeService.EventTypes[i]; var pair = FindTableColumnForType(i, type, columnName); if (pair == null) { continue; } if (found != null) { if (streamTypeService.IsStreamZeroUnambigous && found.StreamNum == 0) { continue; } throw new ExprValidationException("Ambiguous table column '" + columnName + "' should be prefixed by a stream name"); } found = pair; } return(found); }