class TimePartitioningFilePathFormatter[P] extends FilePathFormatter[P]
Formats file paths placing them into time-based directories constructed by formatting the partition using a given time formatter pattern, e.g. "/dt=2020-06-01/" etc. The filename itself is a UUID based on the hash of the ranges contained, for reproducibility.
- Alphabetic
- By Inheritance
- TimePartitioningFilePathFormatter
- FilePathFormatter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TimePartitioningFilePathFormatter(timePartitionPattern: Option[String], fileExtension: Option[String])(implicit arg0: TimeExtractor[P])
- timePartitionPattern
Pattern for the time partition, e.g. 'dt='yyyyMMdd
- fileExtension
The file extension 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatPath(partition: P, ranges: Seq[StreamRange]): String
Constructs a file path given the partition and ranges of records contained in the file.
Constructs a file path given the partition and ranges of records contained in the file.
- partition
The partition of records in the file.
- returns
A relative path for the file.
- Definition Classes
- TimePartitioningFilePathFormatter → FilePathFormatter
- 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
- 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()