Class ChunkReader
- java.lang.Object
-
- javax.batch.api.chunk.AbstractItemReader
-
- com.ibm.fhir.jbatch.bulkdata.load.ChunkReader
-
- All Implemented Interfaces:
javax.batch.api.chunk.ItemReader
@Dependent public class ChunkReader extends javax.batch.api.chunk.AbstractItemReaderBulk import Chunk implementation - the Reader.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringcosApiKeyPropertyThe IBM COS API key or S3 access key.(package private) StringcosBucketNameThe IBM COS or S3 bucket name to import from.(package private) StringcosCredentialIbmIf use IBM credential or S3 secret keys.(package private) StringcosEndpointUrlThe IBM COS or S3 End point URL.(package private) StringcosLocationThe IBM COS or S3 location.(package private) StringcosSrvinstIdThe IBM COS service instance id or S3 secret key.(package private) StringdataSourceStorageTypeThe data source storage type.(package private) StringfhirDatastoreIdFhir data store id.(package private) StringfhirTenantFhir tenant id.(package private) StringimportPartitionResourceTypeFhir resource type to process.(package private) StringimportPartitionWorkitemWork item to process.(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()voidopen(Serializable checkpoint)ObjectreadItem()
-
-
-
Field Detail
-
stepCtx
@Inject javax.batch.runtime.context.StepContext stepCtx
-
dataSourceStorageType
@Inject String dataSourceStorageType
The data source storage type.
-
cosApiKeyProperty
@Inject String cosApiKeyProperty
The IBM COS API key or S3 access key.
-
cosSrvinstId
@Inject String cosSrvinstId
The IBM COS service instance id or S3 secret key.
-
cosEndpointUrl
@Inject String cosEndpointUrl
The IBM COS or S3 End point URL.
-
cosLocation
@Inject String cosLocation
The IBM COS or S3 location.
-
cosBucketName
@Inject String cosBucketName
The IBM COS or S3 bucket name to import from.
-
cosCredentialIbm
@Inject String cosCredentialIbm
If use IBM credential or S3 secret keys.
-
importPartitionWorkitem
@Inject String importPartitionWorkitem
Work item to process.
-
importPartitionResourceType
@Inject String importPartitionResourceType
Fhir resource type to process.
-
fhirTenant
@Inject String fhirTenant
Fhir tenant id.
-
fhirDatastoreId
@Inject String fhirDatastoreId
Fhir data store id.
-
-
Method Detail
-
readItem
public Object readItem() throws Exception
- Specified by:
readItemin interfacejavax.batch.api.chunk.ItemReader- Specified by:
readItemin classjavax.batch.api.chunk.AbstractItemReader- Throws:
Exception
-
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
-
-