io.permazen.jsck.InvalidValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-jsck Show documentation
Show all versions of permazen-jsck Show documentation
Permazen analog to UNIX fsck(8) command for checking the consistency of, and repairing any corruption in, a Permazen key/value database
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.jsck;
import io.permazen.kv.KVPair;
/**
* Represents an invalid/unexpected value in a Permazen key/value database under an otherwise valid key.
*/
public class InvalidValue extends Issue {
public InvalidValue(KVPair pair) {
this(pair, null);
}
public InvalidValue(KVPair pair, byte[] newValue) {
this(pair.getKey(), pair.getValue(), newValue);
}
public InvalidValue(byte[] key, byte[] oldValue) {
this(key, oldValue, null);
}
public InvalidValue(byte[] key, byte[] oldValue, byte[] newValue) {
this("invalid value", key, oldValue, newValue);
}
public InvalidValue(String description, byte[] key, byte[] oldValue, byte[] newValue) {
super(description, key, oldValue, newValue);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy