using System.Collections.Generic; using System.Linq; using System.Text; namespace InfluxDB.Client.Core.Flux.Domain { /// /// This class represents table structure of Flux CSV Response. ///Specification. /// public class FluxTable { /// /// Table column's labels and types. /// public List Columns { get; } = new List(); /// /// Table records. /// public List Records { get; } = new List(); /// /// A table's group key is subset of the entire columns dataset that assigned to the table. /// As such, all records within a table will have the same values for each column that is part of the group key. /// /// public List GetGroupKey() { return Columns.Where(column => column.Group).ToList(); } public override string ToString() { return new StringBuilder(GetType().Name + "[") .Append("columns=" + Columns.Count) .Append(", records=" + Records.Count) .Append("]") .ToString(); } } }