MCPcopy Index your code

hub / github.com/cloudevents/sdk-java / functions

Functions1,321 in github.com/cloudevents/sdk-java

↓ 385 callersMethodassertThat
(Result result)
sql/src/test/java/io/cloudevents/sql/asserts/MyAssertions.java:7
↓ 348 callersMethodadd
(String k, String v)
http/basic/src/test/java/io/cloudevents/http/HttpMessageReaderWriterTest.java:241
↓ 225 callersMethodtoString
()
api/src/main/java/io/cloudevents/SpecVersion.java:63
↓ 202 callersMethodbuild
Build the event @return the built event @throws IllegalStateException if a required attribute is not configured
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:250
↓ 182 callersMethodheader
(String key, String value)
kafka/src/test/java/io/cloudevents/kafka/KafkaUtils.java:35
↓ 98 callersMethodwithExtension
Set an extension with provided key and string value @param key key of the extension attribute @param value value of the extension attribute @return
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:173
↓ 96 callersMethodcreate
(Interval interval, String expression)
sql/src/main/java/io/cloudevents/sql/EvaluationException.java:16
↓ 80 callersMethodget
(@PathParam("username") String username)
examples/restful-ws-quarkus/src/main/java/io/cloudevents/examples/quarkus/resources/UserResource.java:35
↓ 80 callersMethodv1
@return a new CloudEvent v1 builder
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:262
↓ 77 callersMethodwithSource
Set the {@code source} of the event @param source source of the event @return self
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:48
↓ 76 callersMethodproperty
(final String name, final String value)
rocketmq/src/test/java/io/cloudevents/rocketmq/RocketmqMessageFactoryTest.java:221
↓ 76 callersMethodproperty
(final String name, final Object value)
amqp/src/test/java/io/cloudevents/amqp/ProtonAmqpMessageFactoryTest.java:228
↓ 75 callersMethodwithId
Set the {@code id} of the event @param id id of the event @return self
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:40
↓ 75 callersMethodwithType
Set the {@code type} of the event @param type type of the event @return self
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:56
↓ 67 callersMethodwriteTime
Convert a {@link OffsetDateTime} to a RFC3339 compliant {@link String}. @param time the time to write as {@link String} @return the serialized time @
api/src/main/java/io/cloudevents/types/Time.java:70
↓ 66 callersMethodwithContextAttribute
Set attribute with type {@link String}. This setter should not be invoked for specversion, because the writer should already know the specversion or b
api/src/main/java/io/cloudevents/rw/CloudEventContextWriter.java:44
↓ 56 callersMethodgetValue
Get the attribute of extension named {@code key}. @param key the name of the extension attribute @return the extension value in one of the valid type
api/src/main/java/io/cloudevents/CloudEventExtension.java:45
↓ 55 callersMethodwithData
Set the {@code data} of the event @param data data of the event @return self
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:96
↓ 52 callersMethodgetData
@return The event data, if any, otherwise {@code null}
api/src/main/java/io/cloudevents/CloudEvent.java:30
↓ 43 callersMethodtoBytes
Returns the bytes representation of this data instance. <p> Note: depending on the implementation, this operation may be expensive. @return this data
api/src/main/java/io/cloudevents/CloudEventData.java:34
↓ 41 callersMethodvalue
@return the result of the expression evaluation, which could be a {@link String}, a {@link Integer} or a {@link Boolean}.
sql/src/main/java/io/cloudevents/sql/Result.java:13
↓ 38 callersMethodmap
Map {@code data} to another {@link CloudEventData} instance. @param data the input data @return The new data @throws CloudEventRWException is anythin
api/src/main/java/io/cloudevents/rw/CloudEventDataMapper.java:40
↓ 38 callersMethodserialize
Serialize a {@link CloudEvent} to a byte array. @param event the event to serialize. @return the byte representation of the provided event. @throws E
core/src/main/java/io/cloudevents/core/format/EventFormat.java:48
↓ 35 callersMethodserializedContentType
@return The content type to use when writing an event with this {@link EventFormat}.
core/src/main/java/io/cloudevents/core/format/EventFormat.java:81
↓ 31 callersMethodequals
(Object o)
core/src/main/java/io/cloudevents/core/v1/CloudEventV1.java:199
↓ 31 callersMethodgetText
(Interval interval)
sql/src/main/java/io/cloudevents/sql/impl/parser/CaseChangingCharStream.java:32
↓ 30 callersMethodtoEvent
Like {@link #toEvent(CloudEventDataMapper)}, but with the identity {@link CloudEventDataMapper}. @see #toEvent(CloudEventDataMapper)
core/src/main/java/io/cloudevents/core/message/MessageReader.java:101
↓ 30 callersMethodwithTime
Set the {@code time} of the event @param time time of the event @return self
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:88
↓ 29 callersMethodgetInstance
@return instance of {@link EventFormatProvider}
core/src/main/java/io/cloudevents/core/provider/EventFormatProvider.java:52
↓ 26 callersMethodnewBuilder
Copy this builder, creating a new instance with same values. @return A new builder with same values of this instance
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:257
↓ 26 callersMethodwithSubject
Set the {@code subject} of the event @param subject subject of the event @return self
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:80
↓ 25 callersMethodtoString
()
formats/json-jackson/src/main/java/io/cloudevents/jackson/JsonCloudEventData.java:67
↓ 24 callersMethodv03
@return a new CloudEvent v0.3 builder
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:277
↓ 24 callersMethodwriteBinary
Write the provided event as binary. @param event event to write. @return return value at the end of the write process.
core/src/main/java/io/cloudevents/core/message/MessageWriter.java:70
↓ 23 callersMethoddeserialize
Like {@link #deserialize(byte[], CloudEventDataMapper)}, but with the identity {@link CloudEventDataMapper}. @see #deserialize(byte[], CloudEventData
core/src/main/java/io/cloudevents/core/format/EventFormat.java:55
↓ 23 callersMethodgetSpecVersion
@return The version of the CloudEvents specification which the event uses
api/src/main/java/io/cloudevents/CloudEventAttributes.java:39
↓ 22 callersMethodgetExtension
Get the extension attribute named {@code extensionName} @param extensionName the extension name @return the extension value in one of the valid types
api/src/main/java/io/cloudevents/CloudEventExtensions.java:39
↓ 22 callersMethodparseDefault
Parse the expression with default parser instance. @param inputExpression input expression @return the parsed expression @throws ParseException if th
sql/src/main/java/io/cloudevents/sql/Parser.java:24
↓ 21 callersMethodend
End the write with a data payload. @param data the data to write @return an eventual return value @throws CloudEventRWException if the message writer
api/src/main/java/io/cloudevents/rw/CloudEventWriter.java:37
↓ 21 callersMethodevaluate
(EvaluationRuntime runtime, CloudEvent event, ExceptionFactory exceptionFactory)
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:15
↓ 21 callersMethodnewInvalidAttributeType
@param attributeName the invalid attribute name @param clazz the type of the attribute @return a new {@link CloudEventRWException} instance
api/src/main/java/io/cloudevents/rw/CloudEventRWException.java:133
↓ 20 callersMethodevaluate
Evaluate the expression. @param evaluationRuntime the runtime instance to use to run the evaluation @param event the input event @return
sql/src/main/java/io/cloudevents/sql/Expression.java:29
↓ 20 callersMethodkafkaHeaders
(RecordHeader... headers)
kafka/src/test/java/io/cloudevents/kafka/KafkaUtils.java:27
↓ 20 callersMethodwrap
@param value byte array to wrap @return byte array wrapped in a {@link BytesCloudEventData}, which implements {@link CloudEventData}.
core/src/main/java/io/cloudevents/core/data/BytesCloudEventData.java:53
↓ 19 callersMethodgetId
@return Identifies the event. Producers MUST ensure that source + id is unique for each distinct event
api/src/main/java/io/cloudevents/CloudEventAttributes.java:44
↓ 19 callersMethodinvoke
Invoke the function logic. @param ctx the evaluation context @param evaluationRuntime the evaluation runtime @param event t
sql/src/main/java/io/cloudevents/sql/Function.java:22
↓ 19 callersMethodresolveFormat
Resolve an event format starting from the content type. @param contentType the content type to resolve the event format @return null if no format was
core/src/main/java/io/cloudevents/core/provider/EventFormatProvider.java:93
↓ 19 callersMethodvisit
(ExpressionInternalVisitor<T> visitor)
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:17
↓ 18 callersMethodgetKey
()
sql/src/main/java/io/cloudevents/sql/impl/expressions/ExistsExpression.java:30
↓ 18 callersMethodgetType
@return A value describing the type of event related to the originating occurrence.
api/src/main/java/io/cloudevents/CloudEventAttributes.java:49
↓ 18 callersMethodvalue
@return the raw result of the evaluation
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:83
↓ 17 callersMethodconsume
()
sql/src/main/java/io/cloudevents/sql/impl/parser/CaseChangingCharStream.java:37
↓ 17 callersMethodexpressionInterval
()
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:11
↓ 17 callersMethodexpressionText
()
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:13
↓ 17 callersMethodfrom
Create a new builder starting from the values of the provided event. @param event event to copy values from @return the new builder
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:313
↓ 16 callersMethodgetSource
@return The context in which an event happened.
api/src/main/java/io/cloudevents/CloudEventAttributes.java:54
↓ 16 callersMethodtoByteArray
(InputStream body)
examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/IOUtils.java:33
↓ 15 callersMethodgetExtensionNames
@return The non-null extension attributes names in this instance
api/src/main/java/io/cloudevents/CloudEventExtensions.java:45
↓ 15 callersMethodread
Like {@link #read(CloudEventWriterFactory, CloudEventDataMapper)}, but with the identity {@link CloudEventDataMapper}. @param <W> The type of the {@l
api/src/main/java/io/cloudevents/rw/CloudEventReader.java:42
↓ 15 callersMethodsubstring
(String x, Integer pos, Integer len)
sql/src/main/java/io/cloudevents/sql/impl/functions/SubstringWithLengthFunction.java:22
↓ 14 callersMethodgetDataContentType
A common way to get the media type of CloudEvents 'data'; @return If has a value, it MUST follows the <a href="https://tools.ietf.org/html/rfc2046">R
api/src/main/java/io/cloudevents/CloudEventAttributes.java:61
↓ 14 callersMethodrequireValidAttributeWrite
(String name)
core/src/main/java/io/cloudevents/core/impl/BaseCloudEventBuilder.java:246
↓ 14 callersMethodtoString
()
spring/src/test/java/io/cloudevents/spring/mvc/MvcRestControllerTests.java:202
↓ 13 callersMethodgetEncoding
@return The message encoding
core/src/main/java/io/cloudevents/core/message/MessageReader.java:70
↓ 13 callersMethodisNotFailed
()
sql/src/test/java/io/cloudevents/sql/asserts/ResultAssert.java:34
↓ 13 callersMethodnewOther
This wraps a {@link Throwable} in a new generic instance of this exception. @param cause the cause of the exception @return a new {@link CloudEventRW
api/src/main/java/io/cloudevents/rw/CloudEventRWException.java:213
↓ 13 callersMethodparseTime
Parse a {@link String} RFC3339 compliant as {@link OffsetDateTime}. @param time the value to parse as time @return the parsed {@link OffsetDateTime}
api/src/main/java/io/cloudevents/types/Time.java:43
↓ 12 callersMethodgetFormat
()
formats/json-jackson/src/test/java/io/cloudevents/jackson/JsonFormatTest.java:314
↓ 12 callersMethodparseStructuredOrBinaryMessage
Common flow to parse an incoming message that could be structured or binary. @param contentTypeHeaderReader supplier that returns the content type h
core/src/main/java/io/cloudevents/core/message/impl/MessageUtils.java:50
↓ 12 callersMethodwithDataContentType
Set the {@code datacontenttype} of the event @param dataContentType datacontenttype of the event @return self
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:72
↓ 12 callersMethodwrapExceptions
(EvaluationResult other)
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:41
↓ 11 callersMethodname
@return uppercase name of the function
sql/src/main/java/io/cloudevents/sql/FunctionSignature.java:13
↓ 11 callersMethodnewInvalidAttributeValue
@param attributeName the invalid attribute name @param value the value of the attribute @param cause an optional cause identifying the
api/src/main/java/io/cloudevents/rw/CloudEventRWException.java:157
↓ 11 callersMethodtoString
()
core/src/main/java/io/cloudevents/core/v1/CloudEventV1.java:220
↓ 11 callersMethodwrite
(Publisher<? extends CloudEvent> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttp
spring/src/main/java/io/cloudevents/spring/webflux/CloudEventHttpMessageWriter.java:60
↓ 10 callersMethodcontentType
(MessageHeaders message)
spring/src/main/java/io/cloudevents/spring/messaging/CloudEventMessageConverter.java:83
↓ 10 callersMethodcopyWithValue
(Object value)
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:55
↓ 10 callersMethodcreateHeaders
()
http/basic/src/test/java/io/cloudevents/http/HttpMessageReaderWriterTest.java:236
↓ 10 callersMethodfromClass
Compute the CloudEvents Expression Language type from a Java class. @param clazz the class to use @return the type, or any if the class is unrecogniz
sql/src/main/java/io/cloudevents/sql/Type.java:56
↓ 10 callersMethodgetAttribute
Get the <a href="https://github.com/cloudevents/spec/blob/v1.0/spec.md#context-attributes">context attribute</a> named {@code attributeName} @param a
api/src/main/java/io/cloudevents/CloudEventAttributes.java:89
↓ 10 callersMethodgetTime
@return <a href="https://github.com/cloudevents/spec/blob/v1.0/spec.md#time">Timestamp</a> of when the occurrence happened
api/src/main/java/io/cloudevents/CloudEventAttributes.java:79
↓ 10 callersMethodproperties
(final AbstractMap.SimpleEntry<String, String>... entries)
rocketmq/src/test/java/io/cloudevents/rocketmq/RocketmqMessageFactoryTest.java:227
↓ 10 callersMethodproperties
(final SimpleEntry<String, Object>... entries)
amqp/src/test/java/io/cloudevents/amqp/ProtonAmqpMessageFactoryTest.java:234
↓ 10 callersMethodwriteStructured
Write the provided event as structured. @param event event to write. @param format {@link EventFormat} to use to serialize the event. @return return
core/src/main/java/io/cloudevents/core/message/MessageWriter.java:44
↓ 9 callersMethodarity
@return the arity, excluding the vararg parameter if {@code isVariadic() == true}
sql/src/main/java/io/cloudevents/sql/FunctionSignature.java:29
↓ 9 callersMethodcast
(EvaluationContext ctx, EvaluationResult result, Type target)
sql/src/main/java/io/cloudevents/sql/impl/runtime/TypeCastingProvider.java:38
↓ 9 callersMethodclose
()
kafka/src/main/java/io/cloudevents/kafka/PartitionKeyExtensionInterceptor.java:42
↓ 9 callersMethodcreateWriter
Create a {@link io.cloudevents.core.message.MessageWriter} to write a {@link org.apache.kafka.clients.producer.ProducerRecord}. @param topic the
kafka/src/main/java/io/cloudevents/kafka/KafkaMessageFactory.java:83
↓ 9 callersMethodequals
(Object o)
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:104
↓ 9 callersMethodexceptionFactory
()
sql/src/main/java/io/cloudevents/sql/EvaluationContext.java:21
↓ 9 callersMethodgetDataSchema
@return Return the URI specifying the location of the schema for the provided data
api/src/main/java/io/cloudevents/CloudEventAttributes.java:67
↓ 9 callersMethodnormalizeToJsonValueIfNeeded
(CloudEvent event)
formats/json-jackson/src/test/java/io/cloudevents/jackson/JsonFormatTest.java:329
↓ 9 callersMethodparse
Parse a string as {@link SpecVersion} @param sv String representing the spec version @return The parsed spec version @throws CloudEventRWException Wh
api/src/main/java/io/cloudevents/SpecVersion.java:75
↓ 9 callersMethodreadContext
Read the context attributes and extensions using the provided writer @param writer context writer @throws CloudEventRWException if something went wro
api/src/main/java/io/cloudevents/rw/CloudEventContextReader.java:36
↓ 8 callersMethodaddElement
Add a context attribute to the root element. @param name @param xsiType @param value
formats/xml/src/main/java/io/cloudevents/xml/XMLSerializer.java:104
↓ 8 callersMethodaddFunction
(Function function)
sql/src/main/java/io/cloudevents/sql/impl/runtime/FunctionTable.java:64
↓ 8 callersMethodcreateReader
Create a {@link io.cloudevents.core.message.MessageReader} to read {@link ConsumerRecord}. @param record the record to convert to {@link io.cloudeven
kafka/src/main/java/io/cloudevents/kafka/KafkaMessageFactory.java:57
↓ 8 callersMethodformat
()
formats/avro-compact/src/test/java/io/cloudevents/avro/compact/AvroCompactFormatTest.java:39
↓ 8 callersMethodgenerateAttributesToHeadersMapping
Generate a map with cloudevents attributes as keys and header keys as values @param headerNameMapping mapper to generate the header name @param <V>
core/src/main/java/io/cloudevents/core/message/impl/MessageUtils.java:90
↓ 8 callersMethodgetRightOperand
()
sql/src/main/java/io/cloudevents/sql/impl/expressions/BaseBinaryExpression.java:34
next →1–100 of 1,321, ranked by callers