java.lang.Object
org.opencastproject.elasticsearch.index.objects.series.SeriesIndexUtils

public final class SeriesIndexUtils extends Object
Utility implementation to deal with the conversion of series and its corresponding index data structures.
  • 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 metadata
      unmarshaller - the unmarshaller to use
      Returns:
      the search result item
      Throws:
      IOException - if unmarshalling fails
    • toSearchMetadata

      public static SearchMetadataCollection toSearchMetadata(Series series)
      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