java.lang.Object
io.confluent.kafka.schemaregistry.type.logical.common.CycleContext<T>
Direct Known Subclasses:
ToLogicalContext

public class CycleContext<T> extends Object
A context for keeping track of the current path context in a schema conversion process.
  • Constructor Details

    • CycleContext

      public CycleContext()
  • Method Details

    • addSeenSchema

      public boolean addSeenSchema(T schema)
    • removeSeenSchema

      public void removeSeenSchema(T schema)
    • pushFieldPath

      public void pushFieldPath(String fieldName)
    • popFieldPath

      public void popFieldPath()
    • putDefaultValue

      public void putDefaultValue(List<Integer> path, Object value)
      Records a default value at the given field-index path.
    • getDefaultValues

      public Map<List<Integer>,Object> getDefaultValues()
      Path-keyed map of field-default values collected during conversion.
    • getCyclicSchemaErrorMessage

      public String getCyclicSchemaErrorMessage()