Class ChunkReader
- java.lang.Object
-
- javax.batch.api.chunk.AbstractItemReader
-
- com.ibm.fhir.bulkdata.jbatch.export.system.ChunkReader
-
- All Implemented Interfaces:
javax.batch.api.chunk.ItemReader
@Dependent public class ChunkReader extends javax.batch.api.chunk.AbstractItemReader
Bulk Export for System - ChunkReader. Processes a Page at a Time Per Read per ResourceType.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) FHIRPersistence
fhirPersistence
(package private) int
indexOfCurrentTypeFilter
(package private) boolean
isDoDuplicationCheck
(package private) javax.batch.runtime.context.JobContext
jobCtx
(package private) Set<String>
loadedResourceIds
(package private) int
pageNum
(package private) int
pageSize
(package private) Class<? extends Resource>
resourceType
(package private) Map<Class<? extends Resource>,List<Map<String,List<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 Serializable
checkpointInfo()
void
close()
void
open(Serializable checkpoint)
Object
readItem()
-
-
-
Field Detail
-
fhirPersistence
FHIRPersistence fhirPersistence
-
pageNum
int pageNum
-
pageSize
int pageSize
-
indexOfCurrentTypeFilter
int indexOfCurrentTypeFilter
-
isDoDuplicationCheck
boolean isDoDuplicationCheck
-
searchParametersForResoureTypes
Map<Class<? extends Resource>,List<Map<String,List<String>>>> searchParametersForResoureTypes
-
stepCtx
@Inject javax.batch.runtime.context.StepContext stepCtx
-
jobCtx
@Inject javax.batch.runtime.context.JobContext jobCtx
-
-
Method Detail
-
open
public void open(Serializable checkpoint) throws Exception
- Specified by:
open
in interfacejavax.batch.api.chunk.ItemReader
- Overrides:
open
in classjavax.batch.api.chunk.AbstractItemReader
- Throws:
Exception
-
close
public void close() throws Exception
- Specified by:
close
in interfacejavax.batch.api.chunk.ItemReader
- Overrides:
close
in classjavax.batch.api.chunk.AbstractItemReader
- Throws:
Exception
-
checkpointInfo
public Serializable checkpointInfo() throws Exception
- Specified by:
checkpointInfo
in interfacejavax.batch.api.chunk.ItemReader
- Overrides:
checkpointInfo
in classjavax.batch.api.chunk.AbstractItemReader
- Throws:
Exception
-
-