Class TermData<U,​I>

java.lang.Object
es.uam.eps.ir.relison.content.TermData<U,​I>
Type Parameters:
U - Type of the users.
I - Type of the content identifiers.

public class TermData<U,​I>
extends java.lang.Object
Posting information for a term in a content.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private I contentId
    Content identifier.
    private U creator
    Content creator.
    private double score
    Score value
    private long timestamp
    Creation timestamp.
  • Constructor Summary

    Constructors 
    Constructor Description
    TermData​(U creator, I contentId, long timestamp, double score)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    I getContentId()
    Gets the content identifier.
    U getCreator()
    Gets the creator.
    double getScore()
    Gets the score of the represented term in the document.
    long getTimestamp()
    Gets the creation timestamp of the content.

    Methods inherited from class java.lang.Object

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

    • creator

      private final U creator
      Content creator.
    • contentId

      private final I contentId
      Content identifier.
    • timestamp

      private final long timestamp
      Creation timestamp.
    • score

      private final double score
      Score value
  • Constructor Details

    • TermData

      public TermData​(U creator, I contentId, long timestamp, double score)
      Constructor
      Parameters:
      creator - content creator.
      contentId - content identifier.
      timestamp - creation timestamp.
      score - value of the term in the document.
  • Method Details

    • getCreator

      public U getCreator()
      Gets the creator.
      Returns:
      the creator.
    • getContentId

      public I getContentId()
      Gets the content identifier.
      Returns:
      the content identifier.
    • getTimestamp

      public long getTimestamp()
      Gets the creation timestamp of the content.
      Returns:
      the creation timestamp.
    • getScore

      public double getScore()
      Gets the score of the represented term in the document.
      Returns:
      the score of the represented term in the document.