src/Cassandra/Host.cs
/// <summary>
/// Sets datacenter, rack and other basic information of a host.
/// </summary>
Sets datacenter, rack and other basic information of a host.
Sets datacenter rack and other basic information of a host .
internal void SetInfo(IRow row)
        {
            Datacenter = row.GetValue<string>("data_center");
            Rack = row.GetValue<string>("rack");
            Tokens = row.GetValue<IEnumerable<string>>("tokens") ?? new string[0];
            if (row.ContainsColumn("release_version"))
            {
                var releaseVersion = row.GetValue<string>("release_version");
                if (releaseVersion != null)
                {
                    CassandraVersion = Version.Parse(releaseVersion.Split('-')[0]);
                }
            }
        }
internal void SetInfo ( IRow row ) { Datacenter = row . GetValue < string > ( " " ) ; Rack = row . GetValue < string > ( " " ) ; Tokens = row . GetValue < IEnumerable < string > > ( " " ) ?? new string [ 0 ] ; if ( row . ContainsColumn ( " " ) ) { var releaseVersion = row . GetValue < string > ( " " ) ; if ( releaseVersion != null ) { CassandraVersion = Version . Parse ( releaseVersion . Split ( ' ' ) [ 0 ] ) ; } } }
Sets datacenter, rack and other basic information of a host.
Sets datacenter rack and other basic information of a host .
row
IRow