public abstract class CoprocessorIterator<T> extends Object implements Iterator<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
chunkIndex |
protected List<Chunk> |
chunkList |
protected ClientSession |
clientSession |
protected DAGRequest |
dagRequest |
protected CodecDataInput |
dataInput |
protected boolean |
eof |
protected DataType[] |
handleTypes |
protected List<org.tikv.common.util.RangeSplitter.RegionTask> |
regionTasks |
protected RowReader |
rowReader |
protected SchemaInfer |
schemaInfer |
protected int |
taskIndex |
| 限定符和类型 | 方法和说明 |
|---|---|
static CoprocessorIterator<Handle> |
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.
|
static CoprocessorIterator<Row> |
getRowIterator(TiDAGRequest req,
List<org.tikv.common.util.RangeSplitter.RegionTask> regionTasks,
ClientSession clientSession)
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<org.tikv.common.util.RangeSplitter.RegionTask> regionTasks,
ClientSession clientSession,
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 ClientSession clientSession
protected final List<org.tikv.common.util.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<org.tikv.common.util.RangeSplitter.RegionTask> regionTasks, ClientSession clientSession)
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 regionclientSession - ClientSessionpublic static CoprocessorIterator<TiChunk> getTiChunkIterator(TiDAGRequest req, List<org.tikv.common.util.RangeSplitter.RegionTask> regionTasks, ClientSession clientSession, 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 regionclientSession - ClientSessionpublic static CoprocessorIterator<Handle> getHandleIterator(TiDAGRequest req, List<org.tikv.common.util.RangeSplitter.RegionTask> regionTasks, ClientSession clientSession)
When we use getHandleIterator, we must be preforming a IndexScan.
req - TiDAGRequest builtregionTasks - a list or RegionTask each contains a task on a single regionclientSession - ClientSessionCopyright © 2023 PingCAP. All rights reserved.