Interface SchemaRules
- All Known Implementing Classes:
RadarSchemaRules
public interface SchemaRules
-
Method Summary
Modifier and TypeMethodDescriptiondefault Validator<org.apache.avro.Schema>fields(Validator<SchemaField> validator) Validates all fields of records.messageSchema(String text) default Validator<org.apache.avro.Schema>Validates record schemas of an active source.Validator<org.apache.avro.Schema>default Validator<org.apache.avro.Schema>Validate an enum.default Validator<org.apache.avro.Schema>Validates schemas of monitor sources.Validator<org.apache.avro.Schema>Checks schema name format.Validator<org.apache.avro.Schema>Checks schema namespace format.Validator<org.apache.avro.Schema>Checks that schemas should not have atimeCompletedfield.Validator<org.apache.avro.Schema>Checks that schemas should not have atimeReceivedfield.default Validator<org.apache.avro.Schema>Validates schemas of passive sources.default Validator<org.apache.avro.Schema>Validate a record that is defined inline.Validator<org.apache.avro.Schema>Checks schema documentation presence and format.Validator<org.apache.avro.Schema>Checks that the symbols of enums have the required format.Validator<org.apache.avro.Schema>Checks that schemas should have atimefield.Validator<org.apache.avro.Schema>Checks that schemas should have atimeCompletedfield.Validator<org.apache.avro.Schema>Checks that schemas should have atimeReceivedfield.Validator<org.apache.avro.Schema>Checks that schemas are unique compared to already validated schemas.
-
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 atimefield. -
validateTimeCompleted
Validator<org.apache.avro.Schema> validateTimeCompleted()Checks that schemas should have atimeCompletedfield. -
validateNotTimeCompleted
Validator<org.apache.avro.Schema> validateNotTimeCompleted()Checks that schemas should not have atimeCompletedfield. -
validateTimeReceived
Validator<org.apache.avro.Schema> validateTimeReceived()Checks that schemas should have atimeReceivedfield. -
validateNotTimeReceived
Validator<org.apache.avro.Schema> validateNotTimeReceived()Checks that schemas should not have atimeReceivedfield. -
validateEnum
Validate an enum. -
validateRecord
Validate a record that is defined inline. -
validateAvroData
Validator<org.apache.avro.Schema> validateAvroData() -
validateActiveSource
Validates record schemas of an active source.- Returns:
- TODO
-
validateMonitor
Validates schemas of monitor sources.- Returns:
- TODO
-
validatePassive
Validates schemas of passive sources. -
messageSchema
-
fields
Validates all fields of records. Validation will fail on non-record types or records with no fields.
-