kafka.message

MessageSet

abstract class MessageSet extends Iterable[MessageAndOffset]

A set of messages with offsets. A message set has a fixed serialized form, though the container for the bytes could be either in-memory or on disk. The format of each message is as follows: 8 byte message offset number 4 byte size containing an integer N N message bytes as described in the Message class

Linear Supertypes
Iterable[MessageAndOffset], IterableLike[MessageAndOffset, Iterable[MessageAndOffset]], Equals, GenIterable[MessageAndOffset], GenIterableLike[MessageAndOffset, Iterable[MessageAndOffset]], Traversable[MessageAndOffset], GenTraversable[MessageAndOffset], GenericTraversableTemplate[MessageAndOffset, Iterable], TraversableLike[MessageAndOffset, Iterable[MessageAndOffset]], GenTraversableLike[MessageAndOffset, Iterable[MessageAndOffset]], Parallelizable[MessageAndOffset, ParIterable[MessageAndOffset]], TraversableOnce[MessageAndOffset], GenTraversableOnce[MessageAndOffset], FilterMonadic[MessageAndOffset, Iterable[MessageAndOffset]], HasNewBuilder[MessageAndOffset, Iterable[MessageAndOffset]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MessageSet
  2. Iterable
  3. IterableLike
  4. Equals
  5. GenIterable
  6. GenIterableLike
  7. Traversable
  8. GenTraversable
  9. GenericTraversableTemplate
  10. TraversableLike
  11. GenTraversableLike
  12. Parallelizable
  13. TraversableOnce
  14. GenTraversableOnce
  15. FilterMonadic
  16. HasNewBuilder
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MessageSet()

Type Members

  1. type Self = Iterable[MessageAndOffset]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def iterator: Iterator[MessageAndOffset]

    Provides an iterator over the message/offset pairs in this set

    Provides an iterator over the message/offset pairs in this set

    Definition Classes
    MessageSet → IterableLike → GenIterableLike
  2. abstract def sizeInBytes: Int

    Gives the total size of this message set in bytes

  3. abstract def writeTo(channel: GatheringByteChannel, offset: Long, maxSize: Int): Int

    Write the messages in this set to the given channel starting at the given offset byte.

    Write the messages in this set to the given channel starting at the given offset byte. Less than the complete amount may be written, but no more than maxSize can be. The number of bytes written is returned

Concrete 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. def ++[B >: MessageAndOffset, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: MessageAndOffset, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike
  6. def ++:[B >: MessageAndOffset, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike
  7. def /:[B](z: B)(op: (B, MessageAndOffset) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :\[B](z: B)(op: (MessageAndOffset, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  11. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: B)(seqop: (B, MessageAndOffset) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def collect[B, That](pf: PartialFunction[MessageAndOffset, B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  19. def collectFirst[B](pf: PartialFunction[MessageAndOffset, B]): Option[B]

    Definition Classes
    TraversableOnce
  20. def companion: GenericCompanion[Iterable]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  21. def copyToArray[B >: MessageAndOffset](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  22. def copyToArray[B >: MessageAndOffset](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToArray[B >: MessageAndOffset](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. def copyToBuffer[B >: MessageAndOffset](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  25. def count(p: (MessageAndOffset) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def drop(n: Int): Iterable[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  27. def dropRight(n: Int): Iterable[MessageAndOffset]

    Definition Classes
    IterableLike
  28. def dropWhile(p: (MessageAndOffset) ⇒ Boolean): Iterable[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  29. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  31. def exists(p: (MessageAndOffset) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  32. def filter(p: (MessageAndOffset) ⇒ Boolean): Iterable[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  33. def filterNot(p: (MessageAndOffset) ⇒ Boolean): Iterable[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  34. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def find(p: (MessageAndOffset) ⇒ Boolean): Option[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  36. def flatMap[B, That](f: (MessageAndOffset) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  37. def flatten[B](implicit asTraversable: (MessageAndOffset) ⇒ GenTraversableOnce[B]): Iterable[B]

    Definition Classes
    GenericTraversableTemplate
  38. def fold[A1 >: MessageAndOffset](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def foldLeft[B](z: B)(op: (B, MessageAndOffset) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def foldRight[B](z: B)(op: (MessageAndOffset, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  41. def forall(p: (MessageAndOffset) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  42. def foreach[U](f: (MessageAndOffset) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  43. def genericBuilder[B]: Builder[B, Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
  44. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  45. def groupBy[K](f: (MessageAndOffset) ⇒ K): Map[K, Iterable[MessageAndOffset]]

    Definition Classes
    TraversableLike → GenTraversableLike
  46. def grouped(size: Int): Iterator[Iterable[MessageAndOffset]]

    Definition Classes
    IterableLike
  47. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  48. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  49. def head: MessageAndOffset

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  50. def headOption: Option[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  51. def init: Iterable[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  52. def inits: Iterator[Iterable[MessageAndOffset]]

    Definition Classes
    TraversableLike
  53. def isEmpty: Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  54. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  55. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  56. def last: MessageAndOffset

    Definition Classes
    TraversableLike → GenTraversableLike
  57. def lastOption: Option[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  58. def map[B, That](f: (MessageAndOffset) ⇒ B)(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  59. def max[B >: MessageAndOffset](implicit cmp: Ordering[B]): MessageAndOffset

    Definition Classes
    TraversableOnce → GenTraversableOnce
  60. def maxBy[B](f: (MessageAndOffset) ⇒ B)(implicit cmp: Ordering[B]): MessageAndOffset

    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def min[B >: MessageAndOffset](implicit cmp: Ordering[B]): MessageAndOffset

    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def minBy[B](f: (MessageAndOffset) ⇒ B)(implicit cmp: Ordering[B]): MessageAndOffset

    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  67. def newBuilder: Builder[MessageAndOffset, Iterable[MessageAndOffset]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  68. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. final def notify(): Unit

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

    Definition Classes
    AnyRef
  71. def par: ParIterable[MessageAndOffset]

    Definition Classes
    Parallelizable
  72. def parCombiner: Combiner[MessageAndOffset, ParIterable[MessageAndOffset]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  73. def partition(p: (MessageAndOffset) ⇒ Boolean): (Iterable[MessageAndOffset], Iterable[MessageAndOffset])

    Definition Classes
    TraversableLike → GenTraversableLike
  74. def product[B >: MessageAndOffset](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  75. def reduce[A1 >: MessageAndOffset](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def reduceLeft[B >: MessageAndOffset](op: (B, MessageAndOffset) ⇒ B): B

    Definition Classes
    TraversableOnce
  77. def reduceLeftOption[B >: MessageAndOffset](op: (B, MessageAndOffset) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def reduceOption[A1 >: MessageAndOffset](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def reduceRight[B >: MessageAndOffset](op: (MessageAndOffset, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  80. def reduceRightOption[B >: MessageAndOffset](op: (MessageAndOffset, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def repr: Iterable[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  82. def reversed: List[MessageAndOffset]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  83. def sameElements[B >: MessageAndOffset](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  84. def scan[B >: MessageAndOffset, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  85. def scanLeft[B, That](z: B)(op: (B, MessageAndOffset) ⇒ B)(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  86. def scanRight[B, That](z: B)(op: (MessageAndOffset, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  87. def seq: Iterable[MessageAndOffset]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  88. def size: Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  89. def slice(from: Int, until: Int): Iterable[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  90. def sliding(size: Int, step: Int): Iterator[Iterable[MessageAndOffset]]

    Definition Classes
    IterableLike
  91. def sliding(size: Int): Iterator[Iterable[MessageAndOffset]]

    Definition Classes
    IterableLike
  92. def span(p: (MessageAndOffset) ⇒ Boolean): (Iterable[MessageAndOffset], Iterable[MessageAndOffset])

    Definition Classes
    TraversableLike → GenTraversableLike
  93. def splitAt(n: Int): (Iterable[MessageAndOffset], Iterable[MessageAndOffset])

    Definition Classes
    TraversableLike → GenTraversableLike
  94. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  95. def sum[B >: MessageAndOffset](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  97. def tail: Iterable[MessageAndOffset]

    Definition Classes
    TraversableLike → GenTraversableLike
  98. def tails: Iterator[Iterable[MessageAndOffset]]

    Definition Classes
    TraversableLike
  99. def take(n: Int): Iterable[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  100. def takeRight(n: Int): Iterable[MessageAndOffset]

    Definition Classes
    IterableLike
  101. def takeWhile(p: (MessageAndOffset) ⇒ Boolean): Iterable[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  102. def thisCollection: Iterable[MessageAndOffset]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  103. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, MessageAndOffset, Col[MessageAndOffset]]): Col[MessageAndOffset]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  104. def toArray[B >: MessageAndOffset](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def toBuffer[B >: MessageAndOffset]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def toCollection(repr: Iterable[MessageAndOffset]): Iterable[MessageAndOffset]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  107. def toIndexedSeq: IndexedSeq[MessageAndOffset]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def toIterable: Iterable[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  109. def toIterator: Iterator[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  110. def toList: List[MessageAndOffset]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def toMap[T, U](implicit ev: <:<[MessageAndOffset, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toSeq: Seq[MessageAndOffset]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def toSet[B >: MessageAndOffset]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def toStream: Stream[MessageAndOffset]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  115. def toString(): String

    Print this message set's contents.

    Print this message set's contents. If the message set has more than 100 messages, just print the first 100.

    Definition Classes
    MessageSet → TraversableLike → AnyRef → Any
  116. def toTraversable: Traversable[MessageAndOffset]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  117. def toVector: Vector[MessageAndOffset]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  118. def transpose[B](implicit asTraversable: (MessageAndOffset) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  119. def unzip[A1, A2](implicit asPair: (MessageAndOffset) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Definition Classes
    GenericTraversableTemplate
  120. def unzip3[A1, A2, A3](implicit asTriple: (MessageAndOffset) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

    Definition Classes
    GenericTraversableTemplate
  121. def view(from: Int, until: Int): IterableView[MessageAndOffset, Iterable[MessageAndOffset]]

    Definition Classes
    IterableLike → TraversableLike
  122. def view: IterableView[MessageAndOffset, Iterable[MessageAndOffset]]

    Definition Classes
    IterableLike → TraversableLike
  123. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  126. def withFilter(p: (MessageAndOffset) ⇒ Boolean): FilterMonadic[MessageAndOffset, Iterable[MessageAndOffset]]

    Definition Classes
    TraversableLike → FilterMonadic
  127. def zip[A1 >: MessageAndOffset, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  128. def zipAll[B, A1 >: MessageAndOffset, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  129. def zipWithIndex[A1 >: MessageAndOffset, That](implicit bf: CanBuildFrom[Iterable[MessageAndOffset], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def /:\[A1 >: MessageAndOffset](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Iterable[MessageAndOffset]

Inherited from IterableLike[MessageAndOffset, Iterable[MessageAndOffset]]

Inherited from Equals

Inherited from GenIterable[MessageAndOffset]

Inherited from GenIterableLike[MessageAndOffset, Iterable[MessageAndOffset]]

Inherited from Traversable[MessageAndOffset]

Inherited from GenTraversable[MessageAndOffset]

Inherited from GenericTraversableTemplate[MessageAndOffset, Iterable]

Inherited from TraversableLike[MessageAndOffset, Iterable[MessageAndOffset]]

Inherited from GenTraversableLike[MessageAndOffset, Iterable[MessageAndOffset]]

Inherited from Parallelizable[MessageAndOffset, ParIterable[MessageAndOffset]]

Inherited from TraversableOnce[MessageAndOffset]

Inherited from GenTraversableOnce[MessageAndOffset]

Inherited from FilterMonadic[MessageAndOffset, Iterable[MessageAndOffset]]

Inherited from HasNewBuilder[MessageAndOffset, Iterable[MessageAndOffset]]

Inherited from AnyRef

Inherited from Any

Ungrouped