object PartitioningUtils extends SQLConfHelper
- Alphabetic
- By Inheritance
- PartitioningUtils
- SQLConfHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class PartitionValues(columnNames: Seq[String], typedValues: Seq[TypedPartValue]) extends Product with Serializable
- case class TypedPartValue(value: String, dataType: DataType) extends Product with Serializable
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 castPartValueToDesiredType(desiredType: DataType, value: String, zoneId: ZoneId): Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def conf: SQLConf
- Definition Classes
- SQLConfHelper
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- def getColName(f: StructField, caseSensitive: Boolean): String
- def getPathFragment(spec: TablePartitionSpec, partitionColumns: Seq[Attribute]): String
- def getPathFragment(spec: TablePartitionSpec, partitionSchema: StructType): String
This is the inverse of parsePathFragment().
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mergeDataAndPartitionSchema(dataSchema: StructType, partitionSchema: StructType, caseSensitive: Boolean): (StructType, Map[String, StructField])
- 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 parsePathFragment(pathFragment: String): TablePartitionSpec
Given a partition path fragment, e.g.
Given a partition path fragment, e.g.
fieldOne=1/fieldTwo=2
, returns a parsed spec for that fragment as aTablePartitionSpec
, e.g.Map(("fieldOne", "1"), ("fieldTwo", "2"))
. - def parsePathFragmentAsSeq(pathFragment: String): Seq[(String, String)]
Given a partition path fragment, e.g.
Given a partition path fragment, e.g.
fieldOne=1/fieldTwo=2
, returns a parsed spec for that fragment as aSeq[(String, String)]
, e.g.Seq(("fieldOne", "1"), ("fieldTwo", "2"))
. - def partitionColumnsSchema(schema: StructType, partitionColumns: Seq[String]): StructType
- def removeLeadingZerosFromNumberTypePartition(value: String, dataType: DataType): String
- def resolvePartitions(pathsWithPartitionValues: Seq[(Path, PartitionValues)], caseSensitive: Boolean): Seq[PartitionValues]
Resolves possible type conflicts between partitions by up-casting "lower" types using findWiderTypeForPartitionColumn.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timestampPartitionPattern: String
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validatePartitionColumn(schema: StructType, partitionColumns: Seq[String], caseSensitive: Boolean): Unit
- 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()