public final class CandidateSet extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
CandidateSet.Builder
Collects the members of a new
CandidateSet. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<CandidateSet> |
READER
Reads a JSON object as a
CandidateSet. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static CandidateSet.Builder |
builder() |
static CandidateSet |
fromJson(Object json)
A
CandidateSet with the members of a JSON object, all kept. |
List<Long> |
getCandidateRefs()
The member
candidateRefs. |
CandidateDecision |
getDecidedBy()
The member
decidedBy. |
Map<String,Object> |
getDetails()
The member
details. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
String |
getMembership()
The member
membership. |
Long |
getRef()
The member
ref. |
String |
getWrittenText()
The member
writtenText. |
CandidateSet.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<CandidateSet> READER
CandidateSet.public static CandidateSet fromJson(Object json)
CandidateSet with the members of a JSON object, all kept.public static CandidateSet.Builder builder()
public CandidateSet.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 List<Long> getCandidateRefs()
candidateRefs. Endpoints the reference may denote; empty for an UNRESOLVED
reference. In explainGraph.candidateSets, the candidates of a reference to a column of an
intermediate result are ExplainGraph nodes. Null when absent; throws IllegalStateException
when the member holds another JSON type.public String getMembership()
membership. Whether a candidate set lists every possible binding. Registry
group 'candidateSetCompleteness' (Sections 3.2 and 4.3). Null when absent; throws
IllegalStateException when the member holds another JSON type.public String getWrittenText()
writtenText. The reference as written, after redaction. Null when absent;
throws IllegalStateException when the member holds another JSON type.public CandidateDecision getDecidedBy()
decidedBy. In explainGraph.candidateSets and at the ends of
FactCandidates, never in the document's candidateSets: the reference is decided by another
reference, and the set says how (algorithms/fold-v1.md, Sections 4.3 and 7.1). Null when
absent; throws IllegalStateException when the member holds another JSON type.public Map<String,Object> getDetails()
details. Candidate set details. Module evidence, defined later; open. 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.