Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cloudevents/sdk-java
/ functions
Functions
1,321 in github.com/cloudevents/sdk-java
⨍
Functions
1,321
◇
Types & classes
350
↓ 385 callers
Method
assertThat
(Result result)
sql/src/test/java/io/cloudevents/sql/asserts/MyAssertions.java:7
↓ 348 callers
Method
add
(String k, String v)
http/basic/src/test/java/io/cloudevents/http/HttpMessageReaderWriterTest.java:241
↓ 225 callers
Method
toString
()
api/src/main/java/io/cloudevents/SpecVersion.java:63
↓ 202 callers
Method
build
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 callers
Method
header
(String key, String value)
kafka/src/test/java/io/cloudevents/kafka/KafkaUtils.java:35
↓ 98 callers
Method
withExtension
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 callers
Method
create
(Interval interval, String expression)
sql/src/main/java/io/cloudevents/sql/EvaluationException.java:16
↓ 80 callers
Method
get
(@PathParam("username") String username)
examples/restful-ws-quarkus/src/main/java/io/cloudevents/examples/quarkus/resources/UserResource.java:35
↓ 80 callers
Method
v1
@return a new CloudEvent v1 builder
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:262
↓ 77 callers
Method
withSource
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 callers
Method
property
(final String name, final String value)
rocketmq/src/test/java/io/cloudevents/rocketmq/RocketmqMessageFactoryTest.java:221
↓ 76 callers
Method
property
(final String name, final Object value)
amqp/src/test/java/io/cloudevents/amqp/ProtonAmqpMessageFactoryTest.java:228
↓ 75 callers
Method
withId
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 callers
Method
withType
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 callers
Method
writeTime
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 callers
Method
withContextAttribute
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 callers
Method
getValue
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 callers
Method
withData
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 callers
Method
getData
@return The event data, if any, otherwise {@code null}
api/src/main/java/io/cloudevents/CloudEvent.java:30
↓ 43 callers
Method
toBytes
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 callers
Method
value
@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 callers
Method
map
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 callers
Method
serialize
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 callers
Method
serializedContentType
@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 callers
Method
equals
(Object o)
core/src/main/java/io/cloudevents/core/v1/CloudEventV1.java:199
↓ 31 callers
Method
getText
(Interval interval)
sql/src/main/java/io/cloudevents/sql/impl/parser/CaseChangingCharStream.java:32
↓ 30 callers
Method
toEvent
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 callers
Method
withTime
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 callers
Method
getInstance
@return instance of {@link EventFormatProvider}
core/src/main/java/io/cloudevents/core/provider/EventFormatProvider.java:52
↓ 26 callers
Method
newBuilder
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 callers
Method
withSubject
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 callers
Method
toString
()
formats/json-jackson/src/main/java/io/cloudevents/jackson/JsonCloudEventData.java:67
↓ 24 callers
Method
v03
@return a new CloudEvent v0.3 builder
core/src/main/java/io/cloudevents/core/builder/CloudEventBuilder.java:277
↓ 24 callers
Method
writeBinary
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 callers
Method
deserialize
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 callers
Method
getSpecVersion
@return The version of the CloudEvents specification which the event uses
api/src/main/java/io/cloudevents/CloudEventAttributes.java:39
↓ 22 callers
Method
getExtension
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 callers
Method
parseDefault
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 callers
Method
end
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 callers
Method
evaluate
(EvaluationRuntime runtime, CloudEvent event, ExceptionFactory exceptionFactory)
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:15
↓ 21 callers
Method
newInvalidAttributeType
@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 callers
Method
evaluate
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 callers
Method
kafkaHeaders
(RecordHeader... headers)
kafka/src/test/java/io/cloudevents/kafka/KafkaUtils.java:27
↓ 20 callers
Method
wrap
@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 callers
Method
getId
@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 callers
Method
invoke
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 callers
Method
resolveFormat
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 callers
Method
visit
(ExpressionInternalVisitor<T> visitor)
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:17
↓ 18 callers
Method
getKey
()
sql/src/main/java/io/cloudevents/sql/impl/expressions/ExistsExpression.java:30
↓ 18 callers
Method
getType
@return A value describing the type of event related to the originating occurrence.
api/src/main/java/io/cloudevents/CloudEventAttributes.java:49
↓ 18 callers
Method
value
@return the raw result of the evaluation
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:83
↓ 17 callers
Method
consume
()
sql/src/main/java/io/cloudevents/sql/impl/parser/CaseChangingCharStream.java:37
↓ 17 callers
Method
expressionInterval
()
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:11
↓ 17 callers
Method
expressionText
()
sql/src/main/java/io/cloudevents/sql/impl/ExpressionInternal.java:13
↓ 17 callers
Method
from
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 callers
Method
getSource
@return The context in which an event happened.
api/src/main/java/io/cloudevents/CloudEventAttributes.java:54
↓ 16 callers
Method
toByteArray
(InputStream body)
examples/basic-http/src/main/java/io/cloudevents/examples/http/basic/IOUtils.java:33
↓ 15 callers
Method
getExtensionNames
@return The non-null extension attributes names in this instance
api/src/main/java/io/cloudevents/CloudEventExtensions.java:45
↓ 15 callers
Method
read
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 callers
Method
substring
(String x, Integer pos, Integer len)
sql/src/main/java/io/cloudevents/sql/impl/functions/SubstringWithLengthFunction.java:22
↓ 14 callers
Method
getDataContentType
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 callers
Method
requireValidAttributeWrite
(String name)
core/src/main/java/io/cloudevents/core/impl/BaseCloudEventBuilder.java:246
↓ 14 callers
Method
toString
()
spring/src/test/java/io/cloudevents/spring/mvc/MvcRestControllerTests.java:202
↓ 13 callers
Method
getEncoding
@return The message encoding
core/src/main/java/io/cloudevents/core/message/MessageReader.java:70
↓ 13 callers
Method
isNotFailed
()
sql/src/test/java/io/cloudevents/sql/asserts/ResultAssert.java:34
↓ 13 callers
Method
newOther
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 callers
Method
parseTime
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 callers
Method
getFormat
()
formats/json-jackson/src/test/java/io/cloudevents/jackson/JsonFormatTest.java:314
↓ 12 callers
Method
parseStructuredOrBinaryMessage
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 callers
Method
withDataContentType
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 callers
Method
wrapExceptions
(EvaluationResult other)
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:41
↓ 11 callers
Method
name
@return uppercase name of the function
sql/src/main/java/io/cloudevents/sql/FunctionSignature.java:13
↓ 11 callers
Method
newInvalidAttributeValue
@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 callers
Method
toString
()
core/src/main/java/io/cloudevents/core/v1/CloudEventV1.java:220
↓ 11 callers
Method
write
(Publisher<? extends CloudEvent> inputStream, ResolvableType elementType, MediaType mediaType, ReactiveHttp
spring/src/main/java/io/cloudevents/spring/webflux/CloudEventHttpMessageWriter.java:60
↓ 10 callers
Method
contentType
(MessageHeaders message)
spring/src/main/java/io/cloudevents/spring/messaging/CloudEventMessageConverter.java:83
↓ 10 callers
Method
copyWithValue
(Object value)
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:55
↓ 10 callers
Method
createHeaders
()
http/basic/src/test/java/io/cloudevents/http/HttpMessageReaderWriterTest.java:236
↓ 10 callers
Method
fromClass
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 callers
Method
getAttribute
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 callers
Method
getTime
@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 callers
Method
properties
(final AbstractMap.SimpleEntry<String, String>... entries)
rocketmq/src/test/java/io/cloudevents/rocketmq/RocketmqMessageFactoryTest.java:227
↓ 10 callers
Method
properties
(final SimpleEntry<String, Object>... entries)
amqp/src/test/java/io/cloudevents/amqp/ProtonAmqpMessageFactoryTest.java:234
↓ 10 callers
Method
writeStructured
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 callers
Method
arity
@return the arity, excluding the vararg parameter if {@code isVariadic() == true}
sql/src/main/java/io/cloudevents/sql/FunctionSignature.java:29
↓ 9 callers
Method
cast
(EvaluationContext ctx, EvaluationResult result, Type target)
sql/src/main/java/io/cloudevents/sql/impl/runtime/TypeCastingProvider.java:38
↓ 9 callers
Method
close
()
kafka/src/main/java/io/cloudevents/kafka/PartitionKeyExtensionInterceptor.java:42
↓ 9 callers
Method
createWriter
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 callers
Method
equals
(Object o)
sql/src/main/java/io/cloudevents/sql/impl/runtime/EvaluationResult.java:104
↓ 9 callers
Method
exceptionFactory
()
sql/src/main/java/io/cloudevents/sql/EvaluationContext.java:21
↓ 9 callers
Method
getDataSchema
@return Return the URI specifying the location of the schema for the provided data
api/src/main/java/io/cloudevents/CloudEventAttributes.java:67
↓ 9 callers
Method
normalizeToJsonValueIfNeeded
(CloudEvent event)
formats/json-jackson/src/test/java/io/cloudevents/jackson/JsonFormatTest.java:329
↓ 9 callers
Method
parse
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 callers
Method
readContext
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 callers
Method
addElement
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 callers
Method
addFunction
(Function function)
sql/src/main/java/io/cloudevents/sql/impl/runtime/FunctionTable.java:64
↓ 8 callers
Method
createReader
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 callers
Method
format
()
formats/avro-compact/src/test/java/io/cloudevents/avro/compact/AvroCompactFormatTest.java:39
↓ 8 callers
Method
generateAttributesToHeadersMapping
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 callers
Method
getRightOperand
()
sql/src/main/java/io/cloudevents/sql/impl/expressions/BaseBinaryExpression.java:34
next →
1–100 of 1,321, ranked by callers