twitter

Class Trender

  • java.lang.Object
    • twitter.Trender


  • public class Trender
    extends java.lang.Object
    A container for a hashmap that keeps the top ten of whatever is in the map.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Trender() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.lang.String s) 
      java.lang.Integer get(java.lang.String s)
      Get a hashMap element
      java.util.HashMap<java.lang.String,java.lang.Integer> getMap() 
      java.util.List<HashTagCount> getTopTen()
      Gets the top ten most frequent hashtags as a list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getMap

        public java.util.HashMap<java.lang.String,java.lang.Integer> getMap()
      • add

        public void add(java.lang.String s)
      • get

        public java.lang.Integer get(java.lang.String s)
        Get a hashMap element
        Parameters:
        s -
        Returns:
        an element of the hashmap
      • getTopTen

        public java.util.List<HashTagCountgetTopTen()
        Gets the top ten most frequent hashtags as a list.
        Returns:
        A ListContainer containing the top ten most frequent hashtags.
streamsx.topology @ IBMStreams GitHub