Class ChunkReader
- java.lang.Object
 - 
- javax.batch.api.chunk.AbstractItemReader
 - 
- org.linuxforhealth.fhir.bulkdata.jbatch.export.system.ChunkReader
 
 
 
- 
- All Implemented Interfaces:
 javax.batch.api.chunk.ItemReader
@Dependent public class ChunkReader extends javax.batch.api.chunk.AbstractItemReaderBulk Export for System - ChunkReader. Processes a Page at a Time Per Read per ResourceType. 
- 
- 
Field Summary
Fields Modifier and Type Field Description (package private) FHIRPersistencefhirPersistence(package private) intindexOfCurrentTypeFilter(package private) booleanisDoDuplicationCheck(package private) javax.batch.runtime.context.JobContextjobCtx(package private) java.util.Set<java.lang.String>loadedResourceIds(package private) intpageNum(package private) intpageSize(package private) java.lang.Class<? extends Resource>resourceType(package private) 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.StepContextstepCtx 
- 
Constructor Summary
Constructors Constructor Description ChunkReader() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.SerializablecheckpointInfo()voidclose()voidopen(java.io.Serializable checkpoint)java.lang.ObjectreadItem() 
 - 
 
- 
- 
Field Detail
- 
fhirPersistence
FHIRPersistence fhirPersistence
 
- 
resourceType
java.lang.Class<? extends Resource> resourceType
 
- 
pageNum
int pageNum
 
- 
pageSize
int pageSize
 
- 
indexOfCurrentTypeFilter
int indexOfCurrentTypeFilter
 
- 
isDoDuplicationCheck
boolean isDoDuplicationCheck
 
- 
loadedResourceIds
java.util.Set<java.lang.String> loadedResourceIds
 
- 
searchParametersForResoureTypes
java.util.Map<java.lang.Class<? extends Resource>,java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>>> searchParametersForResoureTypes
 
- 
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:
 openin interfacejavax.batch.api.chunk.ItemReader- Overrides:
 openin classjavax.batch.api.chunk.AbstractItemReader- Throws:
 java.lang.Exception
 
- 
close
public void close() throws java.lang.Exception- Specified by:
 closein interfacejavax.batch.api.chunk.ItemReader- Overrides:
 closein classjavax.batch.api.chunk.AbstractItemReader- Throws:
 java.lang.Exception
 
- 
checkpointInfo
public java.io.Serializable checkpointInfo() throws java.lang.Exception- Specified by:
 checkpointInfoin interfacejavax.batch.api.chunk.ItemReader- Overrides:
 checkpointInfoin classjavax.batch.api.chunk.AbstractItemReader- Throws:
 java.lang.Exception
 
- 
readItem
public java.lang.Object readItem() throws java.lang.Exception- Specified by:
 readItemin interfacejavax.batch.api.chunk.ItemReader- Specified by:
 readItemin classjavax.batch.api.chunk.AbstractItemReader- Throws:
 java.lang.Exception
 
 - 
 
 -