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

Method delete

basex-core/src/main/java/org/basex/data/DiskData.java:317–323  ·  view source on GitHub ↗
(final int pre, final boolean text)

Source from the content-addressed store, hash-verified

315 // UPDATE OPERATIONS ============================================================================
316
317 @Override
318 protected void delete(final int pre, final boolean text) {
319 // old entry (offset or value)
320 final long old = textRef(pre);
321 // if old text was not inlined, fill unused space in text file with zero bytes
322 if(!Inline.inlined(old)) (text ? texts : values).free(old & Compress.COMPRESS - 1, 0);
323 }
324
325 @Override
326 protected void updateText(final int pre, final byte[] value, final int kind) {

Callers

nothing calls this directly

Calls 3

textRefMethod · 0.95
inlinedMethod · 0.95
freeMethod · 0.45

Tested by

no test coverage detected