Class AbstractIndividualContentIndexBuilder<C,​U>

java.lang.Object
es.uam.eps.ir.relison.content.index.AbstractIndexBuilder<C>
es.uam.eps.ir.relison.content.index.individual.AbstractIndividualContentIndexBuilder<C,​U>
Type Parameters:
C - Type of the contents
U - Type of the users.
All Implemented Interfaces:
IndexBuilder<C>, IndividualContentIndexBuilder<C,​U>
Direct Known Subclasses:
WrapperIndividualContentIndexBuilder

public abstract class AbstractIndividualContentIndexBuilder<C,​U>
extends AbstractIndexBuilder<C>
implements IndividualContentIndexBuilder<C,​U>
Abstract implementation of an individual content index.
  • Constructor Details

  • Method Details

    • getCoreIndividualIndex

      protected abstract IndividualContentIndex<C,​U> getCoreIndividualIndex() throws java.io.IOException
      Obtains the generated index.
      Returns:
      the generated index.
      Throws:
      java.io.IOException - if something fails while creating such index.
    • saveUserContentMap

      protected void saveUserContentMap​(java.lang.String indexPath) throws java.io.IOException
      Saves a file containing the relation between indexes and user identifiers.
      Parameters:
      indexPath - the path of the index.
      Throws:
      java.io.IOException - if something fails while writing the map.