com.twitter.cassovary.graph.tourist

PathsCounter

class PathsCounter extends NodeTourist with InfoKeeper[Object2IntMap[DirectedPath]]

A tourist that keeps track of the paths ending at each node. It keeps at most numTopPathsPerNode paths per node.

TODO: instead of homeNodeIds, this func should take a function param of Node => Boolean

Linear Supertypes
InfoKeeper[Object2IntMap[DirectedPath]], NodeTourist, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PathsCounter
  2. InfoKeeper
  3. NodeTourist
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PathsCounter()

  2. new PathsCounter(numTopPathsPerNode: Int, homeNodeIds: Seq[Int])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clear(): Unit

    Clear underlying map

    Clear underlying map

    Definition Classes
    PathsCounterInfoKeeper
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. def infoAllNodes: Map[Int, Object2IntMap[DirectedPath]]

    Get info for all nodes (immutable version visible outside)

    Get info for all nodes (immutable version visible outside)

    Definition Classes
    InfoKeeper
  15. def infoOfNode(id: Int): Option[Object2IntMap[DirectedPath]]

    Get information of a paticular node by its id

    Get information of a paticular node by its id

    Definition Classes
    PathsCounterInfoKeeper
  16. def infoOfNode(node: Node): Option[Object2IntMap[DirectedPath]]

    Get information of a particular node.

    Get information of a particular node.

    Definition Classes
    InfoKeeper
  17. def infoPerNode: Map[Int, Object2IntMap[DirectedPath]]

    Definition Classes
    PathsCounterInfoKeeper
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val onlyOnce: Boolean

    Keep info only the first time a node is seen

    Keep info only the first time a node is seen

    Definition Classes
    InfoKeeper
  23. def recordInfo(id: Int, info: Object2IntMap[DirectedPath]): Unit

    Record information info of node id

    Record information info of node id

    Definition Classes
    PathsCounterInfoKeeper
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def visit(id: Int): Unit

    Visit a node by its id

    Visit a node by its id

    Definition Classes
    PathsCounterNodeTourist
  27. def visit(node: Node): Unit

    Visit a node

    Visit a node

    Definition Classes
    NodeTourist
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from InfoKeeper[Object2IntMap[DirectedPath]]

Inherited from NodeTourist

Inherited from AnyRef

Inherited from Any

Ungrouped