public class AvroItemWriterBuilder<T>
extends java.lang.Object
AvroItemWriter
.Constructor and Description |
---|
AvroItemWriterBuilder() |
Modifier and Type | Method and Description |
---|---|
AvroItemWriter<T> |
build()
Build an instance of
AvroItemWriter . |
AvroItemWriterBuilder<T> |
name(java.lang.String name)
The name used to calculate the key within the
ExecutionContext . |
AvroItemWriterBuilder<T> |
resource(org.springframework.core.io.WritableResource resource) |
AvroItemWriterBuilder<T> |
schema(org.springframework.core.io.Resource schema) |
AvroItemWriterBuilder<T> |
schema(java.lang.String schemaString) |
AvroItemWriterBuilder<T> |
type(java.lang.Class<T> type) |
public AvroItemWriterBuilder<T> resource(org.springframework.core.io.WritableResource resource)
resource
- the WritableResource
used to write the serialized data.public AvroItemWriterBuilder<T> schema(org.springframework.core.io.Resource schema)
schema
- the Resource containing the schema JSON used to serialize the output.public AvroItemWriterBuilder<T> schema(java.lang.String schemaString)
schemaString
- the String containing the schema JSON used to serialize the output.public AvroItemWriterBuilder<T> type(java.lang.Class<T> type)
type
- the Class of objects to be serialized.public AvroItemWriterBuilder<T> name(java.lang.String name)
ExecutionContext
.name
- name of the reader instanceItemStreamSupport.setName(String)
public AvroItemWriter<T> build()
AvroItemWriter
.