github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/stats/table_statistic.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: sql/stats/table_statistic.proto
     3  
     4  package stats
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import github_com_cockroachdb_cockroach_pkg_sql_sqlbase "github.com/cockroachdb/cockroach/pkg/sql/sqlbase"
    11  import time "time"
    12  
    13  import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    14  
    15  import io "io"
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  var _ = time.Kitchen
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    28  
    29  // A TableStatisticProto object holds a statistic for a particular column or
    30  // group of columns. It mirrors the structure of the system.table_statistics
    31  // table. It is also used as the format in which table statistics are
    32  // serialized in a backup.
    33  type TableStatisticProto struct {
    34  	// The ID of the table.
    35  	TableID github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ID `protobuf:"varint,1,opt,name=table_id,json=tableId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/sql/sqlbase.ID" json:"table_id,omitempty"`
    36  	// The ID for this statistic.  It need not be globally unique,
    37  	// but must be unique for this table.
    38  	StatisticID uint64 `protobuf:"varint,2,opt,name=statistic_id,json=statisticId,proto3" json:"statistic_id,omitempty"`
    39  	// Optional user-defined name for the statistic.
    40  	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
    41  	// The column ID(s) for which this statistic is generated.
    42  	ColumnIDs []github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ColumnID `protobuf:"varint,4,rep,packed,name=column_ids,json=columnIds,proto3,casttype=github.com/cockroachdb/cockroach/pkg/sql/sqlbase.ColumnID" json:"column_ids,omitempty"`
    43  	// The time at which the statistic was created.
    44  	CreatedAt time.Time `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"`
    45  	// The total number of rows in the table.
    46  	RowCount uint64 `protobuf:"varint,6,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
    47  	// The estimated number of distinct values of the columns in ColumnIDs.
    48  	DistinctCount uint64 `protobuf:"varint,7,opt,name=distinct_count,json=distinctCount,proto3" json:"distinct_count,omitempty"`
    49  	// The number of rows that have a NULL in all of the columns in ColumnIDs.
    50  	NullCount uint64 `protobuf:"varint,8,opt,name=null_count,json=nullCount,proto3" json:"null_count,omitempty"`
    51  	// Histogram (if available)
    52  	HistogramData *HistogramData `protobuf:"bytes,9,opt,name=histogram_data,json=histogramData,proto3" json:"histogram_data,omitempty"`
    53  }
    54  
    55  func (m *TableStatisticProto) Reset()         { *m = TableStatisticProto{} }
    56  func (m *TableStatisticProto) String() string { return proto.CompactTextString(m) }
    57  func (*TableStatisticProto) ProtoMessage()    {}
    58  func (*TableStatisticProto) Descriptor() ([]byte, []int) {
    59  	return fileDescriptor_table_statistic_9d94c01803960c4f, []int{0}
    60  }
    61  func (m *TableStatisticProto) XXX_Unmarshal(b []byte) error {
    62  	return m.Unmarshal(b)
    63  }
    64  func (m *TableStatisticProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    65  	b = b[:cap(b)]
    66  	n, err := m.MarshalTo(b)
    67  	if err != nil {
    68  		return nil, err
    69  	}
    70  	return b[:n], nil
    71  }
    72  func (dst *TableStatisticProto) XXX_Merge(src proto.Message) {
    73  	xxx_messageInfo_TableStatisticProto.Merge(dst, src)
    74  }
    75  func (m *TableStatisticProto) XXX_Size() int {
    76  	return m.Size()
    77  }
    78  func (m *TableStatisticProto) XXX_DiscardUnknown() {
    79  	xxx_messageInfo_TableStatisticProto.DiscardUnknown(m)
    80  }
    81  
    82  var xxx_messageInfo_TableStatisticProto proto.InternalMessageInfo
    83  
    84  func init() {
    85  	proto.RegisterType((*TableStatisticProto)(nil), "cockroach.sql.stats.TableStatisticProto")
    86  }
    87  func (m *TableStatisticProto) Marshal() (dAtA []byte, err error) {
    88  	size := m.Size()
    89  	dAtA = make([]byte, size)
    90  	n, err := m.MarshalTo(dAtA)
    91  	if err != nil {
    92  		return nil, err
    93  	}
    94  	return dAtA[:n], nil
    95  }
    96  
    97  func (m *TableStatisticProto) MarshalTo(dAtA []byte) (int, error) {
    98  	var i int
    99  	_ = i
   100  	var l int
   101  	_ = l
   102  	if m.TableID != 0 {
   103  		dAtA[i] = 0x8
   104  		i++
   105  		i = encodeVarintTableStatistic(dAtA, i, uint64(m.TableID))
   106  	}
   107  	if m.StatisticID != 0 {
   108  		dAtA[i] = 0x10
   109  		i++
   110  		i = encodeVarintTableStatistic(dAtA, i, uint64(m.StatisticID))
   111  	}
   112  	if len(m.Name) > 0 {
   113  		dAtA[i] = 0x1a
   114  		i++
   115  		i = encodeVarintTableStatistic(dAtA, i, uint64(len(m.Name)))
   116  		i += copy(dAtA[i:], m.Name)
   117  	}
   118  	if len(m.ColumnIDs) > 0 {
   119  		dAtA2 := make([]byte, len(m.ColumnIDs)*10)
   120  		var j1 int
   121  		for _, num := range m.ColumnIDs {
   122  			for num >= 1<<7 {
   123  				dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80)
   124  				num >>= 7
   125  				j1++
   126  			}
   127  			dAtA2[j1] = uint8(num)
   128  			j1++
   129  		}
   130  		dAtA[i] = 0x22
   131  		i++
   132  		i = encodeVarintTableStatistic(dAtA, i, uint64(j1))
   133  		i += copy(dAtA[i:], dAtA2[:j1])
   134  	}
   135  	dAtA[i] = 0x2a
   136  	i++
   137  	i = encodeVarintTableStatistic(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)))
   138  	n3, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i:])
   139  	if err != nil {
   140  		return 0, err
   141  	}
   142  	i += n3
   143  	if m.RowCount != 0 {
   144  		dAtA[i] = 0x30
   145  		i++
   146  		i = encodeVarintTableStatistic(dAtA, i, uint64(m.RowCount))
   147  	}
   148  	if m.DistinctCount != 0 {
   149  		dAtA[i] = 0x38
   150  		i++
   151  		i = encodeVarintTableStatistic(dAtA, i, uint64(m.DistinctCount))
   152  	}
   153  	if m.NullCount != 0 {
   154  		dAtA[i] = 0x40
   155  		i++
   156  		i = encodeVarintTableStatistic(dAtA, i, uint64(m.NullCount))
   157  	}
   158  	if m.HistogramData != nil {
   159  		dAtA[i] = 0x4a
   160  		i++
   161  		i = encodeVarintTableStatistic(dAtA, i, uint64(m.HistogramData.Size()))
   162  		n4, err := m.HistogramData.MarshalTo(dAtA[i:])
   163  		if err != nil {
   164  			return 0, err
   165  		}
   166  		i += n4
   167  	}
   168  	return i, nil
   169  }
   170  
   171  func encodeVarintTableStatistic(dAtA []byte, offset int, v uint64) int {
   172  	for v >= 1<<7 {
   173  		dAtA[offset] = uint8(v&0x7f | 0x80)
   174  		v >>= 7
   175  		offset++
   176  	}
   177  	dAtA[offset] = uint8(v)
   178  	return offset + 1
   179  }
   180  func (m *TableStatisticProto) Size() (n int) {
   181  	if m == nil {
   182  		return 0
   183  	}
   184  	var l int
   185  	_ = l
   186  	if m.TableID != 0 {
   187  		n += 1 + sovTableStatistic(uint64(m.TableID))
   188  	}
   189  	if m.StatisticID != 0 {
   190  		n += 1 + sovTableStatistic(uint64(m.StatisticID))
   191  	}
   192  	l = len(m.Name)
   193  	if l > 0 {
   194  		n += 1 + l + sovTableStatistic(uint64(l))
   195  	}
   196  	if len(m.ColumnIDs) > 0 {
   197  		l = 0
   198  		for _, e := range m.ColumnIDs {
   199  			l += sovTableStatistic(uint64(e))
   200  		}
   201  		n += 1 + sovTableStatistic(uint64(l)) + l
   202  	}
   203  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)
   204  	n += 1 + l + sovTableStatistic(uint64(l))
   205  	if m.RowCount != 0 {
   206  		n += 1 + sovTableStatistic(uint64(m.RowCount))
   207  	}
   208  	if m.DistinctCount != 0 {
   209  		n += 1 + sovTableStatistic(uint64(m.DistinctCount))
   210  	}
   211  	if m.NullCount != 0 {
   212  		n += 1 + sovTableStatistic(uint64(m.NullCount))
   213  	}
   214  	if m.HistogramData != nil {
   215  		l = m.HistogramData.Size()
   216  		n += 1 + l + sovTableStatistic(uint64(l))
   217  	}
   218  	return n
   219  }
   220  
   221  func sovTableStatistic(x uint64) (n int) {
   222  	for {
   223  		n++
   224  		x >>= 7
   225  		if x == 0 {
   226  			break
   227  		}
   228  	}
   229  	return n
   230  }
   231  func sozTableStatistic(x uint64) (n int) {
   232  	return sovTableStatistic(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   233  }
   234  func (m *TableStatisticProto) Unmarshal(dAtA []byte) error {
   235  	l := len(dAtA)
   236  	iNdEx := 0
   237  	for iNdEx < l {
   238  		preIndex := iNdEx
   239  		var wire uint64
   240  		for shift := uint(0); ; shift += 7 {
   241  			if shift >= 64 {
   242  				return ErrIntOverflowTableStatistic
   243  			}
   244  			if iNdEx >= l {
   245  				return io.ErrUnexpectedEOF
   246  			}
   247  			b := dAtA[iNdEx]
   248  			iNdEx++
   249  			wire |= (uint64(b) & 0x7F) << shift
   250  			if b < 0x80 {
   251  				break
   252  			}
   253  		}
   254  		fieldNum := int32(wire >> 3)
   255  		wireType := int(wire & 0x7)
   256  		if wireType == 4 {
   257  			return fmt.Errorf("proto: TableStatisticProto: wiretype end group for non-group")
   258  		}
   259  		if fieldNum <= 0 {
   260  			return fmt.Errorf("proto: TableStatisticProto: illegal tag %d (wire type %d)", fieldNum, wire)
   261  		}
   262  		switch fieldNum {
   263  		case 1:
   264  			if wireType != 0 {
   265  				return fmt.Errorf("proto: wrong wireType = %d for field TableID", wireType)
   266  			}
   267  			m.TableID = 0
   268  			for shift := uint(0); ; shift += 7 {
   269  				if shift >= 64 {
   270  					return ErrIntOverflowTableStatistic
   271  				}
   272  				if iNdEx >= l {
   273  					return io.ErrUnexpectedEOF
   274  				}
   275  				b := dAtA[iNdEx]
   276  				iNdEx++
   277  				m.TableID |= (github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ID(b) & 0x7F) << shift
   278  				if b < 0x80 {
   279  					break
   280  				}
   281  			}
   282  		case 2:
   283  			if wireType != 0 {
   284  				return fmt.Errorf("proto: wrong wireType = %d for field StatisticID", wireType)
   285  			}
   286  			m.StatisticID = 0
   287  			for shift := uint(0); ; shift += 7 {
   288  				if shift >= 64 {
   289  					return ErrIntOverflowTableStatistic
   290  				}
   291  				if iNdEx >= l {
   292  					return io.ErrUnexpectedEOF
   293  				}
   294  				b := dAtA[iNdEx]
   295  				iNdEx++
   296  				m.StatisticID |= (uint64(b) & 0x7F) << shift
   297  				if b < 0x80 {
   298  					break
   299  				}
   300  			}
   301  		case 3:
   302  			if wireType != 2 {
   303  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   304  			}
   305  			var stringLen uint64
   306  			for shift := uint(0); ; shift += 7 {
   307  				if shift >= 64 {
   308  					return ErrIntOverflowTableStatistic
   309  				}
   310  				if iNdEx >= l {
   311  					return io.ErrUnexpectedEOF
   312  				}
   313  				b := dAtA[iNdEx]
   314  				iNdEx++
   315  				stringLen |= (uint64(b) & 0x7F) << shift
   316  				if b < 0x80 {
   317  					break
   318  				}
   319  			}
   320  			intStringLen := int(stringLen)
   321  			if intStringLen < 0 {
   322  				return ErrInvalidLengthTableStatistic
   323  			}
   324  			postIndex := iNdEx + intStringLen
   325  			if postIndex > l {
   326  				return io.ErrUnexpectedEOF
   327  			}
   328  			m.Name = string(dAtA[iNdEx:postIndex])
   329  			iNdEx = postIndex
   330  		case 4:
   331  			if wireType == 0 {
   332  				var v github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ColumnID
   333  				for shift := uint(0); ; shift += 7 {
   334  					if shift >= 64 {
   335  						return ErrIntOverflowTableStatistic
   336  					}
   337  					if iNdEx >= l {
   338  						return io.ErrUnexpectedEOF
   339  					}
   340  					b := dAtA[iNdEx]
   341  					iNdEx++
   342  					v |= (github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ColumnID(b) & 0x7F) << shift
   343  					if b < 0x80 {
   344  						break
   345  					}
   346  				}
   347  				m.ColumnIDs = append(m.ColumnIDs, v)
   348  			} else if wireType == 2 {
   349  				var packedLen int
   350  				for shift := uint(0); ; shift += 7 {
   351  					if shift >= 64 {
   352  						return ErrIntOverflowTableStatistic
   353  					}
   354  					if iNdEx >= l {
   355  						return io.ErrUnexpectedEOF
   356  					}
   357  					b := dAtA[iNdEx]
   358  					iNdEx++
   359  					packedLen |= (int(b) & 0x7F) << shift
   360  					if b < 0x80 {
   361  						break
   362  					}
   363  				}
   364  				if packedLen < 0 {
   365  					return ErrInvalidLengthTableStatistic
   366  				}
   367  				postIndex := iNdEx + packedLen
   368  				if postIndex > l {
   369  					return io.ErrUnexpectedEOF
   370  				}
   371  				var elementCount int
   372  				var count int
   373  				for _, integer := range dAtA {
   374  					if integer < 128 {
   375  						count++
   376  					}
   377  				}
   378  				elementCount = count
   379  				if elementCount != 0 && len(m.ColumnIDs) == 0 {
   380  					m.ColumnIDs = make([]github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ColumnID, 0, elementCount)
   381  				}
   382  				for iNdEx < postIndex {
   383  					var v github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ColumnID
   384  					for shift := uint(0); ; shift += 7 {
   385  						if shift >= 64 {
   386  							return ErrIntOverflowTableStatistic
   387  						}
   388  						if iNdEx >= l {
   389  							return io.ErrUnexpectedEOF
   390  						}
   391  						b := dAtA[iNdEx]
   392  						iNdEx++
   393  						v |= (github_com_cockroachdb_cockroach_pkg_sql_sqlbase.ColumnID(b) & 0x7F) << shift
   394  						if b < 0x80 {
   395  							break
   396  						}
   397  					}
   398  					m.ColumnIDs = append(m.ColumnIDs, v)
   399  				}
   400  			} else {
   401  				return fmt.Errorf("proto: wrong wireType = %d for field ColumnIDs", wireType)
   402  			}
   403  		case 5:
   404  			if wireType != 2 {
   405  				return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
   406  			}
   407  			var msglen int
   408  			for shift := uint(0); ; shift += 7 {
   409  				if shift >= 64 {
   410  					return ErrIntOverflowTableStatistic
   411  				}
   412  				if iNdEx >= l {
   413  					return io.ErrUnexpectedEOF
   414  				}
   415  				b := dAtA[iNdEx]
   416  				iNdEx++
   417  				msglen |= (int(b) & 0x7F) << shift
   418  				if b < 0x80 {
   419  					break
   420  				}
   421  			}
   422  			if msglen < 0 {
   423  				return ErrInvalidLengthTableStatistic
   424  			}
   425  			postIndex := iNdEx + msglen
   426  			if postIndex > l {
   427  				return io.ErrUnexpectedEOF
   428  			}
   429  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
   430  				return err
   431  			}
   432  			iNdEx = postIndex
   433  		case 6:
   434  			if wireType != 0 {
   435  				return fmt.Errorf("proto: wrong wireType = %d for field RowCount", wireType)
   436  			}
   437  			m.RowCount = 0
   438  			for shift := uint(0); ; shift += 7 {
   439  				if shift >= 64 {
   440  					return ErrIntOverflowTableStatistic
   441  				}
   442  				if iNdEx >= l {
   443  					return io.ErrUnexpectedEOF
   444  				}
   445  				b := dAtA[iNdEx]
   446  				iNdEx++
   447  				m.RowCount |= (uint64(b) & 0x7F) << shift
   448  				if b < 0x80 {
   449  					break
   450  				}
   451  			}
   452  		case 7:
   453  			if wireType != 0 {
   454  				return fmt.Errorf("proto: wrong wireType = %d for field DistinctCount", wireType)
   455  			}
   456  			m.DistinctCount = 0
   457  			for shift := uint(0); ; shift += 7 {
   458  				if shift >= 64 {
   459  					return ErrIntOverflowTableStatistic
   460  				}
   461  				if iNdEx >= l {
   462  					return io.ErrUnexpectedEOF
   463  				}
   464  				b := dAtA[iNdEx]
   465  				iNdEx++
   466  				m.DistinctCount |= (uint64(b) & 0x7F) << shift
   467  				if b < 0x80 {
   468  					break
   469  				}
   470  			}
   471  		case 8:
   472  			if wireType != 0 {
   473  				return fmt.Errorf("proto: wrong wireType = %d for field NullCount", wireType)
   474  			}
   475  			m.NullCount = 0
   476  			for shift := uint(0); ; shift += 7 {
   477  				if shift >= 64 {
   478  					return ErrIntOverflowTableStatistic
   479  				}
   480  				if iNdEx >= l {
   481  					return io.ErrUnexpectedEOF
   482  				}
   483  				b := dAtA[iNdEx]
   484  				iNdEx++
   485  				m.NullCount |= (uint64(b) & 0x7F) << shift
   486  				if b < 0x80 {
   487  					break
   488  				}
   489  			}
   490  		case 9:
   491  			if wireType != 2 {
   492  				return fmt.Errorf("proto: wrong wireType = %d for field HistogramData", wireType)
   493  			}
   494  			var msglen int
   495  			for shift := uint(0); ; shift += 7 {
   496  				if shift >= 64 {
   497  					return ErrIntOverflowTableStatistic
   498  				}
   499  				if iNdEx >= l {
   500  					return io.ErrUnexpectedEOF
   501  				}
   502  				b := dAtA[iNdEx]
   503  				iNdEx++
   504  				msglen |= (int(b) & 0x7F) << shift
   505  				if b < 0x80 {
   506  					break
   507  				}
   508  			}
   509  			if msglen < 0 {
   510  				return ErrInvalidLengthTableStatistic
   511  			}
   512  			postIndex := iNdEx + msglen
   513  			if postIndex > l {
   514  				return io.ErrUnexpectedEOF
   515  			}
   516  			if m.HistogramData == nil {
   517  				m.HistogramData = &HistogramData{}
   518  			}
   519  			if err := m.HistogramData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   520  				return err
   521  			}
   522  			iNdEx = postIndex
   523  		default:
   524  			iNdEx = preIndex
   525  			skippy, err := skipTableStatistic(dAtA[iNdEx:])
   526  			if err != nil {
   527  				return err
   528  			}
   529  			if skippy < 0 {
   530  				return ErrInvalidLengthTableStatistic
   531  			}
   532  			if (iNdEx + skippy) > l {
   533  				return io.ErrUnexpectedEOF
   534  			}
   535  			iNdEx += skippy
   536  		}
   537  	}
   538  
   539  	if iNdEx > l {
   540  		return io.ErrUnexpectedEOF
   541  	}
   542  	return nil
   543  }
   544  func skipTableStatistic(dAtA []byte) (n int, err error) {
   545  	l := len(dAtA)
   546  	iNdEx := 0
   547  	for iNdEx < l {
   548  		var wire uint64
   549  		for shift := uint(0); ; shift += 7 {
   550  			if shift >= 64 {
   551  				return 0, ErrIntOverflowTableStatistic
   552  			}
   553  			if iNdEx >= l {
   554  				return 0, io.ErrUnexpectedEOF
   555  			}
   556  			b := dAtA[iNdEx]
   557  			iNdEx++
   558  			wire |= (uint64(b) & 0x7F) << shift
   559  			if b < 0x80 {
   560  				break
   561  			}
   562  		}
   563  		wireType := int(wire & 0x7)
   564  		switch wireType {
   565  		case 0:
   566  			for shift := uint(0); ; shift += 7 {
   567  				if shift >= 64 {
   568  					return 0, ErrIntOverflowTableStatistic
   569  				}
   570  				if iNdEx >= l {
   571  					return 0, io.ErrUnexpectedEOF
   572  				}
   573  				iNdEx++
   574  				if dAtA[iNdEx-1] < 0x80 {
   575  					break
   576  				}
   577  			}
   578  			return iNdEx, nil
   579  		case 1:
   580  			iNdEx += 8
   581  			return iNdEx, nil
   582  		case 2:
   583  			var length int
   584  			for shift := uint(0); ; shift += 7 {
   585  				if shift >= 64 {
   586  					return 0, ErrIntOverflowTableStatistic
   587  				}
   588  				if iNdEx >= l {
   589  					return 0, io.ErrUnexpectedEOF
   590  				}
   591  				b := dAtA[iNdEx]
   592  				iNdEx++
   593  				length |= (int(b) & 0x7F) << shift
   594  				if b < 0x80 {
   595  					break
   596  				}
   597  			}
   598  			iNdEx += length
   599  			if length < 0 {
   600  				return 0, ErrInvalidLengthTableStatistic
   601  			}
   602  			return iNdEx, nil
   603  		case 3:
   604  			for {
   605  				var innerWire uint64
   606  				var start int = iNdEx
   607  				for shift := uint(0); ; shift += 7 {
   608  					if shift >= 64 {
   609  						return 0, ErrIntOverflowTableStatistic
   610  					}
   611  					if iNdEx >= l {
   612  						return 0, io.ErrUnexpectedEOF
   613  					}
   614  					b := dAtA[iNdEx]
   615  					iNdEx++
   616  					innerWire |= (uint64(b) & 0x7F) << shift
   617  					if b < 0x80 {
   618  						break
   619  					}
   620  				}
   621  				innerWireType := int(innerWire & 0x7)
   622  				if innerWireType == 4 {
   623  					break
   624  				}
   625  				next, err := skipTableStatistic(dAtA[start:])
   626  				if err != nil {
   627  					return 0, err
   628  				}
   629  				iNdEx = start + next
   630  			}
   631  			return iNdEx, nil
   632  		case 4:
   633  			return iNdEx, nil
   634  		case 5:
   635  			iNdEx += 4
   636  			return iNdEx, nil
   637  		default:
   638  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   639  		}
   640  	}
   641  	panic("unreachable")
   642  }
   643  
   644  var (
   645  	ErrInvalidLengthTableStatistic = fmt.Errorf("proto: negative length found during unmarshaling")
   646  	ErrIntOverflowTableStatistic   = fmt.Errorf("proto: integer overflow")
   647  )
   648  
   649  func init() {
   650  	proto.RegisterFile("sql/stats/table_statistic.proto", fileDescriptor_table_statistic_9d94c01803960c4f)
   651  }
   652  
   653  var fileDescriptor_table_statistic_9d94c01803960c4f = []byte{
   654  	// 459 bytes of a gzipped FileDescriptorProto
   655  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x3f, 0x6f, 0x9b, 0x40,
   656  	0x18, 0xc6, 0xb9, 0xc6, 0x89, 0xcd, 0xb9, 0x4e, 0x25, 0xd2, 0x81, 0xba, 0x2a, 0x87, 0x22, 0x55,
   657  	0x65, 0x3a, 0xa4, 0x64, 0xea, 0x58, 0xcc, 0x50, 0x3a, 0x55, 0x34, 0x53, 0xa5, 0x0a, 0x1d, 0x77,
   658  	0x14, 0xa3, 0x00, 0x67, 0x73, 0x87, 0xf2, 0x35, 0x32, 0xf7, 0x13, 0x79, 0xcc, 0x98, 0x89, 0xb6,
   659  	0xf8, 0x5b, 0x64, 0xaa, 0x38, 0x0c, 0xee, 0xd0, 0xa5, 0xdb, 0xfb, 0xe7, 0x77, 0xef, 0xf3, 0xbc,
   660  	0x2f, 0x40, 0x24, 0xb6, 0xb9, 0x2b, 0x24, 0x91, 0xc2, 0x95, 0x24, 0xce, 0x93, 0xa8, 0x8b, 0x33,
   661  	0x21, 0x33, 0x8a, 0x37, 0x15, 0x97, 0xdc, 0xb8, 0xa0, 0x9c, 0xde, 0x56, 0x9c, 0xd0, 0x35, 0x16,
   662  	0xdb, 0x1c, 0x2b, 0x74, 0xf9, 0x32, 0xe5, 0x29, 0x57, 0x7d, 0xb7, 0x8b, 0x7a, 0x74, 0x89, 0x52,
   663  	0xce, 0xd3, 0x3c, 0x71, 0x55, 0x16, 0xd7, 0xdf, 0x5d, 0x99, 0x15, 0x89, 0x90, 0xa4, 0xd8, 0x1c,
   664  	0x80, 0x57, 0x47, 0xb1, 0x75, 0x26, 0x24, 0x4f, 0x2b, 0x52, 0xf4, 0xad, 0xcb, 0x1f, 0x13, 0x78,
   665  	0x71, 0xd3, 0x19, 0xf8, 0x32, 0xe8, 0x7f, 0x56, 0xf2, 0xdf, 0xe0, 0xac, 0xf7, 0x95, 0x31, 0x13,
   666  	0xd8, 0xc0, 0x59, 0x78, 0x5e, 0xdb, 0xa0, 0xa9, 0x42, 0x03, 0xff, 0xa9, 0x41, 0xd7, 0x69, 0x26,
   667  	0xd7, 0x75, 0x8c, 0x29, 0x2f, 0xdc, 0xd1, 0x2a, 0x8b, 0x8f, 0xb1, 0xbb, 0xb9, 0x4d, 0x5d, 0x25,
   668  	0xbc, 0xcd, 0x63, 0x22, 0x12, 0x1c, 0xf8, 0xe1, 0x54, 0xcd, 0x0c, 0x98, 0x71, 0x05, 0x9f, 0x8f,
   669  	0x0b, 0x77, 0x12, 0xcf, 0x6c, 0xe0, 0x4c, 0xbc, 0x17, 0x6d, 0x83, 0xe6, 0xa3, 0x91, 0xc0, 0x0f,
   670  	0xe7, 0x23, 0x14, 0x30, 0xc3, 0x80, 0x93, 0x92, 0x14, 0x89, 0x79, 0x62, 0x03, 0x47, 0x0f, 0x55,
   671  	0x6c, 0x64, 0x10, 0x52, 0x9e, 0xd7, 0x45, 0x19, 0x65, 0x4c, 0x98, 0x13, 0xfb, 0xc4, 0x59, 0x78,
   672  	0x9f, 0xda, 0x06, 0xe9, 0x2b, 0x55, 0x0d, 0x7c, 0xf1, 0xd4, 0xa0, 0xf7, 0xff, 0x6d, 0x75, 0x78,
   673  	0x1d, 0xea, 0xfd, 0xf4, 0x80, 0x09, 0x63, 0x05, 0x21, 0xad, 0x12, 0x22, 0x13, 0x16, 0x11, 0x69,
   674  	0x9e, 0xda, 0xc0, 0x99, 0x5f, 0x2d, 0x71, 0x7f, 0x7a, 0x3c, 0x9c, 0x1e, 0xdf, 0x0c, 0xa7, 0xf7,
   675  	0x66, 0xbb, 0x06, 0x69, 0xf7, 0x3f, 0x11, 0x08, 0xf5, 0xc3, 0xbb, 0x0f, 0xd2, 0x78, 0x0d, 0xf5,
   676  	0x8a, 0xdf, 0x45, 0x94, 0xd7, 0xa5, 0x34, 0xcf, 0xba, 0xa5, 0xc3, 0x59, 0xc5, 0xef, 0x56, 0x5d,
   677  	0x6e, 0xbc, 0x85, 0xe7, 0xac, 0x5b, 0xb6, 0xa4, 0xf2, 0x40, 0x4c, 0x15, 0xb1, 0x18, 0xaa, 0x3d,
   678  	0xf6, 0x06, 0xc2, 0xb2, 0xce, 0xf3, 0x03, 0x32, 0x53, 0x88, 0xde, 0x55, 0xfa, 0x76, 0x00, 0xcf,
   679  	0xc7, 0x8f, 0x1c, 0x31, 0x22, 0x89, 0xa9, 0x2b, 0xaf, 0x97, 0xf8, 0x1f, 0x7f, 0x14, 0xfe, 0x38,
   680  	0xa0, 0x3e, 0x91, 0x24, 0x5c, 0xac, 0xff, 0x4e, 0xbd, 0x77, 0xbb, 0xdf, 0x96, 0xb6, 0x6b, 0x2d,
   681  	0xf0, 0xd0, 0x5a, 0xe0, 0xb1, 0xb5, 0xc0, 0xaf, 0xd6, 0x02, 0xf7, 0x7b, 0x4b, 0x7b, 0xd8, 0x5b,
   682  	0xda, 0xe3, 0xde, 0xd2, 0xbe, 0x9e, 0xaa, 0x29, 0xf1, 0x99, 0xda, 0xff, 0xfa, 0x4f, 0x00, 0x00,
   683  	0x00, 0xff, 0xff, 0xf1, 0xca, 0xa3, 0xde, 0xd6, 0x02, 0x00, 0x00,
   684  }