final class CollectedMessage extends Message with Iterable[IpfixSet]
The CollectedMessage class interprets a ByteBuffer to provide an Iterator over the IpfixSets in the buffer.
- See also
The companion object for more details
- Alphabetic
- By Inheritance
- CollectedMessage
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- Message
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ++[B >: IpfixSet](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- IterableOnceOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def className: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def coll: CollectedMessage.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[IpfixSet, B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[IpfixSet, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: IpfixSet](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- def copyToArray[B >: IpfixSet](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: IpfixSet](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: IpfixSet](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (IpfixSet, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (IpfixSet) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def dataRecordCount: Int
Returns the number of data records in this Message.
Returns the number of data records in this Message.
- returns
the count of data records
- Definition Classes
- CollectedMessage → Message
- def drop(n: Int): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def dropRight(n: Int): Iterable[IpfixSet]
- Definition Classes
- IterableOps
- def dropWhile(p: (IpfixSet) => Boolean): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def empty: Iterable[IpfixSet]
- Definition Classes
- IterableFactoryDefaults → IterableOps
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (IpfixSet) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def exportEpochMilliseconds: Long
Gets the export time of the message, as a number of milliseconds since 1970-01-01T00:00:00.
Gets the export time of the message, as a number of milliseconds since 1970-01-01T00:00:00.
- returns
export time in milliseconds
- Definition Classes
- CollectedMessage → Message
- def exportEpochSeconds: Long
Gets the export time of the message, as a number of seconds since 1970-01-01T00:00:00.
Gets the export time of the message, as a number of seconds since 1970-01-01T00:00:00.
- returns
export time in seconds
- Definition Classes
- CollectedMessage → Message
- def exportTime: Instant
Gets the export time of the message.
Gets the export time of the message.
- returns
message export time
- Definition Classes
- CollectedMessage → Message
- def filter(pred: (IpfixSet) => Boolean): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def filterNot(pred: (IpfixSet) => Boolean): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def find(p: (IpfixSet) => Boolean): Option[IpfixSet]
- Definition Classes
- IterableOnceOps
- def flatMap[B](f: (IpfixSet) => IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def flatten[B](implicit asIterable: (IpfixSet) => IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def fold[A1 >: IpfixSet](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, IpfixSet) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (IpfixSet, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (IpfixSet) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (IpfixSet) => U): Unit
- Definition Classes
- IterableOnceOps
- def fromSpecific(coll: IterableOnce[IpfixSet]): Iterable[IpfixSet]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def groupBy[K](f: (IpfixSet) => K): Map[K, Iterable[IpfixSet]]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: (IpfixSet) => K)(f: (IpfixSet) => B): Map[K, Iterable[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: (IpfixSet) => K)(f: (IpfixSet) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[Iterable[IpfixSet]]
- Definition Classes
- IterableOps
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def head: IpfixSet
- Definition Classes
- IterableOps
- def headOption: Option[IpfixSet]
- Definition Classes
- IterableOps
- def init: Iterable[IpfixSet]
- Definition Classes
- IterableOps
- def inits: Iterator[Iterable[IpfixSet]]
- Definition Classes
- IterableOps
- def isEmpty: Boolean
- Definition Classes
- IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def iterableFactory: IterableFactory[Iterable]
- Definition Classes
- Iterable → IterableOps
- def iterator: Iterator[IpfixSet]
Returns an Iterator that may be used to iterate over the IpfixSets in this Message.
- Definition Classes
- CollectedMessage → IterableOnce
- def knownSize: Int
- Definition Classes
- IterableOnce
- def last: IpfixSet
- Definition Classes
- IterableOps
- def lastOption: Option[IpfixSet]
- Definition Classes
- IterableOps
- def lazyZip[B](that: Iterable[B]): LazyZip2[IpfixSet, B, CollectedMessage.this.type]
- Definition Classes
- Iterable
- def map[B](f: (IpfixSet) => B): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def max[B >: IpfixSet](implicit ord: Ordering[B]): IpfixSet
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (IpfixSet) => B)(implicit cmp: Ordering[B]): IpfixSet
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (IpfixSet) => B)(implicit cmp: Ordering[B]): Option[IpfixSet]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: IpfixSet](implicit ord: Ordering[B]): Option[IpfixSet]
- Definition Classes
- IterableOnceOps
- def min[B >: IpfixSet](implicit ord: Ordering[B]): IpfixSet
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (IpfixSet) => B)(implicit cmp: Ordering[B]): IpfixSet
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (IpfixSet) => B)(implicit cmp: Ordering[B]): Option[IpfixSet]
- Definition Classes
- IterableOnceOps
- def minOption[B >: IpfixSet](implicit ord: Ordering[B]): Option[IpfixSet]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newSpecificBuilder: Builder[IpfixSet, Iterable[IpfixSet]]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def observationID: Int
Gets the observation domain identifier associated with the message.
Gets the observation domain identifier associated with the message.
- returns
the observation domain id
- Definition Classes
- CollectedMessage → Message
- final def octetLength: Int
The length of the Message in octets.
- def partition(p: (IpfixSet) => Boolean): (Iterable[IpfixSet], Iterable[IpfixSet])
- Definition Classes
- IterableOps
- def partitionMap[A1, A2](f: (IpfixSet) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
- Definition Classes
- IterableOps
- def product[B >: IpfixSet](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: IpfixSet](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: IpfixSet](op: (B, IpfixSet) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: IpfixSet](op: (B, IpfixSet) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: IpfixSet](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: IpfixSet](op: (IpfixSet, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: IpfixSet](op: (IpfixSet, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reversed: Iterable[IpfixSet]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def scan[B >: IpfixSet](z: B)(op: (B, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, IpfixSet) => B): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: (IpfixSet, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def sequenceNumber: Long
Gets the sequence number of the message.
Gets the sequence number of the message. The sequence number is unique per domain, and is the complete number of data records that have been sent in the session prior to this message. It can be used to calculate statistics about missing data records.
- returns
the sequence number
- Definition Classes
- CollectedMessage → Message
- def session: Session
Returns a session that can be used to interpret template ids in this message.
Returns a session that can be used to interpret template ids in this message.
- returns
the session associated with this message
- Definition Classes
- CollectedMessage → Message
- def size: Int
- Definition Classes
- IterableOnceOps
- def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- IterableOps
- def sizeCompare(otherSize: Int): Int
- Definition Classes
- IterableOps
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[Iterable[IpfixSet]]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[Iterable[IpfixSet]]
- Definition Classes
- IterableOps
- def span(p: (IpfixSet) => Boolean): (Iterable[IpfixSet], Iterable[IpfixSet])
- Definition Classes
- IterableOps → IterableOnceOps
- def splitAt(n: Int): (Iterable[IpfixSet], Iterable[IpfixSet])
- Definition Classes
- IterableOps → IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[IpfixSet, S]): S
- Definition Classes
- IterableOnce
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- Annotations
- @deprecatedOverriding()
- def sum[B >: IpfixSet](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: Iterable[IpfixSet]
- Definition Classes
- IterableOps
- def tails: Iterator[Iterable[IpfixSet]]
- Definition Classes
- IterableOps
- def take(n: Int): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def takeRight(n: Int): Iterable[IpfixSet]
- Definition Classes
- IterableOps
- def takeWhile(p: (IpfixSet) => Boolean): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def tapEach[U](f: (IpfixSet) => U): Iterable[IpfixSet]
- Definition Classes
- IterableOps → IterableOnceOps
- def to[C1](factory: Factory[IpfixSet, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: IpfixSet](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: IpfixSet]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[IpfixSet]
- Definition Classes
- IterableOnceOps
- def toList: List[IpfixSet]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[IpfixSet, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[IpfixSet]
- Definition Classes
- IterableOnceOps
- def toSet[B >: IpfixSet]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- CollectedMessage → Iterable → AnyRef → Any
- def toVector: Vector[IpfixSet]
- Definition Classes
- IterableOnceOps
- val transport: AnyRef
- def transpose[B](implicit asIterable: (IpfixSet) => Iterable[B]): Iterable[Iterable[B]]
- Definition Classes
- IterableOps
- def unzip[A1, A2](implicit asPair: (IpfixSet) => (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: (IpfixSet) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- IterableOps
- def view: View[IpfixSet]
- Definition Classes
- IterableOps
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withFilter(p: (IpfixSet) => Boolean): WithFilter[IpfixSet, Iterable]
- Definition Classes
- IterableOps
- def zip[B](that: IterableOnce[B]): Iterable[(IpfixSet, B)]
- Definition Classes
- IterableOps
- def zipAll[A1 >: IpfixSet, B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: Iterable[(IpfixSet, Int)]
- Definition Classes
- IterableOps → IterableOnceOps
Deprecated Value Members
- def ++:[B >: IpfixSet](that: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable
- final def /:[B](z: B)(op: (B, IpfixSet) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (IpfixSet, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, IpfixSet) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- def companion: IterableFactory[Iterable]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- final def copyToBuffer[B >: IpfixSet](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- 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)
- final def repr: Iterable[IpfixSet]
- 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
- def seq: CollectedMessage.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- final def toIterable: CollectedMessage.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
ortoSeq
, but it doesn't copy non-immutable collections
- final def toIterator: Iterator[IpfixSet]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[IpfixSet]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[IpfixSet]
- 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
ortoSeq
, but it doesn't copy non-immutable collections
- def view(from: Int, until: Int): View[IpfixSet]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)
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.data.net
- types for working with network dataorg.cert.netsa.data.time
- types for working with time dataorg.cert.netsa.data.unsigned
- types for working with unsigned integral valuesorg.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, whilemothra-datasources-ipfix
andmothra-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.