MCPcopy Create free account
hub / github.com/BaseXdb/basex / set

Method set

basex-core/src/main/java/org/basex/data/DiskData.java:216–225  ·  view source on GitHub ↗

Assigns the specified index. @param type index to be opened @param index index instance

(final IndexType type, final ValueIndex index)

Source from the content-addressed store, hash-verified

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 {

Callers 2

closeMethod · 0.95
createIndexMethod · 0.95

Calls 1

notExpectedMethod · 0.95

Tested by

no test coverage detected