public class ParamChecker extends Object
| Constructor and Description |
|---|
ParamChecker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkColumn(Map<String,PrimaryKeySchema> pkDefinedInMeta,
Column column,
WriterConfig config) |
static void |
checkRowChange(TableMeta tableMeta,
RowChange rowChange,
WriterConfig config)
It does following checkings:
- primary key schema is matched with which defined in table meta.
|
public static void checkRowChange(TableMeta tableMeta, RowChange rowChange, WriterConfig config) throws ClientException
WriterConfig.maxPKColumnSize
- attribute column's value size is less than WriterConfig.maxAttrColumnSize
- the count of attribute columns is less than WriterConfig.maxColumnsCount or zero.
- the name of attribute columns not duplicated with primary key column's name
- the total row sizetableMeta - rowChange - config - ClientExceptionpublic static void checkColumn(Map<String,PrimaryKeySchema> pkDefinedInMeta, Column column, WriterConfig config)
Copyright © 2024. All Rights Reserved.