Class PostgresReindexResourceDAO

  • All Implemented Interfaces:
    FHIRDbDAO, ResourceDAO

    public class PostgresReindexResourceDAO
    extends ReindexResourceDAO
    PostgreSQL specialization of the DAO used to assist the reindex custom operation
    • Method Detail

      • getNextResource

        public ResourceIndexRecord getNextResource​(java.security.SecureRandom random,
                                                   java.time.Instant reindexTstamp,
                                                   java.lang.Integer resourceTypeId,
                                                   java.lang.String logicalId)
                                            throws java.lang.Exception
        Description copied from class: ReindexResourceDAO
        Pick the next resource to process, then also lock it. Specializations for different databases may use different techniques to optimize locking/concurrency control.
        Overrides:
        getNextResource in class ReindexResourceDAO
        Parameters:
        random - used to generate a random number
        reindexTstamp - only get resource with a reindex_tstamp less than this
        resourceTypeId - the resource type ID of a specific resource type, or null
        logicalId - the resource ID of a specific resource, or null
        Returns:
        the resource record, or null when there is nothing left to do
        Throws:
        java.lang.Exception