public class PrimaryKeyColumn extends Object implements Comparable<PrimaryKeyColumn>, Jsonizable, Measurable
PrimaryKey),
which is composed of multiple primary key columns (PrimaryKeyColumn),
and each primary key column includes the name and value of the primary key column (PrimaryKeyValue).| 构造器和说明 |
|---|
PrimaryKeyColumn(String name,
PrimaryKeyValue value)
Constructs the primary key column based on the specified name and value of the primary key column.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(PrimaryKeyColumn target)
Compare the size of two primary key columns.
|
boolean |
equals(Object o) |
int |
getDataSize()
Get the size of the serialized data
|
String |
getName()
Get the name of the primary key column.
|
byte[] |
getNameRawData() |
PrimaryKeyValue |
getValue()
Get the value of the primary key column.
|
int |
hashCode() |
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
Column |
toColumn()
Convert the primary key column type to the attribute column type.
|
String |
toString() |
public PrimaryKeyColumn(String name, PrimaryKeyValue value)
The name of the primary key column cannot be a null pointer or an empty string.
The value of the primary key column cannot be a null pointer.
name - The name of the primary key columnvalue - The value of the primary key columnpublic String getName()
public byte[] getNameRawData()
public PrimaryKeyValue getValue()
public Column toColumn() throws IOException
IOExceptionpublic int compareTo(PrimaryKeyColumn target)
The two primary key columns being compared must have the same name and type.
compareTo 在接口中 Comparable<PrimaryKeyColumn>target - public String jsonize()
jsonize 在接口中 Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize 在接口中 Jsonizablepublic int getDataSize()
MeasurablegetDataSize 在接口中 MeasurableCopyright © 2025. All Rights Reserved.