Class SeriesIndexUtils
java.lang.Object
org.opencastproject.elasticsearch.index.objects.series.SeriesIndexUtils
Utility implementation to deal with the conversion of series and its corresponding index data structures.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchMetadataCollectiontoSearchMetadata(Series series) Creates search metadata from a series such that the event can be stored in the search index.static SeriestoSeries(SearchMetadataCollection metadata, javax.xml.bind.Unmarshaller unmarshaller) Creates a search result item based on the data returned from the search index.
-
Method Details
-
toSeries
public static Series toSeries(SearchMetadataCollection metadata, javax.xml.bind.Unmarshaller unmarshaller) throws IOException Creates a search result item based on the data returned from the search index.- Parameters:
metadata- the search metadataunmarshaller- the unmarshaller to use- Returns:
- the search result item
- Throws:
IOException- if unmarshalling fails
-
toSearchMetadata
Creates search metadata from a series such that the event can be stored in the search index.- Parameters:
series- the series- Returns:
- the set of metadata
-