ResolvedSchema and UniqueConstraint.@Deprecated @PublicEvolving public final class UniqueConstraint extends Object
ConstraintTypeConstraint.ConstraintType| 限定符和类型 | 方法和说明 |
|---|---|
String |
asSummaryString()
已过时。
Returns constraint's summary.
|
boolean |
equals(Object o)
已过时。
|
List<String> |
getColumns()
已过时。
List of column names for which the primary key was defined.
|
String |
getName() |
Constraint.ConstraintType |
getType()
已过时。
Tells what kind of constraint it is, e.g.
|
int |
hashCode()
已过时。
|
boolean |
isEnforced()
Constraints can either be enforced or non-enforced.
|
static UniqueConstraint |
primaryKey(String name,
List<String> columns)
已过时。
Creates a non enforced
ConstraintType#PRIMARY_KEY constraint. |
String |
toString() |
public static UniqueConstraint primaryKey(String name, List<String> columns)
ConstraintType#PRIMARY_KEY constraint.public List<String> getColumns()
public Constraint.ConstraintType getType()
Constraintpublic final String asSummaryString()
CONSTRAINT [constraint-name] [constraint-type] ([constraint-definition]) E.g CONSTRAINT pk PRIMARY KEY (f0, f1)
public boolean equals(Object o)
public int hashCode()
public String getName()
getName 在接口中 Constraintpublic boolean isEnforced()
ConstraintisEnforced 在接口中 ConstraintCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.