public class Column extends Object implements Jsonizable, Measurable
Column),
and each attribute column includes a name, a value (ColumnValue), and a timestamp.| 限定符和类型 | 字段和说明 |
|---|---|
static NameTimestampComparator |
NAME_TIMESTAMP_COMPARATOR |
| 构造器和说明 |
|---|
Column(String name,
ColumnValue value) |
Column(String name,
ColumnValue value,
long timestamp)
Constructs a property column, which must include a name, value, and timestamp.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
int |
getDataSize()
Get the size of the serialized data
|
String |
getName()
Get the name of the attribute column.
|
byte[] |
getNameRawData() |
long |
getTimestamp()
Get the timestamp of the attribute column.
|
ColumnValue |
getValue()
Get the value of the attribute column.
|
int |
hashCode() |
boolean |
hasSetTimestamp()
Check if a timestamp has been set.
|
String |
jsonize() |
void |
jsonize(StringBuilder sb,
String newline) |
String |
toString() |
public static NameTimestampComparator NAME_TIMESTAMP_COMPARATOR
public Column(String name, ColumnValue value, long timestamp)
The name of the property column cannot be a null pointer or an empty string.
The value of the property column cannot be a null pointer.
name - The name of the property columnvalue - The value of the property columntimestamp - The timestamp of the property columnpublic Column(String name, ColumnValue value)
public String getName()
public byte[] getNameRawData()
public ColumnValue getValue()
public long getTimestamp()
IllegalStateException - if this parameter is not setpublic boolean hasSetTimestamp()
public String jsonize()
jsonize 在接口中 Jsonizablepublic void jsonize(StringBuilder sb, String newline)
jsonize 在接口中 Jsonizablepublic int getDataSize()
MeasurablegetDataSize 在接口中 MeasurableCopyright © 2025. All Rights Reserved.