Class AvroItemWriterBuilder<T>
java.lang.Object
org.springframework.batch.item.avro.builder.AvroItemWriterBuilder<T>
A builder implementation for the
AvroItemWriter
.- Since:
- 4.2
- Author:
- David Turanski, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance ofAvroItemWriter
.The name used to calculate the key within theExecutionContext
.resource
(org.springframework.core.io.WritableResource resource) schema
(org.springframework.core.io.Resource schema)
-
Constructor Details
-
AvroItemWriterBuilder
public AvroItemWriterBuilder()
-
-
Method Details
-
resource
- Parameters:
resource
- theWritableResource
used to write the serialized data.- Returns:
- The current instance of the builder.
-
schema
- Parameters:
schema
- the Resource containing the schema JSON used to serialize the output.- Returns:
- The current instance of the builder.
-
schema
- Parameters:
schemaString
- the String containing the schema JSON used to serialize the output.- Returns:
- The current instance of the builder.
-
type
- Parameters:
type
- the Class of objects to be serialized.- Returns:
- The current instance of the builder.
-
name
The name used to calculate the key within theExecutionContext
.- Parameters:
name
- name of the reader instance- Returns:
- The current instance of the builder.
- See Also:
-
build
Build an instance ofAvroItemWriter
.- Returns:
- the instance;
-