abstract class FileRecordBatcher[R, +B <: FileRecordBatch, FB <: FileBuilder[R]] extends RecordBatcher[B]
A record batcher that passes records through a custom record formatter and forms batches by writing the formatted records to files using a provided file builder.
- R
Type of records being written to files.
- B
Type of record batches being built.
- FB
Type of file builder being used.
- Alphabetic
- By Inheritance
- FileRecordBatcher
- RecordBatcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FileRecordBatcher(recordFormatter: RecordFormatter[R], fileBuilderFactory: FileBuilderFactory[R, FB], fileCommitStrategy: FileCommitStrategy)(implicit timeProvider: TimeProvider = TimeProvider.system)
- recordFormatter
A formatter to use for writing records to files.
- fileBuilderFactory
A file builder to use.
- fileCommitStrategy
Strategy for completing batches.
Abstract Value Members
- abstract def constructBatch(fileBuilder: FB, recordRanges: Seq[StreamRange]): Option[B]
Constructs the final batch of a concrete type given the formed file and the accumulated record statistics.
Concrete 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[B]
Gets a new record batch builder.
Gets a new record batch builder.
- Definition Classes
- FileRecordBatcher → 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()