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 Summary

    Modifier and Type
    Method
    Description
    static org.opencastproject.elasticsearch.impl.SearchMetadataCollection
    Creates search metadata from a series such that the event can be stored in the search index.
    static Series
    toSeries(org.opencastproject.elasticsearch.impl.SearchMetadataCollection metadata, javax.xml.bind.Unmarshaller unmarshaller)
    Creates a search result item based on the data returned from the search index.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toSeries

      public static Series toSeries(org.opencastproject.elasticsearch.impl.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 org.opencastproject.elasticsearch.impl.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