@FunctionalInterface public interface EventNormalizationStep extends Serializable, Consumer<com.fasterxml.jackson.databind.node.ObjectNode>
Modifier and Type | Interface and Description |
---|---|
static class |
EventNormalizationStep.Validation |
Modifier and Type | Method and Description |
---|---|
static EventNormalizationStep |
eventId(Supplier<UUID> uuidSupplier)
Set the event if (meta.id) if not already set.
|
static EventNormalizationStep |
eventTime(Instant eventTime)
Set the event time (dt) if not already set.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
getOrSetMeta(com.fasterxml.jackson.databind.node.ObjectNode node) |
static EventNormalizationStep |
ingestionTime(SerializableClock clock)
Set the ingestionTime (meta.dt) if not already set.
|
static EventNormalizationStep |
schemaValidation(com.fasterxml.jackson.databind.node.ObjectNode jsonSchema,
String schemaUri)
Validates the event against the provided schema (must be the last step to apply).
|
static EventNormalizationStep |
streamAndSchema(String streamName,
String schemaUri)
Forcibly set the stream (meta.stream) and the schema URI.
|
static EventNormalizationStep ingestionTime(SerializableClock clock)
static EventNormalizationStep eventTime(Instant eventTime)
static EventNormalizationStep eventId(Supplier<UUID> uuidSupplier)
static EventNormalizationStep streamAndSchema(String streamName, String schemaUri)
static EventNormalizationStep schemaValidation(com.fasterxml.jackson.databind.node.ObjectNode jsonSchema, String schemaUri)
static com.fasterxml.jackson.databind.node.ObjectNode getOrSetMeta(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2025. All rights reserved.