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.
- Alphabetic
- By Inheritance
- PartitionerPackLogic
- Serializable
- Product
- Equals
- PackingLogic
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PartitionerPackLogic(partitioners: Seq[Partitioner])
- partitioners
How records are to be partitioned.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val domain: Int
The observationDomain to use for newly created files.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- PartitionerPackLogic → PackingLogic
- val partitioners: Seq[Partitioner]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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")
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val version: Int
The version of the packing logic; this value becomes part of the path in the directory hierarchy.
- 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()