object TypeUtils extends QueryErrorsBase
Functions to help with checking for valid data types and value comparison of various types.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TypeUtils
- QueryErrorsBase
- DataTypeErrorsBase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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 checkForAnsiIntervalOrNumericType(input: Expression): TypeCheckResult
- def checkForMapKeyType(keyType: DataType): TypeCheckResult
- def checkForOrderingExpr(dt: DataType, caller: String): TypeCheckResult
- def checkForSameTypeInputExpr(types: Seq[DataType], caller: String): TypeCheckResult
-
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 failWithIntervalType(dataType: DataType): Unit
-
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
getInterpretedOrdering(t: DataType): Ordering[Any]
- Annotations
- @tailrec()
- def getNumeric(t: DataType, exactNumericRequired: Boolean = false): Numeric[Any]
-
def
getQueryContext(sqlContext: SQLQueryContext): Array[QueryContext]
- Definition Classes
- DataTypeErrorsBase
-
def
getSummary(sqlContext: SQLQueryContext): String
- Definition Classes
- DataTypeErrorsBase
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invokeOnceForInterval(dataType: DataType, forbidAnsiIntervals: Boolean)(f: ⇒ Unit): Unit
-
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
quoteByDefault(elem: String): String
- Attributes
- protected
- Definition Classes
- DataTypeErrorsBase
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toDSOption(option: String): String
- Definition Classes
- QueryErrorsBase
-
def
toSQLConf(conf: String): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLConfVal(conf: String): String
- Definition Classes
- QueryErrorsBase
-
def
toSQLExpr(e: Expression): String
- Definition Classes
- QueryErrorsBase
-
def
toSQLId(parts: Seq[String]): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLId(parts: String): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLSchema(schema: String): String
- Definition Classes
- QueryErrorsBase
-
def
toSQLStmt(text: String): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLType(t: AbstractDataType): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLType(text: String): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLValue(v: Any, t: DataType): String
- Definition Classes
- QueryErrorsBase
-
def
toSQLValue(value: Double): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLValue(value: Float): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLValue(value: Long): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLValue(value: Int): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLValue(value: Short): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLValue(value: UTF8String): String
- Definition Classes
- DataTypeErrorsBase
-
def
toSQLValue(value: String): String
- Definition Classes
- DataTypeErrorsBase
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typeWithProperEquals(dataType: DataType): Boolean
Returns true if the equals method of the elements of the data type is implemented properly.
Returns true if the equals method of the elements of the data type is implemented properly. This also means that they can be safely used in collections relying on the equals method, as sets or maps.
-
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()