Class RuleContext.FieldContext
java.lang.Object
io.confluent.kafka.schemaregistry.rules.RuleContext.FieldContext
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- RuleContext
-
Constructor Summary
ConstructorsConstructorDescriptionFieldContext(Object containingMessage, String fullName, String name, RuleContext.Type type, Set<String> tags) FieldContext(Object containingMessage, String fullName, String name, RuleContext.Type type, Set<String> tags, Object fieldDescriptor) -
Method Summary
-
Constructor Details
-
FieldContext
-
FieldContext
-
-
Method Details
-
getContainingMessage
-
getFullName
-
getName
-
getFieldDescriptor
The producer's own handle on the field, for formats that have one: a protobufFieldDescriptor. Null for Avro and JSON Schema, whose walks carry no such object.getName()andgetFullName()are the registered schema's names for the field, which can differ from the producer's under a compatible rename, andRuleContext.Typecollapses distinctions the format makes — auint64and anint64both arrive asRuleContext.Type.LONG, and Java has no unsigned primitive to carry the difference in the value either. An executor that has to present the value faithfully therefore goes through this rather than re-deriving the field from a name. -
getType
-
setType
-
isInCombined
public boolean isInCombined() -
getTags
-
equals
-
hashCode
public int hashCode() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-