Class

kafka.consumer

RangeAssignor

Related Doc: package consumer

Permalink

class RangeAssignor extends PartitionAssignor with Logging

Range partitioning works on a per-topic basis. For each topic, we lay out the available partitions in numeric order and the consumer threads in lexicographic order. We then divide the number of partitions by the total number of consumer streams (threads) to determine the number of partitions to assign to each consumer. If it does not evenly divide, then the first few consumers will have one extra partition. For example, suppose there are two consumers C1 and C2 with two streams each, and there are five available partitions (p0, p1, p2, p3, p4). So each consumer thread will get at least one partition and the first consumer thread will get one extra partition. So the assignment will be: p0 -> C1-0, p1 -> C1-0, p2 -> C1-1, p3 -> C2-0, p4 -> C2-1

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RangeAssignor
  2. Logging
  3. PartitionAssignor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RangeAssignor()

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def assign(ctx: AssignmentContext): Pool[String, Map[TopicAndPartition, ConsumerThreadId]]

    Permalink

    Assigns partitions to consumer instances in a group.

    Assigns partitions to consumer instances in a group.

    returns

    An assignment map of partition to this consumer group. This includes assignments for threads that belong to the same consumer group.

    Definition Classes
    RangeAssignorPartitionAssignor
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def debug(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  8. def debug(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  9. def debug(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def error(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  13. def error(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  14. def error(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  15. def fatal(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  16. def fatal(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  17. def fatal(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  18. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def info(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  22. def info(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  23. def info(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. var logIdent: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. lazy val logger: Logger

    Permalink
    Definition Classes
    Logging
  27. val loggerName: String

    Permalink
    Definition Classes
    Logging
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def swallow(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  32. def swallowDebug(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  33. def swallowError(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  34. def swallowInfo(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  35. def swallowTrace(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  36. def swallowWarn(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def trace(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  40. def trace(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  41. def trace(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def warn(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  46. def warn(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  47. def warn(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging

Inherited from Logging

Inherited from PartitionAssignor

Inherited from AnyRef

Inherited from Any

Ungrouped