Class MCROAIDeletedSearcher

java.lang.Object
org.mycore.oai.MCROAISearcher
org.mycore.oai.MCROAIDeletedSearcher

public class MCROAIDeletedSearcher extends MCROAISearcher
Searcher for deleted records. The schema for the cursor is deleted_from_rows.
Author:
Matthias Eichner
  • Field Details

  • Constructor Details

    • MCROAIDeletedSearcher

      public MCROAIDeletedSearcher()
  • Method Details

    • getHeader

      public Optional<org.mycore.oai.pmh.Header> getHeader(String mcrId)
      Specified by:
      getHeader in class MCROAISearcher
    • query

      public MCROAISimpleResult query(String cursor)
      Specified by:
      query in class MCROAISearcher
    • query

      public MCROAIResult query(MCRSet set, Instant from, Instant until)
      Specified by:
      query in class MCROAISearcher
    • getEarliestTimestamp

      public Optional<Instant> getEarliestTimestamp()
      Description copied from class: MCROAISearcher
      Returns the earliest created/modified record time stamp. If the earliest time stamp cannot be retrieved an empty optional is returned.
      Specified by:
      getEarliestTimestamp in class MCROAISearcher
      Returns:
      the earliest created/modified time stamp
    • getDeletedRecords

      public List<org.mycore.oai.pmh.Header> getDeletedRecords()
    • buildCursor

      public String buildCursor(int from, int rows)
      Builds the cursor in the form of deleted_from_rows.
      Parameters:
      from - where to start
      rows - how many rows
      Returns:
      the cursor as string
    • searchDeleted

      protected List<org.mycore.oai.pmh.Header> searchDeleted(Instant from, Instant until)
      Returns a list with identifiers of the deleted objects within the given date boundary. If the record policy indicates that there is no support for tracking deleted an empty list is returned.
      Parameters:
      from - from date
      until - to date
      Returns:
      a list with identifiers of the deleted objects