Class HashOccurrenceManager


  • public class HashOccurrenceManager
    extends Object
    Manager class used to deal with Hash Ocurrences.
    Since:
    6.1.0
    Version:
    $Revision: 13757 $ $Date: 2011-10-14 11:52:52 -0300 (Fri, 14 Oct 2011) $
    • Method Detail

      • getInstance

        public static HashOccurrenceManager getInstance()
        Singleton method that retrieves a instance of this class.
        Returns:
        an instance of HashOccurrenceManager
        Since:
        6.1.0
      • findTopOccurrencesOnWeek

        public List<HashOccurrence> findTopOccurrencesOnWeek​(Integer maxOccurrences,
                                                             ITransaction transaction,
                                                             String serviceInstanceId)
                                                      throws UnexpectedException
        Method used to retrieve the top-occurrences of a hashtag in the past week, i.e, the past 7 days.
        Parameters:
        maxOccurrences - The maximum number of hashtag occurrences desired to retrieve.
        transaction - The current transaction.
        Returns:
        the top hash occurrrences of the current day
        Throws:
        UnexpectedException
        Since:
        6.1.0
      • findTopOccurrencesOnDay

        public List<HashOccurrence> findTopOccurrencesOnDay​(Integer maxOccurrences,
                                                            ITransaction transaction,
                                                            String serviceInstanceId)
                                                     throws UnexpectedException
        Method used to retrieve the top-occurrences of a hashtag in the current day.
        Parameters:
        maxOccurrences - The maximum number of hashtag occurrences desired to retrieve.
        transaction - The current transaction.
        Returns:
        the top hash occurrrences of the current day
        Throws:
        UnexpectedException
        Since:
        6.1.0