All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jsimpledb.kv.simple.Del Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version

/*
 * 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