public abstract class CoprocessorIterator<T> extends Object implements Iterator<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
chunkIndex |
protected List<Chunk> |
chunkList |
protected DAGRequest |
dagRequest |
protected CodecDataInput |
dataInput |
protected boolean |
eof |
protected DataType[] |
handleTypes |
protected List<RangeSplitter.RegionTask> |
regionTasks |
protected RowReader |
rowReader |
protected SchemaInfer |
schemaInfer |
protected TiSession |
session |
protected int |
taskIndex |
| 限定符和类型 | 方法和说明 |
|---|---|
static CoprocessorIterator<Long> |
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> |
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> |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, next, removeprotected final TiSession session
protected final List<RangeSplitter.RegionTask> regionTasks
protected final DAGRequest dagRequest
protected final DataType[] handleTypes
protected RowReader rowReader
protected CodecDataInput dataInput
protected boolean eof
protected int taskIndex
protected int chunkIndex
protected SchemaInfer schemaInfer
public static CoprocessorIterator<Row> getRowIterator(TiDAGRequest req, List<RangeSplitter.RegionTask> regionTasks, TiSession session)
When we are preforming a scan request using coveringIndex, IndexScan should be used to read index rows. In other circumstances,
TableScan is used to scan table rows.
req - TiDAGRequest builtregionTasks - a list or RegionTask each contains a task on a single regionsession - TiSessionpublic static CoprocessorIterator<TiChunk> getTiChunkIterator(TiDAGRequest req, List<RangeSplitter.RegionTask> regionTasks, TiSession session, int numOfRows)
When we are preforming a scan request using coveringIndex, IndexScan should be used to read index rows. In other circumstances,
TableScan is used to scan table rows.
req - TiDAGRequest builtregionTasks - a list or RegionTask each contains a task on a single regionsession - TiSessionpublic static CoprocessorIterator<Long> getHandleIterator(TiDAGRequest req, List<RangeSplitter.RegionTask> regionTasks, TiSession session)
When we use getHandleIterator, we must be preforming a IndexScan.
req - TiDAGRequest builtregionTasks - a list or RegionTask each contains a task on a single regionsession - TiSessionCopyright © 2023 PingCAP. All rights reserved.