Package org.jeasy.batch.core.field
Interface FieldExtractor<T>
-
- All Known Implementing Classes:
BeanFieldExtractor
public interface FieldExtractor<T>Interface for field extractor. This will be used byRecordMarshallerto extract fields from the payload of a record.- Author:
- Rémi Alvergnat (toilal.dev@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<java.lang.Object>extractFields(T payload)Extract fields from the payload of a record.
-
-
-
Method Detail
-
extractFields
java.lang.Iterable<java.lang.Object> extractFields(T payload) throws java.lang.Exception
Extract fields from the payload of a record.- Parameters:
payload- of the record- Returns:
- a iterable containing fields of the record's payload
- Throws:
java.lang.Exception- if unable to extract fields from the record's payload
-
-