Class HitsEvent<TEvent>
java.lang.Object
co.elastic.clients.elasticsearch.eql.HitsEvent<TEvent>
- All Implemented Interfaces:
JsonpSerializable
public class HitsEvent<TEvent> extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHitsEvent.Builder<TEvent>Builder forHitsEvent. -
Method Summary
Modifier and Type Method Description static <TEvent> JsonpDeserializer<HitsEvent<TEvent>>createHitsEventDeserializer(JsonpDeserializer<TEvent> tEventDeserializer)Create a JSON deserializer for HitsEventjava.util.Map<java.lang.String,java.util.List<JsonData>>fields()API name:fieldsjava.lang.Stringid()Required - Unique identifier for the event.java.lang.Stringindex()Required - Name of the index containing the event.static <TEvent> HitsEvent<TEvent>of(java.util.function.Function<HitsEvent.Builder<TEvent>,ObjectBuilder<HitsEvent<TEvent>>> 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 <TEvent> voidsetupHitsEventDeserializer(ObjectDeserializer<HitsEvent.Builder<TEvent>> op, JsonpDeserializer<TEvent> tEventDeserializer)TEventsource()Required - Original JSON body passed for the event at index time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
of
public static <TEvent> HitsEvent<TEvent> of(java.util.function.Function<HitsEvent.Builder<TEvent>,ObjectBuilder<HitsEvent<TEvent>>> fn) -
index
public final java.lang.String index()Required - Name of the index containing the event.API name:
_index -
id
public final java.lang.String id()Required - Unique identifier for the event. This ID is only unique within the index.API name:
_id -
source
Required - Original JSON body passed for the event at index time.API name:
_source -
fields
API name:fields -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
createHitsEventDeserializer
public static <TEvent> JsonpDeserializer<HitsEvent<TEvent>> createHitsEventDeserializer(JsonpDeserializer<TEvent> tEventDeserializer)Create a JSON deserializer for HitsEvent -
setupHitsEventDeserializer
protected static <TEvent> void setupHitsEventDeserializer(ObjectDeserializer<HitsEvent.Builder<TEvent>> op, JsonpDeserializer<TEvent> tEventDeserializer)
-