easy-batch v7.0.0 Release Notes

Release Date: 2020-09-24 // over 3 years ago
  • ๐Ÿš€ This release is a major version as it requires Java 11 or above. The main theme for this release is API type safety. There are no new features in this version except updating all APIs to be generic:

    • RecordReader (and its listener): 7ed62a5
    • Batch (and its listener): ba60977
    • RecordWriter (and its listener): d437aa5
    • RecordProcessor (and its listener / sub interfaces): 279ed29
    • Predicate: 063fcc5
    • ๐Ÿ‘ท JobBuilder: 6929936

    โšก๏ธ These changes require updating job definitions to use generics for input/output types in order to enforce the correctness and coherence of expected types between the record reader and writer (More details about this in issue #388).

    Migration guide from v6.1 to v7.0

    โšก๏ธ 1. Job definition updates

    ๐Ÿš€ The most notable change required by this release is regarding job definitions:

    --Job job = new JobBuilder() // v6++Job job = new JobBuilder\<String, Tweet\>() // v7 // define batch components .build();
    

    โš  Specifying input/output types is not mandatory, but not doing so will lead to a raw type usage warning.

    โšก๏ธ 2. RecordProcessor generic types updates

    ๐Ÿ›ฐ Another important change has been introduced in this release about the generic type of RecordProcessor. In v6, the generic types of RecordProcessor were the types of input/output records. In v7, generic types now represent the type of the payload of input/output records:

    --public interface RecordProcessor\<I extends Record, O extends Record\> { // v6-- O processRecord(I record) throws Exception;--}++public interface RecordProcessor\<I, O\> { // v7++ Record\<O\> processRecord(Record\<I\> record) throws Exception; ++}
    

    This change has a direct impact on all interfaces extending RecordProcessor (like RecordFilter, RecordMapper, RecordMarshaller and RecordValidator) and their corresponding implementations.

    โšก๏ธ 3. Other API updates

    โšก๏ธ Any usage of the aforementioned APIs (RecordReader, RecordWriter, Batch, etc) and their associated listeners should be updated to use generics where appropriate.

    ๐Ÿ—„ 4. Deprecated APIs removal

    ๐Ÿš€ All deprecated APIs in v6.0 and v6.1 have been removed in this major release. The suggested replacement (if any) should be found in the Javdoc of the deprecated API.


Previous changes from v6.1.0

  • ๐Ÿš€ This is a minor release which can be used as a drop-in replacement for v6.0.0. Here are the major changes:

    ๐Ÿ†• New Features and enhancements

    • Issue #368: Add RetryableRecordProcessor implementation
    • 0๏ธโƒฃ Issue #381: Add default methods in record reader/writer interfaces

    ๐Ÿ› Bug fixes

    • Issue #372: BeanPropertiesPreparedStatementProvider is failing to prepare statement if bean properties has null value

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ Issue #380: Deprecate the static factory method JobBuilder#aNewJob
    • ๐Ÿ—„ Issue #379: Deprecate ContentBasedBlockingQueueRecordWriterBuilder