public class ParamChecker extends Object
构造器和说明 |
---|
ParamChecker() |
限定符和类型 | 方法和说明 |
---|---|
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
- ClientException
public static void checkColumn(Map<String,PrimaryKeySchema> pkDefinedInMeta, Column column, WriterConfig config)
Copyright © 2017. All Rights Reserved.