Interface SchemaUtil.SchemaProvider

  • Enclosing class:
    SchemaUtil

    public static interface SchemaUtil.SchemaProvider
    A schema provider
    • Method Detail

      • getNamedSchema

        Schema getNamedSchema​(String name)
        A request to provide a Schema for the given name.
        Parameters:
        name - may be null
        Returns:
        a Schema, or null if there is no named schema in this provider with this name
      • getSchemaByHash

        Schema getSchemaByHash​(byte[] hash)
                        throws StreamBaseException
        request a schema by hash
        Parameters:
        hash - schema hash value
        Returns:
        schema or null
        Throws:
        StreamBaseException - error finding schema by hash