public final class Header extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Header.Builder
Collects the members of a new
Header. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Header> |
READER
Reads a JSON object as a
Header. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Header.Builder |
builder() |
static Header |
fromJson(Object json)
A
Header with the members of a JSON object, all kept. |
String |
getCreatedAt()
The member
createdAt. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
Producer |
getProducer()
The member
producer. |
String |
getRegistryVersion()
The member
registryVersion. |
String |
getSourceEmbedding()
The member
sourceEmbedding. |
Header.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Header> READER
Header.public static Header fromJson(Object json)
Header with the members of a JSON object, all kept.public static Header.Builder builder()
public Header.Builder toBuilder()
public Producer getProducer()
producer. The producer of this document; for a merged document, the
merger. The producer of each analysis is in its analysis context. Null when absent; throws
IllegalStateException when the member holds another JSON type.public String getRegistryVersion()
registryVersion. The core registry version whose codes the document uses.
A consumer that supports an older range reports VERSION_REGISTRY_TOO_NEW, not a data error.
Null when absent; throws IllegalStateException when the member holds another JSON type.public String getSourceEmbedding()
sourceEmbedding. Whether and how source text is embedded. Registry group
'sourceEmbedding' (Section 12.3). Null when absent; throws IllegalStateException when the
member holds another JSON type.public String getCreatedAt()
createdAt. Creation time. Never part of any semantic digest (Section 5.3).
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.