Interface SchemaRules

All Known Implementing Classes:
RadarSchemaRules

public interface SchemaRules
  • Method Details

    • getFieldRules

      SchemaFieldRules getFieldRules()
    • validateUniqueness

      Validator<org.apache.avro.Schema> validateUniqueness()
      Checks that schemas are unique compared to already validated schemas.
    • validateNameSpace

      Validator<org.apache.avro.Schema> validateNameSpace()
      Checks schema namespace format.
    • validateName

      Validator<org.apache.avro.Schema> validateName()
      Checks schema name format.
    • validateSchemaDocumentation

      Validator<org.apache.avro.Schema> validateSchemaDocumentation()
      Checks schema documentation presence and format.
    • validateSymbols

      Validator<org.apache.avro.Schema> validateSymbols()
      Checks that the symbols of enums have the required format.
    • validateTime

      Validator<org.apache.avro.Schema> validateTime()
      Checks that schemas should have a time field.
    • validateTimeCompleted

      Validator<org.apache.avro.Schema> validateTimeCompleted()
      Checks that schemas should have a timeCompleted field.
    • validateNotTimeCompleted

      Validator<org.apache.avro.Schema> validateNotTimeCompleted()
      Checks that schemas should not have a timeCompleted field.
    • validateTimeReceived

      Validator<org.apache.avro.Schema> validateTimeReceived()
      Checks that schemas should have a timeReceived field.
    • validateNotTimeReceived

      Validator<org.apache.avro.Schema> validateNotTimeReceived()
      Checks that schemas should not have a timeReceived field.
    • validateEnum

      default Validator<org.apache.avro.Schema> validateEnum()
      Validate an enum.
    • validateRecord

      default Validator<org.apache.avro.Schema> validateRecord()
      Validate a record that is defined inline.
    • validateAvroData

      Validator<org.apache.avro.Schema> validateAvroData()
    • validateActiveSource

      default Validator<org.apache.avro.Schema> validateActiveSource()
      Validates record schemas of an active source.
      Returns:
      TODO
    • validateMonitor

      default Validator<org.apache.avro.Schema> validateMonitor()
      Validates schemas of monitor sources.
      Returns:
      TODO
    • validatePassive

      default Validator<org.apache.avro.Schema> validatePassive()
      Validates schemas of passive sources.
    • messageSchema

      default Function<org.apache.avro.Schema,String> messageSchema(String text)
    • fields

      default Validator<org.apache.avro.Schema> fields(Validator<SchemaField> validator)
      Validates all fields of records. Validation will fail on non-record types or records with no fields.