Package org.mycore.oai
Class MCROAIDeletedSearcher
java.lang.Object
org.mycore.oai.MCROAISearcher
org.mycore.oai.MCROAIDeletedSearcher
Searcher for deleted records. The schema for the cursor
is deleted_from_rows.
- Author:
- Matthias Eichner
-
Field Summary
Fields inherited from class org.mycore.oai.MCROAISearcher
expire, id, identify, LOGGER, metadataFormat, partitionSize, runningExpirationTimer, setManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildCursor
(int from, int rows) Builds the cursor in the form of deleted_from_rows.List<org.mycore.oai.pmh.Header>
Returns the earliest created/modified record time stamp.Optional<org.mycore.oai.pmh.Header>
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.Methods inherited from class org.mycore.oai.MCROAISearcher
getConfigPrefix, getExpirationTime, getID, getMetadataFormat, getObjectManager, getPartitionSize, getSetManager, init, isExpired, updateRunningExpirationTimer
-
Field Details
-
CURSOR_PREFIX
- See Also:
-
CURSOR_DELIMETER
- See Also:
-
-
Constructor Details
-
MCROAIDeletedSearcher
public MCROAIDeletedSearcher()
-
-
Method Details
-
getHeader
- Specified by:
getHeader
in classMCROAISearcher
-
query
- Specified by:
query
in classMCROAISearcher
-
query
- Specified by:
query
in classMCROAISearcher
-
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 classMCROAISearcher
- Returns:
- the earliest created/modified time stamp
-
getDeletedRecords
-
buildCursor
Builds the cursor in the form of deleted_from_rows.- Parameters:
from
- where to startrows
- how many rows- Returns:
- the cursor as string
-
searchDeleted
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 dateuntil
- to date- Returns:
- a list with identifiers of the deleted objects
-