Class ChunkReader
- java.lang.Object
-
- javax.batch.api.chunk.AbstractItemReader
-
- org.linuxforhealth.fhir.bulkdata.jbatch.export.patient.ChunkReader
-
- All Implemented Interfaces:
javax.batch.api.chunk.ItemReader
- Direct Known Subclasses:
ChunkReader
@Dependent public class ChunkReader extends javax.batch.api.chunk.AbstractItemReader
Bulk Export for Patient - ChunkReader. Processes a Page of Patients at a Time Per Read
-
-
Field Summary
Fields Modifier and Type Field Description protected BulkDataContext
ctx
(package private) boolean
isDoDuplicationCheck
(package private) javax.batch.runtime.context.JobContext
jobCtx
(package private) java.util.Set<java.lang.String>
loadedPatientIds
protected int
pageNum
protected int
pageSize
protected java.lang.Class<? extends Resource>
resourceType
protected java.util.Map<java.lang.Class<? extends Resource>,java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>>>
searchParametersForResoureTypes
(package private) javax.batch.runtime.context.StepContext
stepCtx
-
Constructor Summary
Constructors Constructor Description ChunkReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable
checkpointInfo()
void
close()
protected FHIRPersistence
getPersistence()
gets the persistence objectvoid
open(java.io.Serializable checkpoint)
java.lang.Object
readItem()
-
-
-
Field Detail
-
pageNum
protected int pageNum
-
pageSize
protected int pageSize
-
resourceType
protected java.lang.Class<? extends Resource> resourceType
-
searchParametersForResoureTypes
protected java.util.Map<java.lang.Class<? extends Resource>,java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>>> searchParametersForResoureTypes
-
ctx
protected BulkDataContext ctx
-
isDoDuplicationCheck
boolean isDoDuplicationCheck
-
loadedPatientIds
java.util.Set<java.lang.String> loadedPatientIds
-
stepCtx
@Inject javax.batch.runtime.context.StepContext stepCtx
-
jobCtx
@Inject javax.batch.runtime.context.JobContext jobCtx
-
-
Method Detail
-
open
public void open(java.io.Serializable checkpoint) throws java.lang.Exception
- Specified by:
open
in interfacejavax.batch.api.chunk.ItemReader
- Overrides:
open
in classjavax.batch.api.chunk.AbstractItemReader
- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejavax.batch.api.chunk.ItemReader
- Overrides:
close
in classjavax.batch.api.chunk.AbstractItemReader
- Throws:
java.lang.Exception
-
checkpointInfo
public java.io.Serializable checkpointInfo() throws java.lang.Exception
- Specified by:
checkpointInfo
in interfacejavax.batch.api.chunk.ItemReader
- Overrides:
checkpointInfo
in classjavax.batch.api.chunk.AbstractItemReader
- Throws:
java.lang.Exception
-
readItem
public java.lang.Object readItem() throws java.lang.Exception
- Specified by:
readItem
in interfacejavax.batch.api.chunk.ItemReader
- Specified by:
readItem
in classjavax.batch.api.chunk.AbstractItemReader
- Throws:
java.lang.Exception
-
getPersistence
protected FHIRPersistence getPersistence()
gets the persistence object- Returns:
-
-