Packages

final class TemplateSet extends IpfixSet with Iterable[Template]

A TemplateSet represents a IpfixSet that contains one or more Templates or Option Templates.

To create a TemplateSet from an input ByteBuffer, use IpfixSet.fromBuffer.

To create a TemplateSet for export, use TemplateSet.empty to create an empty TemplateSet and then call TemplateSet.addTemplate to add Templates to it.

See also

The companion object for more details.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TemplateSet
  2. Iterable
  3. IterableFactoryDefaults
  4. IterableOps
  5. IterableOnceOps
  6. IterableOnce
  7. IpfixSet
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: Template](suffix: IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def addString(b: StringBuilder): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  6. final def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    IterableOnceOps
  8. def addTemplate(tmpl: Template): TemplateSet

    Adds a Template to the TemplateSet.

    Adds a Template to the TemplateSet. The Option setting of the Template must match that of the Template Set.

    Exceptions thrown

    MessageTooLongException when adding the Template would cause the size of the exported Template Set to exceed the maximum IPFIX message size.

    java.lang.RuntimeException when either the Template Set is read-only or the isOptionsTemplate setting of the Template does not match that of the Template Set.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def className: String
    Attributes
    protected[this]
    Definition Classes
    Iterable
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. final def coll: TemplateSet.this.type
    Attributes
    protected
    Definition Classes
    Iterable → IterableOps
  13. def collect[B](pf: PartialFunction[Template, B]): Iterable[B]
    Definition Classes
    IterableOps → IterableOnceOps
  14. def collectFirst[B](pf: PartialFunction[Template, B]): Option[B]
    Definition Classes
    IterableOnceOps
  15. def concat[B >: Template](suffix: IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps
  16. def copyToArray[B >: Template](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  17. def copyToArray[B >: Template](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  18. def copyToArray[B >: Template](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  19. def corresponds[B](that: IterableOnce[B])(p: (Template, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  20. def count(p: (Template) => Boolean): Int
    Definition Classes
    IterableOnceOps
  21. def drop(n: Int): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  22. def dropRight(n: Int): Iterable[Template]
    Definition Classes
    IterableOps
  23. def dropWhile(p: (Template) => Boolean): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  24. def empty: Iterable[Template]
    Definition Classes
    IterableFactoryDefaults → IterableOps
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  27. def exists(p: (Template) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  28. def filter(pred: (Template) => Boolean): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  29. def filterNot(pred: (Template) => Boolean): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  30. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  31. def find(p: (Template) => Boolean): Option[Template]
    Definition Classes
    IterableOnceOps
  32. def flatMap[B](f: (Template) => IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps → IterableOnceOps
  33. def flatten[B](implicit asIterable: (Template) => IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps → IterableOnceOps
  34. def fold[A1 >: Template](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  35. def foldLeft[B](z: B)(op: (B, Template) => B): B
    Definition Classes
    IterableOnceOps
  36. def foldRight[B](z: B)(op: (Template, B) => B): B
    Definition Classes
    IterableOnceOps
  37. def forall(p: (Template) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  38. def foreach[U](f: (Template) => U): Unit
    Definition Classes
    IterableOnceOps
  39. def fromSpecific(coll: IterableOnce[Template]): Iterable[Template]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  40. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. def groupBy[K](f: (Template) => K): Map[K, Iterable[Template]]
    Definition Classes
    IterableOps
  42. def groupMap[K, B](key: (Template) => K)(f: (Template) => B): Map[K, Iterable[B]]
    Definition Classes
    IterableOps
  43. def groupMapReduce[K, B](key: (Template) => K)(f: (Template) => B)(reduce: (B, B) => B): Map[K, B]
    Definition Classes
    IterableOps
  44. def grouped(size: Int): Iterator[Iterable[Template]]
    Definition Classes
    IterableOps
  45. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  46. def head: Template
    Definition Classes
    IterableOps
  47. def headOption: Option[Template]
    Definition Classes
    IterableOps
  48. final val id: Int
    Definition Classes
    IpfixSet
  49. def init: Iterable[Template]
    Definition Classes
    IterableOps
  50. def inits: Iterator[Iterable[Template]]
    Definition Classes
    IterableOps
  51. def isEmpty: Boolean
    Definition Classes
    IterableOnceOps
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. val isOptionsTemplate: Boolean

    Indicates whether this template set holds option templates.

  54. def isTraversableAgain: Boolean
    Definition Classes
    IterableOps → IterableOnceOps
  55. def iterableFactory: IterableFactory[Iterable]
    Definition Classes
    Iterable → IterableOps
  56. def iterator: Iterator[Template]

    Returns an Iterator over the Templates in the Set.

    Returns an Iterator over the Templates in the Set.

    Definition Classes
    TemplateSet → IterableOnce
  57. def knownSize: Int
    Definition Classes
    IterableOnce
  58. def last: Template
    Definition Classes
    IterableOps
  59. def lastOption: Option[Template]
    Definition Classes
    IterableOps
  60. def lazyZip[B](that: Iterable[B]): LazyZip2[Template, B, TemplateSet.this.type]
    Definition Classes
    Iterable
  61. def map[B](f: (Template) => B): Iterable[B]
    Definition Classes
    IterableOps → IterableOnceOps
  62. def max[B >: Template](implicit ord: Ordering[B]): Template
    Definition Classes
    IterableOnceOps
  63. def maxBy[B](f: (Template) => B)(implicit cmp: Ordering[B]): Template
    Definition Classes
    IterableOnceOps
  64. def maxByOption[B](f: (Template) => B)(implicit cmp: Ordering[B]): Option[Template]
    Definition Classes
    IterableOnceOps
  65. def maxOption[B >: Template](implicit ord: Ordering[B]): Option[Template]
    Definition Classes
    IterableOnceOps
  66. def min[B >: Template](implicit ord: Ordering[B]): Template
    Definition Classes
    IterableOnceOps
  67. def minBy[B](f: (Template) => B)(implicit cmp: Ordering[B]): Template
    Definition Classes
    IterableOnceOps
  68. def minByOption[B](f: (Template) => B)(implicit cmp: Ordering[B]): Option[Template]
    Definition Classes
    IterableOnceOps
  69. def minOption[B >: Template](implicit ord: Ordering[B]): Option[Template]
    Definition Classes
    IterableOnceOps
  70. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  71. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  72. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  73. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  74. def newSpecificBuilder: Builder[Template, Iterable[Template]]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  75. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  76. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  77. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  78. def octetLength: Int

    Returns the total octetLength of this TemplateSet when reading from or writing to a buffer.

  79. def partition(p: (Template) => Boolean): (Iterable[Template], Iterable[Template])
    Definition Classes
    IterableOps
  80. def partitionMap[A1, A2](f: (Template) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
    Definition Classes
    IterableOps
  81. def product[B >: Template](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  82. def recordIterator: Iterator[Record]

    Returns an Iterator over the Records in this IpfixSet, returning an empty Iterator if this is a TemplateSet.

    Returns an Iterator over the Records in this IpfixSet, returning an empty Iterator if this is a TemplateSet.

    Definition Classes
    IpfixSet
  83. def reduce[B >: Template](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  84. def reduceLeft[B >: Template](op: (B, Template) => B): B
    Definition Classes
    IterableOnceOps
  85. def reduceLeftOption[B >: Template](op: (B, Template) => B): Option[B]
    Definition Classes
    IterableOnceOps
  86. def reduceOption[B >: Template](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  87. def reduceRight[B >: Template](op: (Template, B) => B): B
    Definition Classes
    IterableOnceOps
  88. def reduceRightOption[B >: Template](op: (Template, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  89. def reversed: Iterable[Template]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  90. def scan[B >: Template](z: B)(op: (B, B) => B): Iterable[B]
    Definition Classes
    IterableOps
  91. def scanLeft[B](z: B)(op: (B, Template) => B): Iterable[B]
    Definition Classes
    IterableOps → IterableOnceOps
  92. def scanRight[B](z: B)(op: (Template, B) => B): Iterable[B]
    Definition Classes
    IterableOps
  93. final val session: Session
    Definition Classes
    IpfixSet
  94. def size: Int

    Returns the number of Templates in the Set.

    Returns the number of Templates in the Set.

    Definition Classes
    TemplateSet → IterableOnceOps → IpfixSet
  95. def sizeCompare(that: Iterable[_]): Int
    Definition Classes
    IterableOps
  96. def sizeCompare(otherSize: Int): Int
    Definition Classes
    IterableOps
  97. final def sizeIs: SizeCompareOps
    Definition Classes
    IterableOps
    Annotations
    @inline()
  98. def slice(from: Int, until: Int): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  99. def sliding(size: Int, step: Int): Iterator[Iterable[Template]]
    Definition Classes
    IterableOps
  100. def sliding(size: Int): Iterator[Iterable[Template]]
    Definition Classes
    IterableOps
  101. def span(p: (Template) => Boolean): (Iterable[Template], Iterable[Template])
    Definition Classes
    IterableOps → IterableOnceOps
  102. def splitAt(n: Int): (Iterable[Template], Iterable[Template])
    Definition Classes
    IterableOps → IterableOnceOps
  103. def stepper[S <: Stepper[_]](implicit shape: StepperShape[Template, S]): S
    Definition Classes
    IterableOnce
  104. def stringPrefix: String
    Attributes
    protected[this]
    Definition Classes
    Iterable
    Annotations
    @deprecatedOverriding()
  105. def sum[B >: Template](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  106. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  107. def tail: Iterable[Template]
    Definition Classes
    IterableOps
  108. def tails: Iterator[Iterable[Template]]
    Definition Classes
    IterableOps
  109. def take(n: Int): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  110. def takeRight(n: Int): Iterable[Template]
    Definition Classes
    IterableOps
  111. def takeWhile(p: (Template) => Boolean): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  112. def tapEach[U](f: (Template) => U): Iterable[Template]
    Definition Classes
    IterableOps → IterableOnceOps
  113. def templateIterator: Iterator[Template]

    Returns an Iterator over the Templates in this IpfixSet, returning an empty Iterator if this is a RecordSet.

    Returns an Iterator over the Templates in this IpfixSet, returning an empty Iterator if this is a RecordSet.

    Definition Classes
    IpfixSet
  114. def to[C1](factory: Factory[Template, C1]): C1
    Definition Classes
    IterableOnceOps
  115. def toArray[B >: Template](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  116. def toBuffer(outbuf: ByteBuffer): ByteBuffer

    Appends the TemplateSet to a buffer for writing to an IPFIX stream.

    Appends the TemplateSet to a buffer for writing to an IPFIX stream.

    Definition Classes
    TemplateSetIpfixSet
    Exceptions thrown

    java.nio.BufferOverflowException if there is not enough room in the buffer for all Templates in the TemplateSet. Because the method makes multiple writes to the buffer, the buffer's position is unknown if an error is thrown.

  117. final def toBuffer[B >: Template]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  118. def toIndexedSeq: IndexedSeq[Template]
    Definition Classes
    IterableOnceOps
  119. def toList: List[Template]
    Definition Classes
    IterableOnceOps
  120. def toMap[K, V](implicit ev: <:<[Template, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  121. def toSeq: Seq[Template]
    Definition Classes
    IterableOnceOps
  122. def toSet[B >: Template]: Set[B]
    Definition Classes
    IterableOnceOps
  123. def toString(): String
    Definition Classes
    Iterable → AnyRef → Any
  124. def toVector: Vector[Template]
    Definition Classes
    IterableOnceOps
  125. def transpose[B](implicit asIterable: (Template) => Iterable[B]): Iterable[Iterable[B]]
    Definition Classes
    IterableOps
  126. def unzip[A1, A2](implicit asPair: (Template) => (A1, A2)): (Iterable[A1], Iterable[A2])
    Definition Classes
    IterableOps
  127. def unzip3[A1, A2, A3](implicit asTriple: (Template) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
    Definition Classes
    IterableOps
  128. def view: View[Template]
    Definition Classes
    IterableOps
  129. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  130. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  131. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  132. def withFilter(p: (Template) => Boolean): WithFilter[Template, Iterable]
    Definition Classes
    IterableOps
  133. def zip[B](that: IterableOnce[B]): Iterable[(Template, B)]
    Definition Classes
    IterableOps
  134. def zipAll[A1 >: Template, B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
    Definition Classes
    IterableOps
  135. def zipWithIndex: Iterable[(Template, Int)]
    Definition Classes
    IterableOps → IterableOnceOps

Deprecated Value Members

  1. def ++:[B >: Template](that: IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable

  2. final def /:[B](z: B)(op: (B, Template) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  3. final def :\[B](z: B)(op: (Template, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  4. def aggregate[B](z: => B)(seqop: (B, Template) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) aggregate is not relevant for sequential collections. Use foldLeft(z)(seqop) instead.

  5. def companion: IterableFactory[Iterable]
    Definition Classes
    IterableOps
    Annotations
    @deprecated @deprecatedOverriding() @inline()
    Deprecated

    (Since version 2.13.0) Use iterableFactory instead

  6. final def copyToBuffer[B >: Template](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

  7. def hasDefiniteSize: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)

  8. final def repr: Iterable[Template]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside

  9. def seq: TemplateSet.this.type
    Definition Classes
    Iterable
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterable.seq always returns the iterable itself

  10. final def toIterable: TemplateSet.this.type
    Definition Classes
    Iterable → IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.7) toIterable is internal and will be made protected; its name is similar to toList or toSeq, but it doesn't copy non-immutable collections

  11. final def toIterator: Iterator[Template]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  12. final def toStream: Stream[Template]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

  13. final def toTraversable: Traversable[Template]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) toTraversable is internal and will be made protected; its name is similar to toList or toSeq, but it doesn't copy non-immutable collections

  14. def view(from: Int, until: Int): View[Template]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)

Inherited from Iterable[Template]

Inherited from IterableOnce[Template]

Inherited from IpfixSet

Inherited from AnyRef

Inherited from Any

Ungrouped