org.jsimpledb.kv.simple.Del Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-kv-simple Show documentation
Show all versions of jsimpledb-kv-simple Show documentation
A couple of simplistic JSimpleDB key/value store implementations.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.kv.simple;
import org.jsimpledb.kv.KVStore;
/**
* Represents the deletion of a range of key/value pairs in a {@link SimpleKVTransaction}.
*/
class Del extends Mutation {
Del(byte[] min) {
super(min);
}
Del(byte[] min, byte[] max) {
super(min, max);
}
@Override
public void apply(KVStore kv) {
kv.removeRange(this.min, this.max);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy