| 程序包 | 说明 |
|---|---|
| org.tikv.common | |
| org.tikv.common.importer | |
| org.tikv.common.operation.iterator | |
| org.tikv.raw | |
| org.tikv.txn |
| 限定符和类型 | 方法和说明 |
|---|---|
static TiSession |
TiSession.create(TiConfiguration conf) |
static TiSession |
TiSession.getInstance(TiConfiguration conf)
已过时。
|
TiSession |
Snapshot.getSession() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<TiRegion> |
TiBatchWriteUtils.getIndexRegions(TiSession session,
TiTableInfo table) |
static List<TiRegion> |
TiBatchWriteUtils.getRecordRegions(TiSession session,
TiTableInfo table) |
static List<TiRegion> |
TiBatchWriteUtils.getRegionByIndex(TiSession session,
TiTableInfo table,
TiIndexInfo index) |
static List<TiRegion> |
TiBatchWriteUtils.getRegionsByTable(TiSession session,
TiTableInfo table) |
| 构造器和说明 |
|---|
KVClient(TiSession session,
RegionStoreClient.RegionStoreClientBuilder clientBuilder) |
Snapshot(TiTimestamp timestamp,
TiSession session) |
| 构造器和说明 |
|---|
ImporterClient(TiSession tiSession,
com.google.protobuf.ByteString uuid,
Key minKey,
Key maxKey,
TiRegion region,
Long ttl) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected TiSession |
CoprocessorIterator.session |
| 限定符和类型 | 方法和说明 |
|---|---|
static CoprocessorIterator<Long> |
CoprocessorIterator.getHandleIterator(TiDAGRequest req,
List<RangeSplitter.RegionTask> regionTasks,
TiSession session)
Build a DAGIterator from TiDAGRequest and region tasks to get handles
When we use getHandleIterator, we must be preforming a IndexScan.
|
static CoprocessorIterator<Row> |
CoprocessorIterator.getRowIterator(TiDAGRequest req,
List<RangeSplitter.RegionTask> regionTasks,
TiSession session)
Build a DAGIterator from TiDAGRequest and region tasks to get rows
When we are preforming a scan request using coveringIndex,
IndexScan should be used to read index rows. |
static CoprocessorIterator<TiChunk> |
CoprocessorIterator.getTiChunkIterator(TiDAGRequest req,
List<RangeSplitter.RegionTask> regionTasks,
TiSession session,
int numOfRows)
Build a DAGIterator from TiDAGRequest and region tasks to get rows
When we are preforming a scan request using coveringIndex,
IndexScan should be used to read index rows. |
| 限定符和类型 | 方法和说明 |
|---|---|
TiSession |
RawKVClientBase.getSession()
Get the session of the current client
|
TiSession |
SmartRawKVClient.getSession() |
TiSession |
RawKVClient.getSession() |
| 构造器和说明 |
|---|
RawKVClient(TiSession session,
RegionStoreClient.RegionStoreClientBuilder clientBuilder) |
| 构造器和说明 |
|---|
KVClient(TiConfiguration conf,
RegionStoreClient.RegionStoreClientBuilder clientBuilder,
TiSession session) |
TTLManager(TiSession session,
long startTS,
byte[] primaryKey) |
TwoPhaseCommitter(TiSession session,
long startTime) |
TwoPhaseCommitter(TiSession session,
long startTime,
long lockTTL) |
Copyright © 2023 PingCAP. All rights reserved.