Class AnnotationIndexAugmenter
java.lang.Object
io.goobi.viewer.model.annotation.serialization.AnnotationIndexAugmenter
- All Implemented Interfaces:
IndexAugmenter
- Author:
- Florian Alpers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaugmentReIndexPage(String pi, int page, org.apache.solr.common.SolrDocument doc, String dataRepository, String namingScheme) Any additional tasks this module needs to perform when re-indexing a page (e.g. putting additional files into the hotfolder).voidaugmentReIndexRecord(String pi, String dataRepository, String namingScheme) Any additional tasks this module needs to perform when re-indexing a record (e.g. putting additional files into the hotfolder).booleanTwo instances are equal if they contain the same annotations (disregarding order).inthashCode()
-
Field Details
-
SUFFIX_ANNOTATIONS
ConstantSUFFIX_ANNOTATIONS="_annotations".- See Also:
-
-
Constructor Details
-
AnnotationIndexAugmenter
-
AnnotationIndexAugmenter
public AnnotationIndexAugmenter()
-
-
Method Details
-
augmentReIndexRecord
public void augmentReIndexRecord(String pi, String dataRepository, String namingScheme) throws IndexAugmenterException Description copied from interface:IndexAugmenterAny additional tasks this module needs to perform when re-indexing a record (e.g. putting additional files into the hotfolder).- Specified by:
augmentReIndexRecordin interfaceIndexAugmenter- Parameters:
pi- persistent identifier of the record to re-indexdataRepository- data repository name containing the recordnamingScheme- naming scheme used for hotfolder file names- Throws:
IndexAugmenterException
-
augmentReIndexPage
public boolean augmentReIndexPage(String pi, int page, org.apache.solr.common.SolrDocument doc, String dataRepository, String namingScheme) throws IndexAugmenterException Description copied from interface:IndexAugmenterAny additional tasks this module needs to perform when re-indexing a page (e.g. putting additional files into the hotfolder).- Specified by:
augmentReIndexPagein interfaceIndexAugmenter- Parameters:
pi- persistent identifier of the record containing the pagepage- page order number within the recorddoc- Solr document representing the pagedataRepository- data repository name containing the recordnamingScheme- naming scheme used for hotfolder file names- Returns:
- true if successful; false otherwise
- Throws:
IndexAugmenterException
-
hashCode
public int hashCode() -
equals
Two instances are equal if they contain the same annotations (disregarding order).
-