Class ChunkWriter
- java.lang.Object
-
- javax.batch.api.chunk.AbstractItemWriter
-
- org.linuxforhealth.fhir.bulkdata.jbatch.export.system.ChunkWriter
-
- All Implemented Interfaces:
javax.batch.api.chunk.ItemWriter
@Dependent public class ChunkWriter extends javax.batch.api.chunk.AbstractItemWriter
BulkExport System ChunkWriter outputs the incoming data to the given source.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
cosBucketPathPrefix
(package private) java.lang.String
fhirResourceType
(package private) javax.batch.runtime.context.JobContext
jobContext
(package private) javax.batch.runtime.context.StepContext
stepCtx
-
Constructor Summary
Constructors Constructor Description ChunkWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
open(java.io.Serializable checkpoint)
void
writeItems(java.util.List<java.lang.Object> resourceLists)
-
-
-
Method Detail
-
open
public void open(java.io.Serializable checkpoint) throws java.lang.Exception
- Specified by:
open
in interfacejavax.batch.api.chunk.ItemWriter
- Overrides:
open
in classjavax.batch.api.chunk.AbstractItemWriter
- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejavax.batch.api.chunk.ItemWriter
- Overrides:
close
in classjavax.batch.api.chunk.AbstractItemWriter
- Throws:
java.lang.Exception
-
writeItems
public void writeItems(java.util.List<java.lang.Object> resourceLists) throws java.lang.Exception
- Specified by:
writeItems
in interfacejavax.batch.api.chunk.ItemWriter
- Specified by:
writeItems
in classjavax.batch.api.chunk.AbstractItemWriter
- Throws:
java.lang.Exception
-
-