ResolvedSchema
and UniqueConstraint
.@Deprecated @PublicEvolving public final class UniqueConstraint extends Object
ConstraintType
Constraint.ConstraintType
Modifier and Type | Method and Description |
---|---|
String |
asSummaryString()
Deprecated.
Returns constraint's summary.
|
boolean |
equals(Object o)
Deprecated.
|
List<String> |
getColumns()
Deprecated.
List of column names for which the primary key was defined.
|
String |
getName() |
Constraint.ConstraintType |
getType()
Deprecated.
Tells what kind of constraint it is, e.g.
|
int |
hashCode()
Deprecated.
|
boolean |
isEnforced()
Constraints can either be enforced or non-enforced.
|
static UniqueConstraint |
primaryKey(String name,
List<String> columns)
Deprecated.
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()
Constraint
public 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
in interface Constraint
public boolean isEnforced()
Constraint
isEnforced
in interface Constraint
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.