Class CqlScanResources
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.cassandra.reconcile.CqlScanResources
-
public class CqlScanResources extends java.lang.Object
CQL command to read a FHIR resource stored in Cassandra.
-
-
Constructor Summary
Constructors Constructor Description CqlScanResources(long startToken, java.util.function.Function<ResourceRecord,java.lang.Boolean> recordHandler)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
run(com.datastax.oss.driver.api.core.CqlSession session)
Execute the CQL read query and return the Resource for the resourceTypeId, logicalId, version tuple.
-
-
-
Constructor Detail
-
CqlScanResources
public CqlScanResources(long startToken, java.util.function.Function<ResourceRecord,java.lang.Boolean> recordHandler)
Public constructor- Parameters:
startToken
-recordHandler
-
-
-
Method Detail
-
run
public long run(com.datastax.oss.driver.api.core.CqlSession session) throws FHIRPersistenceException
Execute the CQL read query and return the Resource for the resourceTypeId, logicalId, version tuple.- Parameters:
resourceType
-session
-- Returns:
- Throws:
FHIRPersistenceException
-
-