io.camunda.zeebe.process.test.engine.db.DbNullKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zeebe-process-test-engine Show documentation
Show all versions of zeebe-process-test-engine Show documentation
Test engine for running process tests. This a minimized version of the real Zeebe engine and
should be used for testing purposes only.
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* except in compliance with the Zeebe Community License 1.1.
*/
package io.camunda.zeebe.process.test.engine.db;
import io.camunda.zeebe.db.DbKey;
import org.agrona.DirectBuffer;
import org.agrona.MutableDirectBuffer;
/** This class is only used internally to search the database with the same column family prefix */
final class DbNullKey implements DbKey {
static final DbNullKey INSTANCE = new DbNullKey();
private DbNullKey() {}
@Override
public void wrap(final DirectBuffer buffer, final int offset, final int length) {
// do nothing
}
@Override
public int getLength() {
return 0;
}
@Override
public void write(final MutableDirectBuffer buffer, final int offset) {
// do nothing
}
}