Class Document
java.lang.Object
co.elastic.clients.elasticsearch.ingest.simulate.Document
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class Document extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.BuilderBuilder forDocument. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Document>_DESERIALIZERJson deserializer forDocument -
Method Summary
Modifier and Type Method Description java.lang.Stringid()API name:_idjava.lang.Stringindex()API name:_indexstatic Documentof(java.util.function.Function<Document.Builder,ObjectBuilder<Document>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupDocumentDeserializer(ObjectDeserializer<Document.Builder> op)JsonDatasource()Required - API name:_sourcejava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forDocument
-
-
Method Details
-
of
public static Document of(java.util.function.Function<Document.Builder,ObjectBuilder<Document>> fn) -
id
@Nullable public final java.lang.String id()API name:_id -
index
@Nullable public final java.lang.String index()API name:_index -
source
Required - API name:_source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupDocumentDeserializer
-