java.lang.Object
be.vlaanderen.informatievlaanderen.ldes.server.compaction.application.services.CompactionCandidateService

@Component public class CompactionCandidateService extends Object
  • Constructor Details

    • CompactionCandidateService

      public CompactionCandidateService(PageRepository pageRepository)
  • Method Details

    • getCompactionTaskList

      public Collection<Set<CompactionCandidate>> getCompactionTaskList(ViewCapacity viewCapacity)
      Preparation step for the Compaction Service. Will retrieve an aggregated view of the allocation table where the size of members is lower than the maximum view capacity. If these fragments are connected, these will be returned in the same group.
      Parameters:
      viewCapacity - Contains the name and capacity for a view
      Returns:
      a structured group of Fragments for a view that can be compacted
    • getPossibleCompactionCandidates

      protected List<CompactionCandidate> getPossibleCompactionCandidates(ViewCapacity viewCapacity)