public class CalculateHelper extends Object
| 构造器和说明 |
|---|
CalculateHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getAttributeColumnDataSize(Map<String,ColumnValue> columns)
计算属性列的数据大小
|
static int |
getAttributeColumnDataSize(String name,
ColumnValue value)
计算一个属性列的数据大小
|
static int |
getPrimaryKeyDataSize(RowPrimaryKey primaryKey)
计算RowPrimaryKey的数据大小
|
static int |
getPrimaryKeyDataSize(String name,
PrimaryKeyValue value)
计算一个PK列的数据大小
|
static int |
getRowChangeDataSize(RowDeleteChange change)
计算RowDeleteChange的数据大小
|
static int |
getRowChangeDataSize(RowPutChange change)
计算RowPutChange的数据大小
|
static int |
getRowChangeDataSize(RowUpdateChange change)
计算RowUpdateChange的数据大小
|
static int |
getStringDataSize(String str)
计算字符串的大小(按照UTF-8编码)
|
public static int getStringDataSize(String str) throws IllegalStateException
str - IllegalStateExceptionpublic static int getPrimaryKeyDataSize(String name, PrimaryKeyValue value) throws IllegalStateException
name - pk列的名字value - pk列的值IllegalStateExceptionpublic static int getPrimaryKeyDataSize(RowPrimaryKey primaryKey) throws IllegalStateException
primaryKey - IllegalStateExceptionpublic static int getAttributeColumnDataSize(String name, ColumnValue value) throws IllegalStateException
name - 属性列的名字value - 属性列的值IllegalStateExceptionpublic static int getAttributeColumnDataSize(Map<String,ColumnValue> columns) throws IllegalStateException
columns - IllegalStateExceptionpublic static int getRowChangeDataSize(RowPutChange change) throws IllegalStateException
change - IllegalStateExceptionpublic static int getRowChangeDataSize(RowUpdateChange change) throws IllegalStateException
change - IllegalStateExceptionpublic static int getRowChangeDataSize(RowDeleteChange change) throws IllegalStateException
change - IllegalStateExceptionCopyright © 2019. All Rights Reserved.