public final class AnalysisContext extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
AnalysisContext.Builder
Collects the members of a new
AnalysisContext. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<AnalysisContext> |
READER
Reads a JSON object as a
AnalysisContext. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static AnalysisContext.Builder |
builder() |
static AnalysisContext |
fromJson(Object json)
A
AnalysisContext with the members of a JSON object, all kept. |
Map<String,Object> |
getCapabilities()
The member
capabilities. |
String |
getDependencySnapshotId()
The member
dependencySnapshotId. |
Dialect |
getDialect()
The member
dialect. |
String |
getEffectiveOptionsDigest()
The member
effectiveOptionsDigest. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
IdentifierPolicy |
getIdentifierPolicy()
The member
identifierPolicy. |
Metadata |
getMetadata()
The member
metadata. |
String |
getPathProfile()
The member
pathProfile. |
Producer |
getProducer()
The member
producer. |
Redaction |
getRedaction()
The member
redaction. |
Long |
getRef()
The member
ref. |
AnalysisContext.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<AnalysisContext> READER
AnalysisContext.public static AnalysisContext fromJson(Object json)
AnalysisContext with the members of a JSON object, all kept.public static AnalysisContext.Builder builder()
public AnalysisContext.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 Producer getProducer()
producer. The producer that ran the analysis. Null when absent; throws
IllegalStateException when the member holds another JSON type.public Dialect getDialect()
dialect. Null when absent; throws IllegalStateException when the member
holds another JSON type.public IdentifierPolicy getIdentifierPolicy()
identifierPolicy. Null when absent; throws IllegalStateException when the
member holds another JSON type.public String getDependencySnapshotId()
dependencySnapshotId. The immutable dependency snapshot used: identifier
rules, Unicode version, rule switches, collations, identity algorithms, registry and profiles
(Section 14.3, item 3). An id computed by DependencySnapshotIdV1: 'snap1-' followed by 64
lowercase hexadecimal characters of a SHA-256 digest (algorithms/identity-v1.md, Section 5.9;
snapshots/FORMAT.md). Null when absent; throws IllegalStateException when the member holds
another JSON type.public String getPathProfile()
pathProfile. The semantic path profile of every path the analysis wrote;
'sqllr-path-1' for the profile of this specification, otherwise a producer-declared id. Null
when absent; throws IllegalStateException when the member holds another JSON type.public String getEffectiveOptionsDigest()
effectiveOptionsDigest. SHA-256 of the canonical JSON (JCS mode) of the
effective analysis options object after resolution; the digest of an empty options object
when there are none. The options themselves belong to the module reproducibility. A SHA-256
digest: 64 lowercase hexadecimal characters. Null when absent; throws IllegalStateException
when the member holds another JSON type.public Metadata getMetadata()
metadata. Null when absent; throws IllegalStateException when the member
holds another JSON type.public Map<String,Object> getCapabilities()
capabilities. The capability matrix: one value per feature. VALUE and ROW
are always declared; a producer that does not support ROW declares UNSUPPORTED and never
presents the absence of ROW Facts as COMPLETE (Section 5.3). Null when absent; throws
IllegalStateException when the member holds another JSON type.public Redaction getRedaction()
redaction. 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.