public class PrimaryKeyColumn extends Object implements Comparable<PrimaryKeyColumn>, Jsonizable, Measurable
构造器和说明 |
---|
PrimaryKeyColumn(String name,
PrimaryKeyValue value)
根据指定的主键列的名称和主键列的值构造主键列。
|
限定符和类型 | 方法和说明 |
---|---|
int |
compareTo(PrimaryKeyColumn target)
比较两个主键列的大小。
|
boolean |
equals(Object o) |
int |
getDataSize()
获取序列化后的数据大小
|
String |
getName()
获取主键列的名称。
|
byte[] |
getNameRawData() |
PrimaryKeyValue |
getValue()
获取主键列的值。
|
int |
hashCode() |
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
Column |
toColumn()
将主键列类型转化为属性列类型。
|
String |
toString() |
public PrimaryKeyColumn(String name, PrimaryKeyValue value)
主键列的名称不能为null pointer及空字符串。
主键列的值不能为null pointer。
name
- 主键列的名称value
- 主键列的值public String getName()
public byte[] getNameRawData()
public PrimaryKeyValue getValue()
public Column toColumn() throws IOException
IOException
public int compareTo(PrimaryKeyColumn target)
对比的两个主键列必须含有相同的名称和类型。
compareTo
在接口中 Comparable<PrimaryKeyColumn>
target
- public String jsonize()
jsonize
在接口中 Jsonizable
public void jsonize(StringBuilder sb, String newline)
jsonize
在接口中 Jsonizable
public int getDataSize()
Measurable
getDataSize
在接口中 Measurable
Copyright © 2018. All Rights Reserved.