Class HitsEvent<TEvent>
java.lang.Object
co.elastic.clients.elasticsearch.eql.HitsEvent<TEvent>
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<HitsEvent<Object>>Json deserializer forHitsEventbased on named deserializers provided by the callingJsonMapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic <TEvent> JsonpDeserializer<HitsEvent<TEvent>>createHitsEventDeserializer(JsonpDeserializer<TEvent> tEventDeserializer) Create a JSON deserializer for HitsEventfields()API name:fieldsfinal Stringid()Required - Unique identifier for the event.final Stringindex()Required - Name of the index containing the event.final Booleanmissing()Set totruefor events in a timespan-constrained sequence that do not meet a given condition.static <TEvent> HitsEvent<TEvent>of(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) final TEventsource()Required - Original JSON body passed for the event at index time.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forHitsEventbased on named deserializers provided by the callingJsonMapper.
-
-
Method Details
-
of
public static <TEvent> HitsEvent<TEvent> of(Function<HitsEvent.Builder<TEvent>, ObjectBuilder<HitsEvent<TEvent>>> fn) -
index
Required - Name of the index containing the event.API name:
_index -
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 -
missing
Set totruefor events in a timespan-constrained sequence that do not meet a given condition.API name:
missing -
fields
API name:fields -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
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)
-