(table *storepb.TableMetadata)
| 867 | } |
| 868 | |
| 869 | func buildIndexesMetadata(table *storepb.TableMetadata) []*IndexMetadata { |
| 870 | if table == nil { |
| 871 | return nil |
| 872 | } |
| 873 | |
| 874 | var result []*IndexMetadata |
| 875 | |
| 876 | for _, index := range table.Indexes { |
| 877 | result = append(result, &IndexMetadata{ |
| 878 | tableProto: table, |
| 879 | proto: index, |
| 880 | }) |
| 881 | } |
| 882 | |
| 883 | return result |
| 884 | } |
| 885 | |
| 886 | // buildTablesMetadataRecursive builds the partition tables recursively, |
| 887 | // returns the table metadata and the partition names, the length of them must be the same. |
no outgoing calls
no test coverage detected