Class Document
java.lang.Object
co.elastic.clients.elasticsearch.ingest.simulate.Document
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class Document extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Document.Builder
Builder forDocument
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Document>
_DESERIALIZER
Json deserializer forDocument
-
Constructor Summary
Constructors Constructor Description Document(Document.Builder builder)
Document(java.util.function.Function<Document.Builder,Document.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
id()
API name:_id
java.lang.String
index()
API name:_index
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupDocumentDeserializer(DelegatingDeserializer<Document.Builder> op)
JsonData
source()
Required - API name:_source
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forDocument
-
-
Constructor Details
-
Document
-
Document
-
-
Method Details
-
id
@Nullable public java.lang.String id()API name:_id
-
index
@Nullable public java.lang.String index()API name:_index
-
source
Required - API name:_source
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupDocumentDeserializer
-