Interface SchemaReferenceWriter

All Superinterfaces:
ConfigurableComponent, ControllerService

public interface SchemaReferenceWriter extends ControllerService
Service interface responsible for writing Schema Identifier reference information to attributes or encoded content information
  • Method Details

    • writeHeader

      void writeHeader(RecordSchema recordSchema, OutputStream outputStream) throws IOException
      Writer Record Schema to the provided OutputStream as header information when required
      Parameters:
      recordSchema - Record Schema to be written to the provided Output Stream
      outputStream - Output Stream to which the provided Record Schema should be written
      Throws:
      IOException - Thrown in failure to write Record Schema to the Output Stream
    • getAttributes

      Map<String,String> getAttributes(RecordSchema recordSchema)
      Get Attributes containing Record Schema content or references based on service implementation requirements
      Returns:
      Attributes containing Record Schema information or empty when not populated
    • validateSchema

      void validateSchema(RecordSchema recordSchema) throws SchemaNotFoundException
      Validate provided Record Schema for required information or throw SchemaNotFoundException indicating missing fields
      Parameters:
      recordSchema - Record Schema to be validated
      Throws:
      SchemaNotFoundException - Thrown when the provided Record Schema is missing required information
    • getRequiredSchemaFields

      Set<SchemaField> getRequiredSchemaFields()
      Get required Record Schema Fields for writing schema information
      Returns:
      Required Record Schema Fields