object PartitioningUtils
- Alphabetic
- By Inheritance
- PartitioningUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
-
def
normalizePartitionSpec[T](partitionSpec: Map[String, T], partColNames: Seq[String], tblName: String, resolver: Resolver): Map[String, T]
Normalize the column names in partition specification, w.r.t.
Normalize the column names in partition specification, w.r.t. the real partition column names and case sensitivity. e.g., if the partition spec has a column named
monTh
, and there is a partition column namedmonth
, and it's case insensitive, we will normalizemonTh
tomonth
. -
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], caseSensitive: Boolean): StructType
-
def
resolvePartitions(pathsWithPartitionValues: Seq[(Path, PartitionValues)], caseSensitive: Boolean, zoneId: ZoneId): 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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()