public final class Fact extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Fact.Builder
Collects the members of a new
Fact. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Fact> |
READER
Reads a JSON object as a
Fact. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Fact.Builder |
builder() |
static Fact |
fromJson(Object json)
A
Fact with the members of a JSON object, all kept. |
DatasetDependency |
getDatasetDependency()
The member
datasetDependency. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
String |
getId()
The member
id. |
String |
getKind()
The member
kind. |
String |
getNumericKey()
The member
numericKey. |
Long |
getRef()
The member
ref. |
String |
getRole()
The member
role. |
Long |
getSourceRef()
The member
sourceRef. |
Long |
getTargetRef()
The member
targetRef. |
Fact.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Fact> READER
Fact.public static Fact fromJson(Object json)
Fact with the members of a JSON object, all kept.public static Fact.Builder builder()
public Fact.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 Long getSourceRef()
sourceRef. 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 Long getTargetRef()
targetRef. 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 getId()
id. Present when both endpoints have a portable identity (identity stage:
ID_MISSING / ID_UNEXPECTED). An id computed by FactIdV1: 'fact1-' followed by 64 lowercase
hexadecimal characters of a SHA-256 digest (algorithms/identity-v1.md). Null when absent;
throws IllegalStateException when the member holds another JSON type.public String getNumericKey()
numericKey. A 128-bit numeric key (NumericKeyV1): the first 16 bytes of
the SHA-256 digest of an id, big-endian, as 32 lowercase hexadecimal characters, which are
the first 32 hexadecimal characters of the id (Section 11.5; algorithms/identity-v1.md,
Section 5.10). Consumers keep the full id as the authority. Null when absent; throws
IllegalStateException when the member holds another JSON type.public DatasetDependency getDatasetDependency()
datasetDependency. 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.