|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.aliyun.openservices.ots.model.PartitionKeyValue
public class PartitionKeyValue
表示分片键(Partition Key)的值,包含了值的字符串表示和值的类型。
| 方法摘要 | |
|---|---|
boolean |
equals(Object o)
|
static PartitionKeyValue |
fromLong(long value)
使用 int值构造值的数据类型为PartitionKeyType.INTEGER的PartitionKeyValue对象。 |
static PartitionKeyValue |
fromString(String value)
使用 String对象构造值的数据类型为PartitionKeyType.STRING的PartitionKeyValue对象。 |
PartitionKeyType |
getType()
获取值的数据类型。 |
String |
getValue()
获取值的字符串表示。 |
int |
hashCode()
|
long |
toLong()
转换为长整型。 |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 方法详细信息 |
|---|
public String getValue()
public PartitionKeyType getType()
public static PartitionKeyValue fromString(String value)
String对象构造值的数据类型为PartitionKeyType.STRING的PartitionKeyValue对象。
value - String对象。public static PartitionKeyValue fromLong(long value)
int值构造值的数据类型为PartitionKeyType.INTEGER的PartitionKeyValue对象。
value - int值。public String toString()
Object 中的 toStringpublic long toLong()
PartitionKeyType.INTEGER>时转换能够成功。
long值。public boolean equals(Object o)
Object 中的 equalspublic int hashCode()
Object 中的 hashCode
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||