Packages

  • package root

    This is documentation for Mothra, a collection of Scala and Spark library functions for working with Internet-related data.

    This is documentation for Mothra, a collection of Scala and Spark library functions for working with Internet-related data. Some modules contain APIs of general use to Scala programmers. Some modules make those tools more useful on Spark data-processing systems.

    Please see the documentation for the individual packages for more details on their use.

    Scala Packages

    These packages are useful in Scala code without involving Spark:

    org.cert.netsa.data

    This package, which is collected as the netsa-data library, provides types for working with various kinds of information:

    org.cert.netsa.io.ipfix

    The netsa-io-ipfix library provides tools for reading and writing IETF IPFIX data from various connections and files.

    org.cert.netsa.io.silk

    To read and write CERT NetSA SiLK file formats and configuration files, use the netsa-io-silk library.

    org.cert.netsa.util

    The "junk drawer" of netsa-util so far provides only two features: First, a method for equipping Scala scala.collection.Iterators with exception handling. And second, a way to query the versions of NetSA libraries present in a JVM at runtime.

    Spark Packages

    These packages require the use of Apache Spark:

    org.cert.netsa.mothra.datasources

    Spark datasources for CERT file types. This package contains utility features which add methods to Apache Spark DataFrameReader objects, allowing IPFIX and SiLK flows to be opened using simple spark.read... calls.

    The mothra-datasources library contains both IPFIX and SiLK functionality, while mothra-datasources-ipfix and mothra-datasources-silk contain only what's needed for the named datasource.

    org.cert.netsa.mothra.analysis

    A grab-bag of analysis helper functions and example analyses.

    org.cert.netsa.mothra.functions

    This single Scala object provides Spark SQL functions for working with network data. It is the entirety of the mothra-functions library.

    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package cert
    Definition Classes
    org
  • package netsa
    Definition Classes
    cert
  • package io
    Definition Classes
    netsa
  • package silk

    SiLK file formats, data types, and methods to read them, including support for reading them from Spark.

    SiLK file formats, data types, and methods to read them, including support for reading them from Spark.

    RWRec is the type of SiLK flow records.

    You can use RWRecReader to read SiLK files from Scala, including compressed files if Hadoop native libraries are available. For example:

    import org.cert.netsa.io.silk.RWRecReader
    import java.io.FileInputStream
    
    val inputFile = new FileInputStream("path/to/silk/rw/file")
    
    for ( rec <- RWRecReader.ofInputStream(inputFile) ) {
      println(rec.sIP)
    }
    Definition Classes
    io
    See also

    org.cert.netsa.mothra.datasources.silk.flow for working with SiLK data in Spark using the Mothra SiLK datasource.

  • package config
    Definition Classes
    silk
  • package io
    Definition Classes
    silk
  • BagDataType
  • BagReader
  • BagResult
  • BagWriter
  • CompressionMethod
  • FileFormat
  • FlowType
  • Header
  • HeaderEntry
  • IPSetReader
  • IPSetWriter
  • PrefixMapProtocolPortPair
  • PrefixMapReader
  • PrefixMapResult
  • RWRec
  • RWRecReader
  • RWRecWriter
  • Sensor
  • SilkConfig
  • SilkDataFormatException
  • SilkVersion
  • TCPState

class RWRecReader extends Iterator[RWRec]

A reader of SiLK flow records. This is usable as an Iterator over RWRec records.

See the companion object for more details.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RWRecReader
  2. Iterator
  3. IterableOnceOps
  4. IterableOnce
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
    Definition Classes
    Iterator

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: RWRec](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def buffered: BufferedIterator[RWRec]
    Definition Classes
    Iterator
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def collect[B](pf: PartialFunction[RWRec, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  12. def collectFirst[B](pf: PartialFunction[RWRec, B]): Option[B]
    Definition Classes
    IterableOnceOps
  13. def concat[B >: RWRec](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  14. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  15. def copyToArray[B >: RWRec](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  16. def copyToArray[B >: RWRec](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  17. def copyToArray[B >: RWRec](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  18. def corresponds[B](that: IterableOnce[B])(p: (RWRec, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  19. def count(p: (RWRec) => Boolean): Int
    Definition Classes
    IterableOnceOps
  20. def distinct: Iterator[RWRec]
    Definition Classes
    Iterator
  21. def distinctBy[B](f: (RWRec) => B): Iterator[RWRec]
    Definition Classes
    Iterator
  22. def drop(n: Int): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  23. def dropWhile(p: (RWRec) => Boolean): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  24. def duplicate: (Iterator[RWRec], Iterator[RWRec])
    Definition Classes
    Iterator
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  27. def exists(p: (RWRec) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  28. def filter(p: (RWRec) => Boolean): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  29. def filterNot(p: (RWRec) => Boolean): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  30. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  31. def find(p: (RWRec) => Boolean): Option[RWRec]
    Definition Classes
    IterableOnceOps
  32. def flatMap[B](f: (RWRec) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  33. def flatten[B](implicit ev: (RWRec) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  34. def fold[A1 >: RWRec](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  35. def foldLeft[B](z: B)(op: (B, RWRec) => B): B
    Definition Classes
    IterableOnceOps
  36. def foldRight[B](z: B)(op: (RWRec, B) => B): B
    Definition Classes
    IterableOnceOps
  37. def forall(p: (RWRec) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  38. def foreach[U](f: (RWRec) => U): Unit
    Definition Classes
    IterableOnceOps
  39. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def grouped[B >: RWRec](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  41. def hasNext: Boolean
    Definition Classes
    RWRecReader → Iterator
  42. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. val header: Header
  44. def indexOf[B >: RWRec](elem: B, from: Int): Int
    Definition Classes
    Iterator
  45. def indexOf[B >: RWRec](elem: B): Int
    Definition Classes
    Iterator
  46. def indexWhere(p: (RWRec) => Boolean, from: Int): Int
    Definition Classes
    Iterator
  47. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  48. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  49. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  50. final def iterator: Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  51. def knownSize: Int
    Definition Classes
    IterableOnce
  52. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  53. def map[B](f: (RWRec) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  54. def max[B >: RWRec](implicit ord: Ordering[B]): RWRec
    Definition Classes
    IterableOnceOps
  55. def maxBy[B](f: (RWRec) => B)(implicit cmp: Ordering[B]): RWRec
    Definition Classes
    IterableOnceOps
  56. def maxByOption[B](f: (RWRec) => B)(implicit cmp: Ordering[B]): Option[RWRec]
    Definition Classes
    IterableOnceOps
  57. def maxOption[B >: RWRec](implicit ord: Ordering[B]): Option[RWRec]
    Definition Classes
    IterableOnceOps
  58. def min[B >: RWRec](implicit ord: Ordering[B]): RWRec
    Definition Classes
    IterableOnceOps
  59. def minBy[B](f: (RWRec) => B)(implicit cmp: Ordering[B]): RWRec
    Definition Classes
    IterableOnceOps
  60. def minByOption[B](f: (RWRec) => B)(implicit cmp: Ordering[B]): Option[RWRec]
    Definition Classes
    IterableOnceOps
  61. def minOption[B >: RWRec](implicit ord: Ordering[B]): Option[RWRec]
    Definition Classes
    IterableOnceOps
  62. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  63. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  64. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  65. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  66. def next(): RWRec
    Definition Classes
    RWRecReader → Iterator
  67. def nextOption(): Option[RWRec]
    Definition Classes
    Iterator
  68. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  69. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  70. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  71. def padTo[B >: RWRec](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  72. def partition(p: (RWRec) => Boolean): (Iterator[RWRec], Iterator[RWRec])
    Definition Classes
    Iterator
  73. def patch[B >: RWRec](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  74. def product[B >: RWRec](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  75. def reduce[B >: RWRec](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  76. def reduceLeft[B >: RWRec](op: (B, RWRec) => B): B
    Definition Classes
    IterableOnceOps
  77. def reduceLeftOption[B >: RWRec](op: (B, RWRec) => B): Option[B]
    Definition Classes
    IterableOnceOps
  78. def reduceOption[B >: RWRec](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  79. def reduceRight[B >: RWRec](op: (RWRec, B) => B): B
    Definition Classes
    IterableOnceOps
  80. def reduceRightOption[B >: RWRec](op: (RWRec, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  81. def reversed: Iterable[RWRec]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  82. def sameElements[B >: RWRec](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  83. def scanLeft[B](z: B)(op: (B, RWRec) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  84. def size: Int
    Definition Classes
    IterableOnceOps
  85. def slice(from: Int, until: Int): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  86. def sliceIterator(from: Int, until: Int): Iterator[RWRec]
    Attributes
    protected
    Definition Classes
    Iterator
  87. def sliding[B >: RWRec](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  88. def span(p: (RWRec) => Boolean): (Iterator[RWRec], Iterator[RWRec])
    Definition Classes
    Iterator → IterableOnceOps
  89. def splitAt(n: Int): (Iterator[RWRec], Iterator[RWRec])
    Definition Classes
    IterableOnceOps
  90. def stepper[S <: Stepper[_]](implicit shape: StepperShape[RWRec, S]): S
    Definition Classes
    IterableOnce
  91. def sum[B >: RWRec](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  92. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  93. def take(n: Int): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  94. def takeWhile(p: (RWRec) => Boolean): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  95. def tapEach[U](f: (RWRec) => U): Iterator[RWRec]
    Definition Classes
    Iterator → IterableOnceOps
  96. def to[C1](factory: Factory[RWRec, C1]): C1
    Definition Classes
    IterableOnceOps
  97. def toArray[B >: RWRec](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  98. final def toBuffer[B >: RWRec]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  99. def toIndexedSeq: IndexedSeq[RWRec]
    Definition Classes
    IterableOnceOps
  100. def toList: List[RWRec]
    Definition Classes
    IterableOnceOps
  101. def toMap[K, V](implicit ev: <:<[RWRec, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  102. def toSeq: Seq[RWRec]
    Definition Classes
    IterableOnceOps
  103. def toSet[B >: RWRec]: Set[B]
    Definition Classes
    IterableOnceOps
  104. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  105. def toVector: Vector[RWRec]
    Definition Classes
    IterableOnceOps
  106. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  107. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  108. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  109. def withFilter(p: (RWRec) => Boolean): Iterator[RWRec]
    Definition Classes
    Iterator
  110. def zip[B](that: IterableOnce[B]): Iterator[(RWRec, B)]
    Definition Classes
    Iterator
  111. def zipAll[A1 >: RWRec, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  112. def zipWithIndex: Iterator[(RWRec, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

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

    (Since version 2.13.0) Use foldLeft instead of /:

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

    (Since version 2.13.0) Use foldRight instead of :\

  3. def aggregate[B](z: => B)(seqop: (B, RWRec) => 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.

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

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

  5. final def hasDefiniteSize: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty

  6. def scanRight[B](z: B)(op: (RWRec, B) => B): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Call scanRight on an Iterable instead.

  7. def seq: RWRecReader.this.type
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterator.seq always returns the iterator itself

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

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

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

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

Inherited from Iterator[RWRec]

Inherited from IterableOnce[RWRec]

Inherited from AnyRef

Inherited from Any

Ungrouped