public class CheckConfigurationConstraint extends BaseConstraint
| Constructor and Description |
|---|
CheckConfigurationConstraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(Put p)
Check a
Put to ensure it is valid for the table. |
static Configuration |
getConfiguration() |
void |
setConf(Configuration conf) |
public static Configuration getConfiguration()
public void check(Put p)
ConstraintPut to ensure it is valid for the table. If the Put
is valid, then just return from the method. Otherwise, throw an
Exception specifying what happened. This Exception is
propagated back to the client so you can see what caused the Put to
fail.p - Put to checkpublic void setConf(Configuration conf)