Class ChunkReader
- java.lang.Object
 - 
- javax.batch.api.chunk.AbstractItemReader
 - 
- com.ibm.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.AbstractItemReaderBulk Export for Patient - ChunkReader. Processes a Page of Patients at a Time Per Read 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected BulkDataContextctx(package private) booleanisDoDuplicationCheck(package private) javax.batch.runtime.context.JobContextjobCtx(package private) Set<String>loadedPatientIdsprotected intpageNumprotected intpageSizeprotected Class<? extends Resource>resourceTypeprotected Map<Class<? extends Resource>,List<Map<String,List<String>>>>searchParametersForResoureTypes(package private) javax.batch.runtime.context.StepContextstepCtx 
- 
Constructor Summary
Constructors Constructor Description ChunkReader() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializablecheckpointInfo()voidclose()protected FHIRPersistencegetPersistence()gets the persistence objectvoidopen(Serializable checkpoint)ObjectreadItem() 
 - 
 
- 
- 
Field Detail
- 
pageNum
protected int pageNum
 
- 
pageSize
protected int pageSize
 
- 
searchParametersForResoureTypes
protected Map<Class<? extends Resource>,List<Map<String,List<String>>>> searchParametersForResoureTypes
 
- 
ctx
protected BulkDataContext ctx
 
- 
isDoDuplicationCheck
boolean isDoDuplicationCheck
 
- 
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:
 openin interfacejavax.batch.api.chunk.ItemReader- Overrides:
 openin classjavax.batch.api.chunk.AbstractItemReader- Throws:
 Exception
 
- 
close
public void close() throws Exception- Specified by:
 closein interfacejavax.batch.api.chunk.ItemReader- Overrides:
 closein classjavax.batch.api.chunk.AbstractItemReader- Throws:
 Exception
 
- 
checkpointInfo
public Serializable checkpointInfo() throws Exception
- Specified by:
 checkpointInfoin interfacejavax.batch.api.chunk.ItemReader- Overrides:
 checkpointInfoin classjavax.batch.api.chunk.AbstractItemReader- Throws:
 Exception
 
- 
readItem
public Object readItem() throws Exception
- Specified by:
 readItemin interfacejavax.batch.api.chunk.ItemReader- Specified by:
 readItemin classjavax.batch.api.chunk.AbstractItemReader- Throws:
 Exception
 
- 
getPersistence
protected FHIRPersistence getPersistence()
gets the persistence object- Returns:
 
 
 - 
 
 -