Interface SchemaDefinition<T>


  • @Public
    @Stable
    public interface SchemaDefinition<T>
    Interface for schema definition.
    • Method Detail

      • getAlwaysAllowNull

        boolean getAlwaysAllowNull()
        Get schema whether always allow null or not.
        Returns:
        schema always null or not
      • isJsr310ConversionEnabled

        boolean isJsr310ConversionEnabled()
        Get JSR310 conversion enabled.
        Returns:
        return true if enable JSR310 conversion. false means use Joda time conversion.
      • getProperties

        java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Get schema class.
        Returns:
        schema class
      • getJsonDef

        java.lang.String getJsonDef()
        Get json schema definition.
        Returns:
        schema class
      • getPojo

        java.lang.Class<T> getPojo()
        Get pojo schema definition.
        Returns:
        pojo schema
      • getSupportSchemaVersioning

        boolean getSupportSchemaVersioning()
        Get supportSchemaVersioning schema definition.
        Returns:
        the flag of supportSchemaVersioning
      • getSchemaReaderOpt

        java.util.Optional<SchemaReader<T>> getSchemaReaderOpt()
        Get a configured schema reader.
        Returns:
        optional containing configured schema reader or empty optional if none is configure
      • getSchemaWriterOpt

        java.util.Optional<SchemaWriter<T>> getSchemaWriterOpt()
        Get a configured schema writer.
        Returns:
        optional containing configured schema writer or empty optional if none is configure