private static Keywords GetIndex()

in src/Apache.IoTDB.Data/IoTDBConnectionStringBuilder.cs [366:406]


        private static Keywords GetIndex(string keyword)
            => !_keywords.TryGetValue(keyword, out var index)
                ? throw new ArgumentException($"Keyword Not Supported{keyword}")
                : index;

        private void Reset(Keywords index)
        {
            switch (index)
            {
                case Keywords.DataSource:
                    _dataSource = "127.0.0.1";
                    return;
                case Keywords.Password:
                    _password = "root";
                    return;
                case Keywords.Username:
                    _userName = "root";
                    return;
                case Keywords.Port:
                    _port=6667;
                    return;
                case Keywords.FetchSize:
                    _fetchSize = 1800;
                    return;
                case Keywords.Compression:
                    _enableRpcCompression = false;
                    return;
                case Keywords.PoolSize:
                    _poolSize = 8;
                    return;
                case Keywords.ZoneId:
                    _zoneId = "UTC+08:00";
                    return;
                case Keywords.TimeOut:
                    _timeOut = 10000;//10sec.
                    return;
                default:
                    Debug.Assert(false, "Unexpected keyword: " + index);
                    return;
            }
        }