public final class RecoveryMetadata extends Object
Normal builds use empty(). Recovery-capable validators add one
RecoveryMetadata.Entry per recovered subject instead of weakening the invariants of
ordinary Semantic IR entities. The subject kind and id are stable,
non-localized identifiers owned by the producer (for example
"JOIN" and "statement:0/join:1"); consumers must not parse
user-visible diagnostic messages to recover this association.
API status: advanced/preview. This is part of the atomic low-level builder protocol, not Join Analysis Consumption Profile v1.
| Modifier and Type | Class and Description |
|---|---|
static class |
RecoveryMetadata.Entry
One recovered-subject to root-diagnostic association.
|
| Modifier and Type | Method and Description |
|---|---|
static RecoveryMetadata |
empty()
Return the shared empty metadata value used by normal builds.
|
boolean |
equals(Object o) |
List<RecoveryMetadata.Entry> |
getEntries()
Recovery associations in deterministic producer order.
|
int |
hashCode() |
boolean |
isEmpty() |
static RecoveryMetadata |
of(List<RecoveryMetadata.Entry> entries)
Construct metadata from recovered-subject associations.
|
String |
toString() |
public static RecoveryMetadata empty()
public static RecoveryMetadata of(List<RecoveryMetadata.Entry> entries)
empty() when entries is emptypublic List<RecoveryMetadata.Entry> getEntries()
public boolean isEmpty()