/** * Caller must hold db commit lock. */ void pushCommit() throws IOException { doPush(OP_COMMIT); }
/** * Caller must hold db commit lock. */ final void doScopeEnter() throws IOException { doPush(OP_SCOPE_ENTER); }
/** * Caller must hold db commit lock. */ final void doScopeEnter() throws IOException { doPush(OP_SCOPE_ENTER); }
/** * Caller must hold db commit lock. */ void pushCommit() throws IOException { doPush(OP_COMMIT); }
/** * Caller must hold db commit lock. */ private void doPush(final byte op) throws IOException { doPush(op, EMPTY_BYTES, 0, 0, 0); }
/** * Caller must hold db commit lock. */ void pushCustom(byte[] message) throws IOException { doPush(OP_CUSTOM, message); }
/** * Caller must hold db commit lock. */ private void doPush(final byte op, final byte[] payload, final int off, final int len, final int varIntLen) throws IOException { doPush(op, payload, off, len, varIntLen, 0); }
/** * Caller must hold db commit lock. */ void pushPrepare() throws IOException { doPush(OP_PREPARE); }
/** * Caller must hold db commit lock. */ private void doPush(final byte op) throws IOException { doPush(op, EMPTY_BYTES, 0, 0, 0); }
/** * Caller must hold db commit lock. */ private void doPush(final byte op, final byte[] payload) throws IOException { doPush(op, payload, 0, payload.length); }
/** * Caller must hold db commit lock. */ private void doPush(final byte op) throws IOException { doPush(op, EMPTY_BYTES, 0, 0, 0); }
/** * Caller must hold db commit lock. */ final void doScopeEnter() throws IOException { doPush(OP_SCOPE_ENTER); }
/** * Caller must hold db commit lock. */ void pushCommit() throws IOException { doPush(OP_COMMIT); }
private void setActiveIndexId(long indexId) throws IOException { long activeIndexId = mActiveIndexId; if (indexId != activeIndexId) { if (activeIndexId != 0) { byte[] payload = new byte[8]; encodeLongLE(payload, 0, activeIndexId); doPush(OP_INDEX, payload, 0, 8, 1); } mActiveIndexId = indexId; } }
private void setActiveIndexId(long indexId) throws IOException { long activeIndexId = mActiveIndexId; if (indexId != activeIndexId) { if (activeIndexId != 0) { byte[] payload = new byte[8]; encodeLongLE(payload, 0, activeIndexId); doPush(OP_INDEX, payload, 0, 8, 1); } mActiveIndexId = indexId; } }
/** * Caller must hold db commit lock. */ private void doPush(final byte op, final byte[] payload, final int off, final int len) throws IOException { doPush(op, payload, off, len, calcUnsignedVarIntLength(len), 0); }
/** * Caller must hold db commit lock. */ void pushUncreate(long indexId, byte[] key) throws IOException { setActiveIndexIdAndKey(indexId, key); doPush(OP_UNCREATE); }
void pushCustom(byte[] message) throws IOException { int len = message.length; doPush(OP_CUSTOM, message, 0, len, calcUnsignedVarIntLength(len)); }
private void pushIndexId(long indexId) throws IOException { byte[] payload = new byte[8]; encodeLongLE(payload, 0, indexId); doPush(OP_INDEX, payload, 0, 8, 1); }
/** * Caller must hold db commit lock. */ final void pushUninsert(final long indexId, byte[] key) throws IOException { setActiveIndexId(indexId); doPush(OP_UNINSERT, key, 0, key.length, calcUnsignedVarIntLength(key.length)); }