case class FuzzyReachedAnyOf(fileOpenDurationDistribution: Option[GaussianDistribution[Duration]] = None, fileSizeDistribution: Option[GaussianDistribution[Long]] = None, recordsWrittenDistribution: Option[GaussianDistribution[Long]] = None, fileSizeSamplingBatchSize: Option[Long] = None)(randomSeed: Option[Int] = None) extends FileCommitStrategy with Product with Serializable
Commit strategy that commits files once ANY of the parameters reaches a threshold value sampled from a given Gaussian distribution. Optionally users can specify a batch size (in records) that triggers file size estimation, as doing it on every record can be too expensive. Note that the class maintains state, so it should not be re-used for multiple sinks.
- Alphabetic
- By Inheritance
- FuzzyReachedAnyOf
- Serializable
- Product
- Equals
- FileCommitStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FuzzyReachedAnyOf(fileOpenDurationDistribution: Option[GaussianDistribution[Duration]] = None, fileSizeDistribution: Option[GaussianDistribution[Long]] = None, recordsWrittenDistribution: Option[GaussianDistribution[Long]] = None, fileSizeSamplingBatchSize: Option[Long] = None)(randomSeed: Option[Int] = None)
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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fileOpenDurationDistribution: Option[GaussianDistribution[Duration]]
- val fileSizeDistribution: Option[GaussianDistribution[Long]]
- val fileSizeSamplingBatchSize: Option[Long]
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- val recordsWrittenDistribution: Option[GaussianDistribution[Long]]
- def shouldCommit(currFileOpenDuration: Duration, currFileSize: => Long, currRecords: Long): Boolean
Checks whether a file should be closed and committed to storage.
Checks whether a file should be closed and committed to storage.
- returns
Whether the file should be closed and committed.
- Definition Classes
- FuzzyReachedAnyOf → FileCommitStrategy
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()