Class/Object

com.actian.spark_vector.datastream

DataStreamPartitionAssignment

Related Docs: object DataStreamPartitionAssignment | package datastream

Permalink

final class DataStreamPartitionAssignment extends BipartiteAssignment

Class that contains the matching algorithm used to assign RDD partitions to Vector hosts, based on affinities.

The algorithm used here tries to assign partitions to hosts for which they have affinity. For this reason only partitions that have affinity to at least one host are matched here, the others are assigned to a random node. Also, this algorithm aims to minimize the maximum number of partitions that a host will have assigned, i.e. the most data a host will process

Linear Supertypes
BipartiteAssignment, Profiling, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataStreamPartitionAssignment
  2. BipartiteAssignment
  3. Profiling
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DataStreamPartitionAssignment(affinities: Array[_ <: Seq[String]], endpoints: IndexedSeq[VectorEndpoint])

    Permalink

    affinities

    Affinities of each partition to host names represented as an Array of Seq[String]

    endpoints

    Vector end points

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit val accs: ProfAccMap

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val assignment: IndexedSeq[ArrayBuffer[Int]]

    Permalink

    For each end point in endpoints, a sequence of partition indices that are assigned to that end point

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val edges: IndexedSeq[IndexedSeq[Int]]

    Permalink
    Attributes
    protected
    Definition Classes
    DataStreamPartitionAssignment → BipartiteAssignment
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  17. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. lazy val matching: IndexedSeq[IndexedSeq[Int]]

    Permalink

    Get an assignment of partitions to hosts satisfying the properties described in the header

    Get an assignment of partitions to hosts satisfying the properties described in the header

    returns

    One sequence of partition indexes assigned to each host

    Definition Classes
    BipartiteAssignment
  30. val nA: Int

    Permalink
    Attributes
    protected
    Definition Classes
    DataStreamPartitionAssignment → BipartiteAssignment
  31. val nB: Int

    Permalink
    Attributes
    protected
    Definition Classes
    DataStreamPartitionAssignment → BipartiteAssignment
  32. implicit def nameToAcc(name: String)(implicit pmap: ProfAccMap): ProfAcc

    Permalink
    Definition Classes
    Profiling
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def profile(acc: ProfAcc)(implicit pmap: ProfAccMap): Unit

    Permalink

    Start measuring time and record it in acc.

    Start measuring time and record it in acc.

    Definition Classes
    Profiling
    Note

    This function should always be used in combination with profileEnd in a similar way with opening and closing a sequence of brackets, where the code between a profile call and its corresponding profileEnd will have its execution time measured and stored into acc

  37. def profileEnd(implicit pmap: ProfAccMap): Unit

    Permalink

    Finish profiling the current section of code, as determined by the most recent profile call

    Finish profiling the current section of code, as determined by the most recent profile call

    Definition Classes
    Profiling
  38. def profileInit(names: String*): ProfAccMap

    Permalink

    Initialize profiling

    Initialize profiling

    Definition Classes
    Profiling
  39. def profilePrint(implicit pmap: ProfAccMap): Unit

    Permalink

    Print profile information using log

    Print profile information using log

    Definition Classes
    Profiling
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  41. val target: Seq[Int]

    Permalink
    Attributes
    protected
    Definition Classes
    DataStreamPartitionAssignment → BipartiteAssignment
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BipartiteAssignment

Inherited from Profiling

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped