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 contentsU- 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 Summary
Constructors Constructor Description AbstractIndividualContentIndexBuilder() -
Method Summary
Modifier and Type Method Description protected abstract IndividualContentIndex<C,U>getCoreIndividualIndex()Obtains the generated index.protected voidsaveUserContentMap(java.lang.String indexPath)Saves a file containing the relation between indexes and user identifiers.Methods inherited from class es.uam.eps.ir.relison.content.index.AbstractIndexBuilder
clear, getCoreIndex, saveContentMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.uam.eps.ir.relison.content.index.IndexBuilder
close, indexText, initMethods inherited from interface es.uam.eps.ir.relison.content.index.individual.IndividualContentIndexBuilder
indexText
-
Constructor Details
-
AbstractIndividualContentIndexBuilder
public AbstractIndividualContentIndexBuilder()
-
-
Method Details
-
getCoreIndividualIndex
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.IOExceptionSaves 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.
-