Class AvroRegistry
java.lang.Object
io.confluent.kafka.schemaregistry.rules.cel.avro.AvroRegistry
- All Implemented Interfaces:
org.projectnessie.cel.common.types.ref.TypeAdapter,org.projectnessie.cel.common.types.ref.TypeProvider,org.projectnessie.cel.common.types.ref.TypeRegistry
public final class AvroRegistry
extends Object
implements org.projectnessie.cel.common.types.ref.TypeRegistry
CEL-Java
TypeRegistry to use Avro objects as input values for CEL scripts.
The implementation does not support the construction of Avro objects in CEL expressions and
therefore returning Avro objects from CEL expressions is not possible/implemented and results
in UnsupportedOperationExceptions.
-
Method Summary
Modifier and TypeMethodDescriptionorg.projectnessie.cel.common.types.ref.TypeRegistrycopy()org.projectnessie.cel.common.types.ref.Valorg.projectnessie.cel.common.types.ref.FieldTypefindFieldType(String messageType, String fieldName) org.projectnessie.cel.common.types.ref.Valcom.google.api.expr.v1alpha1.Typeorg.projectnessie.cel.common.types.ref.ValnativeToValue(Object value) static org.projectnessie.cel.common.types.ref.TypeRegistryorg.projectnessie.cel.common.types.ref.ValvoidvoidregisterType(org.projectnessie.cel.common.types.ref.Type... types)
-
Method Details
-
newRegistry
public static org.projectnessie.cel.common.types.ref.TypeRegistry newRegistry() -
copy
public org.projectnessie.cel.common.types.ref.TypeRegistry copy()- Specified by:
copyin interfaceorg.projectnessie.cel.common.types.ref.TypeRegistry
-
register
- Specified by:
registerin interfaceorg.projectnessie.cel.common.types.ref.TypeRegistry
-
registerType
public void registerType(org.projectnessie.cel.common.types.ref.Type... types) - Specified by:
registerTypein interfaceorg.projectnessie.cel.common.types.ref.TypeRegistry
-
enumValue
- Specified by:
enumValuein interfaceorg.projectnessie.cel.common.types.ref.TypeProvider
-
findIdent
- Specified by:
findIdentin interfaceorg.projectnessie.cel.common.types.ref.TypeProvider
-
findType
- Specified by:
findTypein interfaceorg.projectnessie.cel.common.types.ref.TypeProvider
-
findFieldType
public org.projectnessie.cel.common.types.ref.FieldType findFieldType(String messageType, String fieldName) - Specified by:
findFieldTypein interfaceorg.projectnessie.cel.common.types.ref.TypeProvider
-
newValue
public org.projectnessie.cel.common.types.ref.Val newValue(String typeName, Map<String, org.projectnessie.cel.common.types.ref.Val> fields) - Specified by:
newValuein interfaceorg.projectnessie.cel.common.types.ref.TypeProvider
-
nativeToValue
- Specified by:
nativeToValuein interfaceorg.projectnessie.cel.common.types.ref.TypeAdapter
-