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 data

    The org.cert.netsa.data.net package is for working with network-related data.

    The org.cert.netsa.data.net package is for working with network-related data. This includes types for IP addresses, port numbers, protocol numbers, and the like. Many of these types have namespaces managed by IANA, and the types provide mechanisms for looking up names from numbers and vice-versa based on embedded copies of IANA's tables.

    In org.cert.netsa.data.time you can find an Ordering for Java LocalDate objects, and a type LocalDateSet for working with sets of those dates.

    Finally, org.cert.netsa.data.unsigned contains types for working with unsigned integer values.

    Definition Classes
    netsa
  • package unsigned

    A variety of unsigned integral types, and new methods on the built-in integral types for working with them.

    A variety of unsigned integral types, and new methods on the built-in integral types for working with them.

    Import the implicit conversions from this package to add toUInt methods and the like to standard Scala types.

    Features

    The overall pattern for each integral type (UByte, UShort, UInt, ULong) is the following (using UByte as the example):

    Unsigned alues can be constructed from signed Byte and Int values using UByte(b: Byte) and UByte(i: Int).

    x.toUByte, x.toUShort, etc. and x.toByte, x.toShort, etc. methods are included.

    All of the expected comparison, arithmetic, and bitwise operations are present. In addition, UByte extends Comparable, and equipped with an Ordering and membership in the Integral type class.

    UByte.MinValue and UByte.MaxValue are defined.

    If you import implicits.ByteUnsignedConversions, then x.toUByte, etc. methods will be available by implicit conversion on Byte values.

    Definition Classes
    data
    Note

    If you are concerned with efficiency, do not create arrays of unsigned values, as the will be boxed into objects. Instead, create arrays of normal signed values and then convert to and from unsigned when getting and setting the values.

  • object UByte
    Definition Classes
    unsigned
  • UByteIsIntegral
  • UByteOrdering

implicit object UByteIsIntegral extends UByteIsIntegral with UByteOrdering

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UByteIsIntegral
  2. UByteOrdering
  3. UByteIsIntegral
  4. Integral
  5. Numeric
  6. Ordering
  7. PartialOrdering
  8. Equiv
  9. Serializable
  10. Comparator
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class IntegralOps extends scala.math.Integral.NumericOps
    Definition Classes
    Integral
  2. class NumericOps extends AnyRef
    Definition Classes
    Numeric
  3. class OrderingOps extends AnyRef
    Definition Classes
    Ordering

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def abs(x: UByte): UByte
    Definition Classes
    Numeric
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def compare(x: UByte, y: UByte): Int
    Definition Classes
    UByteOrdering → Ordering → Comparator
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def equiv(x: UByte, y: UByte): Boolean
    Definition Classes
    Ordering → PartialOrdering → Equiv
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def fromInt(x: Int): UByte
    Definition Classes
    UByteIsIntegral → Numeric
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def gt(x: UByte, y: UByte): Boolean
    Definition Classes
    Ordering → PartialOrdering
  15. def gteq(x: UByte, y: UByte): Boolean
    Definition Classes
    Ordering → PartialOrdering
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isReverseOf(other: Ordering[_]): Boolean
    Definition Classes
    Ordering
  19. def lt(x: UByte, y: UByte): Boolean
    Definition Classes
    Ordering → PartialOrdering
  20. def lteq(x: UByte, y: UByte): Boolean
    Definition Classes
    Ordering → PartialOrdering
  21. def max[U <: UByte](x: U, y: U): U
    Definition Classes
    Ordering
  22. def min[U <: UByte](x: U, y: U): U
    Definition Classes
    Ordering
  23. def minus(x: UByte, y: UByte): UByte
    Definition Classes
    UByteIsIntegral → Numeric
  24. implicit def mkNumericOps(lhs: UByte): IntegralOps
    Definition Classes
    Integral → Numeric
  25. implicit def mkOrderingOps(lhs: UByte): OrderingOps
    Definition Classes
    Ordering
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def negate(x: UByte): UByte
    Definition Classes
    UByteIsIntegral → Numeric
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def on[U](f: (U) => UByte): Ordering[U]
    Definition Classes
    Ordering
  31. def one: UByte
    Definition Classes
    Numeric
  32. def orElse(other: Ordering[UByte]): Ordering[UByte]
    Definition Classes
    Ordering
  33. def orElseBy[S](f: (UByte) => S)(implicit ord: Ordering[S]): Ordering[UByte]
    Definition Classes
    Ordering
  34. def parseString(str: String): Option[UByte]
    Definition Classes
    UByteIsIntegral → Numeric
  35. def plus(x: UByte, y: UByte): UByte
    Definition Classes
    UByteIsIntegral → Numeric
  36. def quot(x: UByte, y: UByte): UByte
    Definition Classes
    UByteIsIntegral → Integral
  37. def rem(x: UByte, y: UByte): UByte
    Definition Classes
    UByteIsIntegral → Integral
  38. def reverse: Ordering[UByte]
    Definition Classes
    Ordering → PartialOrdering
  39. def reversed(): Comparator[UByte]
    Definition Classes
    Comparator
  40. def sign(x: UByte): UByte
    Definition Classes
    Numeric
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def thenComparing[U <: Comparable[_ >: U <: AnyRef]](arg0: Function[_ >: UByte <: AnyRef, _ <: U]): Comparator[UByte]
    Definition Classes
    Comparator
  43. def thenComparing[U <: AnyRef](arg0: Function[_ >: UByte <: AnyRef, _ <: U], arg1: Comparator[_ >: U <: AnyRef]): Comparator[UByte]
    Definition Classes
    Comparator
  44. def thenComparing(arg0: Comparator[_ >: UByte <: AnyRef]): Comparator[UByte]
    Definition Classes
    Comparator
  45. def thenComparingDouble(arg0: ToDoubleFunction[_ >: UByte <: AnyRef]): Comparator[UByte]
    Definition Classes
    Comparator
  46. def thenComparingInt(arg0: ToIntFunction[_ >: UByte <: AnyRef]): Comparator[UByte]
    Definition Classes
    Comparator
  47. def thenComparingLong(arg0: ToLongFunction[_ >: UByte <: AnyRef]): Comparator[UByte]
    Definition Classes
    Comparator
  48. def times(x: UByte, y: UByte): UByte
    Definition Classes
    UByteIsIntegral → Numeric
  49. def toDouble(x: UByte): Double
    Definition Classes
    UByteIsIntegral → Numeric
  50. def toFloat(x: UByte): Float
    Definition Classes
    UByteIsIntegral → Numeric
  51. def toInt(x: UByte): Int
    Definition Classes
    UByteIsIntegral → Numeric
  52. def toLong(x: UByte): Long
    Definition Classes
    UByteIsIntegral → Numeric
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. def tryCompare(x: UByte, y: UByte): Some[Int]
    Definition Classes
    Ordering → PartialOrdering
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  58. def zero: UByte
    Definition Classes
    Numeric

Deprecated Value Members

  1. def signum(x: UByte): Int
    Definition Classes
    Numeric
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) use sign method instead

Inherited from UByteOrdering

Inherited from UByteIsIntegral

Inherited from Integral[UByte]

Inherited from Numeric[UByte]

Inherited from Ordering[UByte]

Inherited from PartialOrdering[UByte]

Inherited from Equiv[UByte]

Inherited from Serializable

Inherited from Comparator[UByte]

Inherited from AnyRef

Inherited from Any

Ungrouped