| 程序包 | 说明 |
|---|---|
| com.pingcap.tikv | |
| com.pingcap.tikv.allocator | |
| com.pingcap.tikv.catalog | |
| com.pingcap.tikv.codec | |
| com.pingcap.tikv.operation.iterator |
| 限定符和类型 | 方法和说明 |
|---|---|
Snapshot |
TiSession.createSnapshot() |
Snapshot |
TiSession.createSnapshot(TiTimestamp ts) |
Snapshot |
TiSession.createSnapshotWithSnapshotTimestamp() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
RowIDAllocator.getAllocateId(long dbId,
long tableId,
Snapshot snapshot)
read current row id from TiKV according to database id and table id.
|
long |
RowIDAllocator.udpateAllocateId(long dbId,
long tableId,
long step,
Snapshot snapshot,
long shard,
boolean hasSignedBit)
read current row id from TiKV and write the calculated value back to TiKV.
|
| 构造器和说明 |
|---|
Catalog(java.util.function.Supplier<Snapshot> snapshotProvider,
boolean showRowId,
String dbPrefix) |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.google.protobuf.ByteString |
MetaCodec.bytesGet(com.google.protobuf.ByteString key,
Snapshot snapshot) |
static com.google.protobuf.ByteString |
MetaCodec.hashGet(com.google.protobuf.ByteString key,
com.google.protobuf.ByteString field,
Snapshot snapshot) |
static List<Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString>> |
MetaCodec.hashGetFields(com.google.protobuf.ByteString key,
Snapshot snapshot) |
| 构造器和说明 |
|---|
IndexScanIterator(Snapshot snapshot,
TiDAGRequest req,
Iterator<Handle> handleIterator) |
Copyright © 2022 PingCAP. All rights reserved.