case class Schema(database: String, tableName: String, columnNames: List[String], columnDesc: Map[String, (ReflectedDataType, (Integer, Integer), String)], indexColumns: Map[String, (List[(String, Integer)], Boolean, Boolean)], isClusteredIndex: Boolean = false, hasTiFlashReplica: Boolean = false) extends Product with Serializable
Case class for Schema of TiDB table
- database
database name
- tableName
table name
- columnNames
name of each column
- columnDesc
in the format of (columnName, (dataType, lengthDescriptions, otherDescriptions)) lengthDescriptions in the format of (M, D) describes detailed information for data type
- indexColumns
in the format of (indexName, {list of column names})
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Schema
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Schema(database: String, tableName: String, columnNames: List[String], columnDesc: Map[String, (ReflectedDataType, (Integer, Integer), String)], indexColumns: Map[String, (List[(String, Integer)], Boolean, Boolean)], isClusteredIndex: Boolean = false, hasTiFlashReplica: Boolean = false)
- database
database name
- tableName
table name
- columnNames
name of each column
- columnDesc
in the format of (columnName, (dataType, lengthDescriptions, otherDescriptions)) lengthDescriptions in the format of (M, D) describes detailed information for data type
- indexColumns
in the format of (indexName, {list of column names})
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()
- val columnDesc: Map[String, (ReflectedDataType, (Integer, Integer), String)]
- val columnInfo: List[ColumnInfo]
- val columnNames: List[String]
- val database: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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()
- var hasTiFlashReplica: Boolean
- val indexColumns: Map[String, (List[(String, Integer)], Boolean, Boolean)]
- val indexInfo: List[IndexInfo]
- var isClusteredIndex: Boolean
-
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()
- val pkColumnName: String
- val pkIndexInfo: List[IndexInfo]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tableName: String
-
def
toString(): String
- Definition Classes
- Schema → AnyRef → Any
- val uniqueColumnNames: List[String]
- val uniqueIndexInfo: List[IndexInfo]
-
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()