public final class FactCandidate extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
FactCandidate.Builder
Collects the members of a new
FactCandidate. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<FactCandidate> |
READER
Reads a JSON object as a
FactCandidate. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static FactCandidate.Builder |
builder() |
static FactCandidate |
fromJson(Object json)
A
FactCandidate with the members of a JSON object, all kept. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
String |
getKind()
The member
kind. |
List<CandidateOutcome> |
getOutcomes()
The member
outcomes. |
Long |
getRef()
The member
ref. |
String |
getRole()
The member
role. |
CandidateEnd |
getSource()
The member
source. |
CandidateEnd |
getTarget()
The member
target. |
FactCandidate.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<FactCandidate> READER
FactCandidate.public static FactCandidate fromJson(Object json)
FactCandidate with the members of a JSON object, all kept.public static FactCandidate.Builder builder()
public FactCandidate.Builder toBuilder()
public Long getRef()
ref. A document-local reference: an integer that is unique across the
whole document (one reference space for every object that carries a ref). Local references
are assigned after merging and have no meaning outside the document (Sections 6.1 and 13).
Null when absent; throws IllegalStateException when the member holds another JSON type.public String getKind()
kind. A Fact kind. Registry group 'factKinds' (Section 3.3). Null when
absent; throws IllegalStateException when the member holds another JSON type.public String getRole()
role. The role of a ROW Fact. Registry group 'rowRoles' (Section 3.3).
Null when absent; throws IllegalStateException when the member holds another JSON type.public CandidateEnd getSource()
source. Null when absent; throws IllegalStateException when the member
holds another JSON type.public CandidateEnd getTarget()
target. Null when absent; throws IllegalStateException when the member
holds another JSON type.public List<CandidateOutcome> getOutcomes()
outcomes. The outcomes of the candidate, present only when they are not
the implied ones (each pair of a source member and a target member on its own). Each outcome
is the set of (source, target) pairs that hold together under one choice of the ambiguous
references the candidate depends on; exactly one outcome holds when every candidate-set end
is COMPLETE, at most one otherwise (algorithms/fold-v1.md, Section 7.1). Null when absent;
throws IllegalStateException when the member holds another JSON type.public Map<String,Extension> getExtensions()
extensions. Extension data keyed by namespace. Every core object may carry
it; it never takes part in a core identity. Null when absent; throws IllegalStateException
when the member holds another JSON type.