主构造函数,类的主题,有一个参数列表来接受标签字符串和回调函数的列表。
The primary constructor, which is the body of the entire class, has a parameter list that takes a label string and a list of callback functions.
例如,若使用传统复制(非主复制),有可能定义一个这样的复制:在源节点上有一个int8列,而在其他节点上有一个整数列。
For example, using classic (non-master) replicates, it is possible to define a replicate with having an int8 column on the source node and an integer column on other nodes.
Traits不支持辅助构造函数,它们也不支持在主构造函数,trait的主体里的参数列表。
Traits don't support auxiliary constructors, nor do they accept an argument list for the primary constructor, the body of a trait.
应用推荐