Sequential sets indexes to sequential row-wise indexes into table
()
| 74 | |
| 75 | // Sequential sets indexes to sequential row-wise indexes into table |
| 76 | func (ix *IndexView) Sequential() { //types:add |
| 77 | if ix.Table == nil || ix.Table.Rows <= 0 { |
| 78 | ix.Indexes = nil |
| 79 | return |
| 80 | } |
| 81 | ix.Indexes = make([]int, ix.Table.Rows) |
| 82 | for i := range ix.Indexes { |
| 83 | ix.Indexes[i] = i |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | // Permuted sets indexes to a permuted order -- if indexes already exist |
| 88 | // then existing list of indexes is permuted, otherwise a new set of |
no outgoing calls
no test coverage detected