object CategoricalUtilities
- Alphabetic
- By Inheritance
- CategoricalUtilities
- 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] )
-
def
getCategoricalTypeForValue[T](value: T): DataType
Get a type for the given value.
Get a type for the given value.
- T
The generic type of the value.
- value
The value to get the type from.
- returns
The DataType based on the value.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getLevels(schema: StructType, column: String): Option[Array[_]]
Gets the levels from the dataset.
Gets the levels from the dataset.
- schema
The schema to get the levels from.
- column
The column to retrieve metadata levels from.
- returns
The levels.
-
def
getMap[T](metadata: Metadata)(implicit ct: ClassTag[T]): CategoricalMap[T]
Get the map of array of T from the metadata.
Get the map of array of T from the metadata.
- T
The type of map to retrieve.
- metadata
The metadata to retrieve from.
- ct
Implicit class tag.
- returns
The map of array of T.
-
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()
-
def
setLevels(dataset: DataFrame, column: String, levels: Array[_]): DataFrame
Sets the given levels on the column.
Sets the given levels on the column.
- returns
The modified dataset.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateLevelsMetadata(existingMetadata: Metadata, levels: Array[_], dataType: DataType, hasNullLevels: Boolean): Metadata
Update the levels on the existing metadata.
Update the levels on the existing metadata.
- existingMetadata
The existing metadata to add to.
- levels
The levels to add to the metadata.
- dataType
The datatype of the levels.
- returns
The new metadata.
-
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()