Assigns the specified index. @param type index to be opened @param index index instance
(final IndexType type, final ValueIndex index)
| 214 | * @param index index instance |
| 215 | */ |
| 216 | private void set(final IndexType type, final ValueIndex index) { |
| 217 | meta.dirty = true; |
| 218 | switch(type) { |
| 219 | case TEXT -> textIndex = index; |
| 220 | case ATTRIBUTE -> attrIndex = index; |
| 221 | case TOKEN -> tokenIndex = index; |
| 222 | case FULLTEXT -> ftIndex = index; |
| 223 | default -> throw Util.notExpected(); |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | @Override |
| 228 | public void startUpdate(final MainOptions opts) throws BaseXException { |
no test coverage detected