Interface ICustomTupleSchemaProducer


  • public interface ICustomTupleSchemaProducer

    An interface describing production of a tuple schema from block instance configuration. Used by stream input blocks to provide their input schemas where appropriate.

    • Method Detail

      • canProcessConfigurationsFor

        boolean canProcessConfigurationsFor​(String schemaURL)

        Return true if this producer can process configurations that conform to the specified JSON schema, false otherwise.

        Parameters:
        schemaURL - schema to check
        Returns:
        true or false as described above
      • getTupleSchema

        Schema getTupleSchema​(com.typesafe.config.Config config,
                              TupleSchemaFactory tupleSchemaFactory,
                              FlowValidationProblemList problems)

        Produce a tuple schema, null with problems added if unknown

        Parameters:
        config - instance configuration to process
        tupleSchemaFactory - used to create EventFlow tuple schemas associated with the specified configuration
        problems - container for any problems encountered while creating tuple schemas
        Returns:
        tuple schema