| 程序包 | 说明 |
|---|---|
| com.pingcap.tikv.allocator |
| 限定符和类型 | 方法和说明 |
|---|---|
static RowIDAllocator.RowIDAllocatorType |
RowIDAllocator.RowIDAllocatorType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RowIDAllocator.RowIDAllocatorType[] |
RowIDAllocator.RowIDAllocatorType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RowIDAllocator |
RowIDAllocator.create(long dbId,
TiTableInfo table,
TiConfiguration conf,
org.tikv.common.meta.TiTimestamp timestamp,
boolean unsigned,
long shardBits,
long step,
RowIDAllocator.RowIDAllocatorType allocatorType) |
static RowIDAllocator |
RowIDAllocator.createRowIDAllocator(long dbId,
TiTableInfo tableInfo,
TiConfiguration conf,
long step,
org.tikv.common.meta.TiTimestamp timestamp,
RowIDAllocator.RowIDAllocatorType allocatorType) |
static long |
RowIDAllocator.getAllocateId(long dbId,
long tableId,
Snapshot snapshot,
RowIDAllocator.RowIDAllocatorType allocatorType)
read current row id from TiKV according to database id and table id.
|
static org.tikv.shade.com.google.protobuf.ByteString |
RowIDAllocator.getIdField(long tableId,
RowIDAllocator.RowIDAllocatorType allocatorType) |
Copyright © 2023 PingCAP. All rights reserved.