Class/Object

kafka.log

FileMessageSet

Related Docs: object FileMessageSet | package log

Permalink

class FileMessageSet extends MessageSet with Logging

An on-disk message set. An optional start and end position can be applied to the message set which will allow slicing a subset of the file.

Annotations
@nonthreadsafe()
Linear Supertypes
Logging, MessageSet, 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[kafka.message.MessageAndOffset] @scala.annotation.unchecked.uncheckedVariance], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileMessageSet
  2. Logging
  3. MessageSet
  4. Iterable
  5. IterableLike
  6. Equals
  7. GenIterable
  8. GenIterableLike
  9. Traversable
  10. GenTraversable
  11. GenericTraversableTemplate
  12. TraversableLike
  13. GenTraversableLike
  14. Parallelizable
  15. TraversableOnce
  16. GenTraversableOnce
  17. FilterMonadic
  18. HasNewBuilder
  19. AnyRef
  20. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileMessageSet(file: File, channel: FileChannel, start: Int, end: Int)

    Permalink

    Create a slice view of the file message set that begins and ends at the given byte offsets

  2. new FileMessageSet(file: File, mutable: Boolean)

    Permalink

    Create a file message set with mutable option

  3. new FileMessageSet(file: File, fileAlreadyExists: Boolean, initFileSize: Int, preallocate: Boolean)

    Permalink

    Create a file message set with no slicing, and with initFileSize and preallocate.

    Create a file message set with no slicing, and with initFileSize and preallocate. For windows NTFS and some old LINUX file system, set preallocate to true and initFileSize with one value (for example 512 * 1024 *1024 ) can improve the kafka produce performance. If it's new file and preallocate is true, end will be set to 0. Otherwise set to Int.MaxValue.

  4. new FileMessageSet(file: File)

    Permalink

    Create a file message set with no slicing

  5. new FileMessageSet(file: File, channel: FileChannel)

    Permalink

    Create a file message set with no slicing.

Type Members

  1. type Self = Iterable[MessageAndOffset]

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

    Permalink
    Definition Classes
    TraversableLike

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[B >: MessageAndOffset, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def addString(b: StringBuilder): StringBuilder

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. def append(messages: ByteBufferMessageSet): Unit

    Permalink

    Append these messages to the message set

  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def canEqual(that: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def close(): Unit

    Permalink

    Close this message set

  18. def collect[B, That](pf: PartialFunction[MessageAndOffset, B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def debug(msg: ⇒ String, e: ⇒ Throwable): Unit

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

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

    Permalink
    Definition Classes
    Logging
  29. def delete(): Boolean

    Permalink

    Delete this message set from the filesystem

    Delete this message set from the filesystem

    returns

    True iff this message set was deleted.

  30. def drop(n: Int): Iterable[MessageAndOffset]

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Logging
  38. def exists(p: (MessageAndOffset) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  39. def fatal(msg: ⇒ String, e: ⇒ Throwable): Unit

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

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

    Permalink
    Definition Classes
    Logging
  42. var file: File

    Permalink

    The file name for the underlying log data

  43. def filter(p: (MessageAndOffset) ⇒ Boolean): Iterable[MessageAndOffset]

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

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

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

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

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

    Permalink
    Definition Classes
    GenericTraversableTemplate
  49. def flush(): Unit

    Permalink

    Commit all written data to the physical disk

  50. def fold[A1 >: MessageAndOffset](z: A1)(op: (A1, A1) ⇒ A1): A1

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IterableLike
  59. def hasDefiniteSize: Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  61. def head: MessageAndOffset

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

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  63. def info(msg: ⇒ String, e: ⇒ Throwable): Unit

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

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

    Permalink
    Definition Classes
    Logging
  66. def init: Iterable[MessageAndOffset]

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

    Permalink
    Definition Classes
    TraversableLike
  68. def isEmpty: Boolean

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

    Permalink
    Definition Classes
    Any
  70. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  71. def iterator(maxMessageSize: Int): Iterator[MessageAndOffset]

    Permalink

    Get an iterator over the messages in the set.

    Get an iterator over the messages in the set. We only do shallow iteration here.

    maxMessageSize

    A limit on allowable message size to avoid allocating unbounded memory. If we encounter a message larger than this we throw an InvalidMessageException.

    returns

    The iterator.

  72. def iterator(): Iterator[MessageAndOffset]

    Permalink

    Get a shallow iterator over the messages in the set.

    Get a shallow iterator over the messages in the set.

    Definition Classes
    FileMessageSetMessageSet → IterableLike → GenIterableLike
  73. def last: MessageAndOffset

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

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  75. var logIdent: String

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

    Permalink
    Definition Classes
    Logging
  77. val loggerName: String

    Permalink
    Definition Classes
    Logging
  78. def map[B, That](f: (MessageAndOffset) ⇒ B)(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], B, That]): That

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  83. def mkString: String

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  91. def par: ParIterable[MessageAndOffset]

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  95. def read(position: Int, size: Int): FileMessageSet

    Permalink

    Return a message set which is a view into this set starting from the given position and with the given size limit.

    Return a message set which is a view into this set starting from the given position and with the given size limit.

    If the size is beyond the end of the file, the end will be based on the size of the file at the time of the read.

    If this message set is already sliced, the position will be taken relative to that slicing.

    position

    The start position to begin the read from

    size

    The number of bytes after the start position to include

    returns

    A sliced wrapper on this message set limited based on the given position and size

  96. def readInto(buffer: ByteBuffer, relativePosition: Int): ByteBuffer

    Permalink

    Read from the underlying file into the buffer starting at the given position

  97. def reduce[A1 >: MessageAndOffset](op: (A1, A1) ⇒ A1): A1

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def renameTo(f: File): Boolean

    Permalink

    Rename the file that backs this message set

    Rename the file that backs this message set

    returns

    true iff the rename was successful

  104. def repr: Iterable[MessageAndOffset]

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

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

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

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

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

    Permalink
    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.

  110. def searchFor(targetOffset: Long, startingPosition: Int): OffsetPosition

    Permalink

    Search forward for the file position of the last offset that is greater than or equal to the target offset and return its physical position.

    Search forward for the file position of the last offset that is greater than or equal to the target offset and return its physical position. If no such offsets are found, return null.

    targetOffset

    The offset to search for.

    startingPosition

    The starting position in the file to begin searching from.

  111. def seq: Iterable[MessageAndOffset]

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def sizeInBytes(): Int

    Permalink

    The number of bytes taken up by this file set

    The number of bytes taken up by this file set

    Definition Classes
    FileMessageSetMessageSet
  114. def slice(from: Int, until: Int): Iterable[MessageAndOffset]

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

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

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

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

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  119. def stringPrefix: String

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  121. def swallow(action: ⇒ Unit): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  128. def tail: Iterable[MessageAndOffset]

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  141. def toList: List[MessageAndOffset]

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

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

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

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

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

    Permalink

    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
  147. def toTraversable: Traversable[MessageAndOffset]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  148. def toVector: Vector[MessageAndOffset]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  149. def trace(msg: ⇒ String, e: ⇒ Throwable): Unit

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

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

    Permalink
    Definition Classes
    Logging
  152. def transpose[B](implicit asTraversable: (MessageAndOffset) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

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

  153. def trim(): Unit

    Permalink

    Trim file when close or roll to next file

  154. def truncateTo(targetSize: Int): Int

    Permalink

    Truncate this file message set to the given size in bytes.

    Truncate this file message set to the given size in bytes. Note that this API does no checking that the given size falls on a valid message boundary.

    targetSize

    The size to truncate to.

    returns

    The number of bytes truncated off

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Logging
  165. def withFilter(p: (MessageAndOffset) ⇒ Boolean): FilterMonadic[MessageAndOffset, Iterable[MessageAndOffset]]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic
  166. def writeTo(destChannel: GatheringByteChannel, writePosition: Long, size: Int): Int

    Permalink

    Write some of this set to the given channel.

    Write some of this set to the given channel.

    destChannel

    The channel to write to.

    writePosition

    The position in the message set to begin writing from.

    size

    The maximum number of bytes to write

    returns

    The number of bytes actually written.

    Definition Classes
    FileMessageSetMessageSet
  167. def zip[A1 >: MessageAndOffset, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[MessageAndOffset], (A1, B), That]): That

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

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

    Permalink
    Definition Classes
    IterableLike → GenIterableLike

Inherited from Logging

Inherited from MessageSet

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[kafka.message.MessageAndOffset] @scala.annotation.unchecked.uncheckedVariance]

Inherited from AnyRef

Inherited from Any

Ungrouped