public Read ( |
||
iprot | ||
Результат | void |
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Keyspace = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Column_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Comparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Subcomparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Comment = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Double) { Row_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Double) { Key_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Double) { Read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { Column_metadata = new List<ColumnDef>(); TList _list38 = iprot.ReadListBegin(); for( int _i39 = 0; _i39 < _list38.Count; ++_i39) { ColumnDef _elem40 = new ColumnDef(); _elem40 = new ColumnDef(); _elem40.Read(iprot); Column_metadata.Add(_elem40); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { Gc_grace_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.String) { Default_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.I32) { Id = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.I32) { Min_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.I32) { Max_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 19: if (field.Type == TType.I32) { Row_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.I32) { Key_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 24: if (field.Type == TType.Bool) { Replicate_on_write = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 25: if (field.Type == TType.Double) { Merge_shards_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 26: if (field.Type == TType.String) { Key_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 27: if (field.Type == TType.String) { Row_cache_provider = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 28: if (field.Type == TType.String) { Key_alias = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 29: if (field.Type == TType.String) { Compaction_strategy = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 30: if (field.Type == TType.Map) { { Compaction_strategy_options = new Dictionary<string, string>(); TMap _map41 = iprot.ReadMapBegin(); for( int _i42 = 0; _i42 < _map41.Count; ++_i42) { string _key43; string _val44; _key43 = iprot.ReadString(); _val44 = iprot.ReadString(); Compaction_strategy_options[_key43] = _val44; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 31: if (field.Type == TType.I32) { Row_cache_keys_to_save = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 32: if (field.Type == TType.Map) { { Compression_options = new Dictionary<string, string>(); TMap _map45 = iprot.ReadMapBegin(); for( int _i46 = 0; _i46 < _map45.Count; ++_i46) { string _key47; string _val48; _key47 = iprot.ReadString(); _val48 = iprot.ReadString(); Compression_options[_key47] = _val48; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Keyspace = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Column_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Comparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Subcomparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Comment = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Double) { Read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { Column_metadata = new List<ColumnDef>(); TList _list46 = iprot.ReadListBegin(); for( int _i47 = 0; _i47 < _list46.Count; ++_i47) { ColumnDef _elem48 = new ColumnDef(); _elem48 = new ColumnDef(); _elem48.Read(iprot); Column_metadata.Add(_elem48); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { Gc_grace_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.String) { Default_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.I32) { Id = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.I32) { Min_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.I32) { Max_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 24: if (field.Type == TType.Bool) { Replicate_on_write = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 26: if (field.Type == TType.String) { Key_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 28: if (field.Type == TType.String) { Key_alias = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 29: if (field.Type == TType.String) { Compaction_strategy = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 30: if (field.Type == TType.Map) { { Compaction_strategy_options = new Dictionary<string, string>(); TMap _map49 = iprot.ReadMapBegin(); for( int _i50 = 0; _i50 < _map49.Count; ++_i50) { string _key51; string _val52; _key51 = iprot.ReadString(); _val52 = iprot.ReadString(); Compaction_strategy_options[_key51] = _val52; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 32: if (field.Type == TType.Map) { { Compression_options = new Dictionary<string, string>(); TMap _map53 = iprot.ReadMapBegin(); for( int _i54 = 0; _i54 < _map53.Count; ++_i54) { string _key55; string _val56; _key55 = iprot.ReadString(); _val56 = iprot.ReadString(); Compression_options[_key55] = _val56; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 33: if (field.Type == TType.Double) { Bloom_filter_fp_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 34: if (field.Type == TType.String) { Caching = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 37: if (field.Type == TType.Double) { Dclocal_read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Double) { Row_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Double) { Key_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 19: if (field.Type == TType.I32) { Row_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.I32) { Key_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 21: if (field.Type == TType.I32) { Memtable_flush_after_mins = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 22: if (field.Type == TType.I32) { Memtable_throughput_in_mb = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 23: if (field.Type == TType.Double) { Memtable_operations_in_millions = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 25: if (field.Type == TType.Double) { Merge_shards_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 27: if (field.Type == TType.String) { Row_cache_provider = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 31: if (field.Type == TType.I32) { Row_cache_keys_to_save = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Keyspace = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Column_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Comparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Subcomparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Comment = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Double) { Read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { Column_metadata = new List <ColumnDef>(); TList _list46 = iprot.ReadListBegin(); for (int _i47 = 0; _i47 < _list46.Count; ++_i47) { ColumnDef _elem48 = new ColumnDef(); _elem48 = new ColumnDef(); _elem48.Read(iprot); Column_metadata.Add(_elem48); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { Gc_grace_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.String) { Default_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.I32) { Id = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.I32) { Min_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.I32) { Max_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 24: if (field.Type == TType.Bool) { Replicate_on_write = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 26: if (field.Type == TType.String) { Key_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 28: if (field.Type == TType.String) { Key_alias = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 29: if (field.Type == TType.String) { Compaction_strategy = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 30: if (field.Type == TType.Map) { { Compaction_strategy_options = new Dictionary <string, string>(); TMap _map49 = iprot.ReadMapBegin(); for (int _i50 = 0; _i50 < _map49.Count; ++_i50) { string _key51; string _val52; _key51 = iprot.ReadString(); _val52 = iprot.ReadString(); Compaction_strategy_options[_key51] = _val52; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 32: if (field.Type == TType.Map) { { Compression_options = new Dictionary <string, string>(); TMap _map53 = iprot.ReadMapBegin(); for (int _i54 = 0; _i54 < _map53.Count; ++_i54) { string _key55; string _val56; _key55 = iprot.ReadString(); _val56 = iprot.ReadString(); Compression_options[_key55] = _val56; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 33: if (field.Type == TType.Double) { Bloom_filter_fp_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 34: if (field.Type == TType.String) { Caching = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 37: if (field.Type == TType.Double) { Dclocal_read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Double) { Row_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Double) { Key_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 19: if (field.Type == TType.I32) { Row_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.I32) { Key_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 21: if (field.Type == TType.I32) { Memtable_flush_after_mins = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 22: if (field.Type == TType.I32) { Memtable_throughput_in_mb = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 23: if (field.Type == TType.Double) { Memtable_operations_in_millions = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 25: if (field.Type == TType.Double) { Merge_shards_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 27: if (field.Type == TType.String) { Row_cache_provider = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 31: if (field.Type == TType.I32) { Row_cache_keys_to_save = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Keyspace = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Column_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Comparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Subcomparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Comment = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Double) { Row_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Double) { Key_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Double) { Read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { Column_metadata = new List <ColumnDef>(); TList _list38 = iprot.ReadListBegin(); for (int _i39 = 0; _i39 < _list38.Count; ++_i39) { ColumnDef _elem40 = new ColumnDef(); _elem40 = new ColumnDef(); _elem40.Read(iprot); Column_metadata.Add(_elem40); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { Gc_grace_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.String) { Default_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.I32) { Id = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.I32) { Min_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.I32) { Max_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 19: if (field.Type == TType.I32) { Row_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.I32) { Key_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 24: if (field.Type == TType.Bool) { Replicate_on_write = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 25: if (field.Type == TType.Double) { Merge_shards_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 26: if (field.Type == TType.String) { Key_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 27: if (field.Type == TType.String) { Row_cache_provider = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 28: if (field.Type == TType.String) { Key_alias = iprot.ReadBinary(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 29: if (field.Type == TType.String) { Compaction_strategy = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 30: if (field.Type == TType.Map) { { Compaction_strategy_options = new Dictionary <string, string>(); TMap _map41 = iprot.ReadMapBegin(); for (int _i42 = 0; _i42 < _map41.Count; ++_i42) { string _key43; string _val44; _key43 = iprot.ReadString(); _val44 = iprot.ReadString(); Compaction_strategy_options[_key43] = _val44; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 31: if (field.Type == TType.I32) { Row_cache_keys_to_save = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 32: if (field.Type == TType.Map) { { Compression_options = new Dictionary <string, string>(); TMap _map45 = iprot.ReadMapBegin(); for (int _i46 = 0; _i46 < _map45.Count; ++_i46) { string _key47; string _val48; _key47 = iprot.ReadString(); _val48 = iprot.ReadString(); Compression_options[_key47] = _val48; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Keyspace = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Column_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Comparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Subcomparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Comment = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Double) { Row_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Double) { Key_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Double) { Read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { Column_metadata = new List<ColumnDef>(); TList _list25 = iprot.ReadListBegin(); for( int _i26 = 0; _i26 < _list25.Count; ++_i26) { ColumnDef _elem27 = new ColumnDef(); _elem27 = new ColumnDef(); _elem27.Read(iprot); Column_metadata.Add(_elem27); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { Gc_grace_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.String) { Default_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.I32) { Id = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.I32) { Min_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.I32) { Max_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 19: if (field.Type == TType.I32) { Row_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.I32) { Key_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 21: if (field.Type == TType.I32) { Memtable_flush_after_mins = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 22: if (field.Type == TType.I32) { Memtable_throughput_in_mb = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 23: if (field.Type == TType.Double) { Memtable_operations_in_millions = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Keyspace = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Column_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Comparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { Subcomparator_type = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Comment = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Double) { Row_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Double) { Key_cache_size = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Double) { Read_repair_chance = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { Column_metadata = new List <ColumnDef>(); TList _list25 = iprot.ReadListBegin(); for (int _i26 = 0; _i26 < _list25.Count; ++_i26) { ColumnDef _elem27 = new ColumnDef(); _elem27 = new ColumnDef(); _elem27.Read(iprot); Column_metadata.Add(_elem27); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { Gc_grace_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.String) { Default_validation_class = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.I32) { Id = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.I32) { Min_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.I32) { Max_compaction_threshold = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 19: if (field.Type == TType.I32) { Row_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.I32) { Key_cache_save_period_in_seconds = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 21: if (field.Type == TType.I32) { Memtable_flush_after_mins = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 22: if (field.Type == TType.I32) { Memtable_throughput_in_mb = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 23: if (field.Type == TType.Double) { Memtable_operations_in_millions = iprot.ReadDouble(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { this.keyspace = iprot.ReadString(); this.__isset.keyspace = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { this.name = iprot.ReadString(); this.__isset.name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { this.column_type = iprot.ReadString(); this.__isset.column_type = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { this.clock_type = iprot.ReadString(); this.__isset.clock_type = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { this.comparator_type = iprot.ReadString(); this.__isset.comparator_type = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { this.subcomparator_type = iprot.ReadString(); this.__isset.subcomparator_type = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.String) { this.reconciler = iprot.ReadString(); this.__isset.reconciler = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { this.comment = iprot.ReadString(); this.__isset.comment = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Double) { this.row_cache_size = iprot.ReadDouble(); this.__isset.row_cache_size = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Bool) { this.preload_row_cache = iprot.ReadBool(); this.__isset.preload_row_cache = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Double) { this.key_cache_size = iprot.ReadDouble(); this.__isset.key_cache_size = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.Double) { this.read_repair_chance = iprot.ReadDouble(); this.__isset.read_repair_chance = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { this.column_metadata = new List<ColumnDef>(); TList _list25 = iprot.ReadListBegin(); for( int _i26 = 0; _i26 < _list25.Count; ++_i26) { ColumnDef _elem27 = new ColumnDef(); _elem27 = new ColumnDef(); _elem27.Read(iprot); this.column_metadata.Add(_elem27); } iprot.ReadListEnd(); } this.__isset.column_metadata = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { this.gc_grace_seconds = iprot.ReadI32(); this.__isset.gc_grace_seconds = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }