| 程序包 | 说明 |
|---|---|
| com.pingcap.tikv | |
| com.pingcap.tikv.codec | |
| com.pingcap.tikv.handle | |
| com.pingcap.tikv.key | |
| com.pingcap.tikv.operation.iterator | |
| com.pingcap.tikv.util |
| 限定符和类型 | 方法和说明 |
|---|---|
Iterator<Handle> |
Snapshot.indexHandleRead(TiDAGRequest dagRequest,
List<org.tikv.common.util.RangeSplitter.RegionTask> tasks)
Below is lower level API for env like Spark which already did key range split Perform handle
scan
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Handle |
TableCodec.decodeHandle(byte[] value,
boolean isCommonHandle) |
static Handle |
TableCodec.decodeHandleInUniqueIndexValue(byte[] value,
boolean isCommonHandle) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Row |
TableCodec.decodeRow(byte[] value,
Handle handle,
TiTableInfo tableInfo) |
protected static Row |
TableCodecV2.decodeRow(byte[] value,
Handle handle,
TiTableInfo tableInfo) |
protected static Row |
TableCodecV1.decodeRow(byte[] value,
Handle handle,
TiTableInfo tableInfo) |
static byte[] |
TableCodec.genIndexValue(Row row,
Handle handle,
int commonHandleVersion,
boolean distinct,
TiIndexInfo tiIndexInfo,
TiTableInfo tiTableInfo) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommonHandle |
class |
IntHandle |
| 限定符和类型 | 方法和说明 |
|---|---|
Handle |
Handle.next() |
Handle |
IntHandle.next() |
Handle |
CommonHandle.next() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
Handle.compare(Handle h) |
int |
IntHandle.compare(Handle h) |
int |
CommonHandle.compare(Handle h) |
| 限定符和类型 | 方法和说明 |
|---|---|
Handle |
RowKey.getHandle() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
RowKey.encode(long tableId,
Handle handle) |
static IndexKey.EncodeIndexDataResult |
IndexKey.genIndexKey(long physicalID,
Row row,
TiIndexInfo indexInfo,
Handle handle,
TiTableInfo tableInfo) |
static RowKey |
RowKey.toRowKey(long tableId,
Handle handle) |
| 限定符和类型 | 方法和说明 |
|---|---|
static CoprocessorIterator<Handle> |
CoprocessorIterator.getHandleIterator(TiDAGRequest req,
List<org.tikv.common.util.RangeSplitter.RegionTask> regionTasks,
ClientSession clientSession)
Build a DAGIterator from TiDAGRequest and region tasks to get handles
When we use getHandleIterator, we must be preforming a IndexScan.
|
| 构造器和说明 |
|---|
IndexScanIterator(Snapshot snapshot,
TiDAGRequest req,
Iterator<Handle> handleIterator) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<org.tikv.common.util.Pair<org.tikv.common.region.TiRegion,org.tikv.common.region.TiStore>,List<Handle>> |
RangeSplitter.groupByAndSortHandlesByRegionId(long tableId,
List<Handle> handles)
Group by a list of handles by the handles' region, handles will be sorted.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Map<org.tikv.common.util.Pair<org.tikv.common.region.TiRegion,org.tikv.common.region.TiStore>,List<Handle>> |
RangeSplitter.groupByAndSortHandlesByRegionId(long tableId,
List<Handle> handles)
Group by a list of handles by the handles' region, handles will be sorted.
|
List<org.tikv.common.util.RangeSplitter.RegionTask> |
RangeSplitter.splitAndSortHandlesByRegion(List<Long> ids,
List<Handle> handles) |
Copyright © 2023 PingCAP. All rights reserved.