com.adform.streamloader.sink.file
PartitioningFileRecordBatcher
Companion object PartitioningFileRecordBatcher
class PartitioningFileRecordBatcher[P, R] extends RecordBatcher[PartitionedFileRecordBatch[P, SingleFileRecordBatch]]
A record batcher that distributes records into user defined partitions using a given partitioner and writes them to separate files per partition.
- P
Type of the partition values.
- R
Type of formatted records.
- Alphabetic
- By Inheritance
- PartitioningFileRecordBatcher
- RecordBatcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PartitioningFileRecordBatcher(recordFormatter: RecordFormatter[R], recordPartitioner: RecordPartitioner[R, P], fileBuilderFactory: (P) => FileBuilder[R], fileCommitStrategy: MultiFileCommitStrategy)(implicit timeProvider: TimeProvider = TimeProvider.system)
- recordFormatter
Record formatter to use when writing to files.
- recordPartitioner
Partitioner for distributing records to partitions.
- fileBuilderFactory
File builder factory to use to construct files for partitions.
- fileCommitStrategy
File commit strategy to use.
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()
- def close(): Unit
Closes the batcher.
Closes the batcher.
- Definition Classes
- RecordBatcher
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBatchBuilder(): RecordBatchBuilder[PartitionedFileRecordBatch[P, SingleFileRecordBatch]]
Gets a new record batch builder.
Gets a new record batch builder.
- Definition Classes
- PartitioningFileRecordBatcher → RecordBatcher
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()