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

Method remove

basex-core/src/main/java/org/basex/index/IdPreMap.java:362–373  ·  view source on GitHub ↗

Removes a records from the table and the ID index. @param s start index of records in the table (inclusive) @param e end index of records in the table (inclusive)

(final int s, final int e)

Source from the content-addressed store, hash-verified

360 * @param e end index of records in the table (inclusive)
361 */
362 private void remove(final int s, final int e) {
363 if(s <= e) {
364 final int last = e + 1;
365 final int length = rows - last;
366 Array.copy(pres, last, length, pres, s);
367 Array.copy(fids, last, length, fids, s);
368 Array.copy(nids, last, length, nids, s);
369 Array.copy(incs, last, length, incs, s);
370 Array.copy(oids, last, length, oids, s);
371 rows -= last - s;
372 }
373 }
374
375 @Override
376 public String toString() {

Callers 1

deleteMethod · 0.95

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected