public abstract class Issue extends Object
Issue
s are specific to a single key/value pair in the database.
Modifier | Constructor and Description |
---|---|
protected |
Issue(String description,
byte[] key,
byte[] oldValue,
byte[] newValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(KVStore kvstore)
Apply the fix for this issue to the given
KVStore . |
boolean |
equals(Object obj) |
byte[] |
getKey()
Get the databse key.
|
byte[] |
getNewValue()
Get the replacement value, if any.
|
byte[] |
getOldValue()
Get the original value, if any.
|
int |
hashCode() |
Issue |
setDetail(io.permazen.jsck.Index index,
String detail) |
Issue |
setDetail(ObjId id,
SchemaCompositeIndex index,
String detail) |
Issue |
setDetail(ObjId id,
SchemaField field,
String detail) |
Issue |
setDetail(ObjId id,
String detail) |
Issue |
setDetail(String detail) |
String |
toString() |
protected Issue(String description, byte[] key, byte[] oldValue, byte[] newValue)
description
- short description of the issuekey
- key of invalid key/value pairoldValue
- the original, invalid value for key
, or null if key
was missing or don't carenewValue
- the corrected replacement value for key
, or null if key
should be deletedIllegalArgumentException
- if key
is nullIllegalArgumentException
- if oldValue
and newValue
are equalpublic byte[] getKey()
public byte[] getOldValue()
public byte[] getNewValue()
public void apply(KVStore kvstore)
KVStore
.
This overwrites the key/value pair with the new value, or deletes it if getNewValue()
is null.
kvstore
- target key/value storeIllegalArgumentException
- if kvstore
is nullpublic Issue setDetail(ObjId id, SchemaField field, String detail)
public Issue setDetail(ObjId id, SchemaCompositeIndex index, String detail)
Copyright © 2022. All rights reserved.