Packages

c

org.cert.netsa.mothra.packer

PartitionerPackLogic

case class PartitionerPackLogic(partitioners: Seq[Partitioner]) extends PackingLogic with Product with Serializable

An implementation of the PackingLogic trait. The pack() method stores Records into files based on a sequence of Partitioners that is passed to this class's constructor.

partitioners

How records are to be partitioned.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PartitionerPackLogic
  2. Serializable
  3. Product
  4. Equals
  5. PackingLogic
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PartitionerPackLogic(partitioners: Seq[Partitioner])

    partitioners

    How records are to be partitioned.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val domain: Int

    The observationDomain to use for newly created files.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def pack(record: Record): Iterator[PackableRecord]

    Stores an incoming Record to some number of files.

    Stores an incoming Record to some number of files.

    The packer calls this function for each Record that it reads from a stream. This function is responsible for determining how to store the record in the destination file(s).

    Implementations of this function should determine the relative pathname where the record is to be stored and create a PackableRecord that contains the Record and the relative path. The "relative pathname" is the part of a file's pathname that begins with a version number (for example, "v2/") and ends just before the file's name.

    To have the record not be stored, the function may return None. To store one Record, the function may wrap it in an Option. To store the record multiple times, a collection object may be returned. The stored records need not have any relation to the record passed into the function.

    Definition Classes
    PartitionerPackLogicPackingLogic
  15. val partitioners: Seq[Partitioner]
  16. def productElementNames: Iterator[String]
    Definition Classes
    Product
  17. def sessionRegister(group: SessionGroup): Unit

    This is a function that the packer invokes before it begins to process a stream of records.

    This is a function that the packer invokes before it begins to process a stream of records. The argument is the SessionGroup that was created for the stream.

    This implementation of function does nothing, but subclasses may override it to do things like register callback functions for templates in the SessionGroup.

    Definition Classes
    PackingLogic
    Annotations
    @silent(" group .* never used")
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. val version: Int

    The version of the packing logic; this value becomes part of the path in the directory hierarchy.

  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PackingLogic

Inherited from AnyRef

Inherited from Any

Ungrouped