(spatial *v1pb.SpatialIndexConfig)
| 781 | } |
| 782 | |
| 783 | func convertV1SpatialIndexConfig(spatial *v1pb.SpatialIndexConfig) *storepb.SpatialIndexConfig { |
| 784 | if spatial == nil { |
| 785 | return nil |
| 786 | } |
| 787 | return &storepb.SpatialIndexConfig{ |
| 788 | Method: spatial.Method, |
| 789 | Tessellation: convertV1TessellationConfig(spatial.Tessellation), |
| 790 | Storage: convertV1StorageConfig(spatial.Storage), |
| 791 | Dimensional: convertV1DimensionalConfig(spatial.Dimensional), |
| 792 | } |
| 793 | } |
| 794 | |
| 795 | func convertStoreTessellationConfig(tessellation *storepb.TessellationConfig) *v1pb.TessellationConfig { |
| 796 | if tessellation == nil { |
no test coverage detected