public static final class ImportSSTGrpc.ImportSSTFutureStub extends io.grpc.stub.AbstractFutureStub<ImportSSTGrpc.ImportSSTFutureStub>
ImportSST provides a service to import a generated SST file to a region in TiKV. In order to import an SST file to a region, the user should: 1. Retrieve the meta of the region according to the SST file's range. 2. Upload the SST file to the servers where the region's peers locate in. 3. Issue an ingest request to the region's leader with the SST file's metadata. It's the user's responsibility to make sure that the SST file is uploaded to the servers where the region's peers locate in, before issue the ingest request to the region's leader. However, the region can be scheduled (so the location of the region's peers will be changed) or split/merged (so the range of the region will be changed), after the SST file is uploaded, but before the SST file is ingested. So, the region's epoch is provided in the SST file's metadata, to guarantee that the region's epoch must be the same between the SST file is uploaded and ingested later.
Modifier and Type | Method and Description |
---|---|
protected ImportSSTGrpc.ImportSSTFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<ImportSstpb.CompactResponse> |
compact(ImportSstpb.CompactRequest request)
Compact the specific range for better performance.
|
com.google.common.util.concurrent.ListenableFuture<ImportSstpb.DownloadResponse> |
download(ImportSstpb.DownloadRequest request)
Download an SST file from an external storage, and performs key-rewrite
after downloading.
|
com.google.common.util.concurrent.ListenableFuture<ImportSstpb.IngestResponse> |
ingest(ImportSstpb.IngestRequest request)
Ingest an uploaded SST file to a region.
|
com.google.common.util.concurrent.ListenableFuture<ImportSstpb.IngestResponse> |
multiIngest(ImportSstpb.MultiIngestRequest request)
Ingest Multiple files in one request
|
com.google.common.util.concurrent.ListenableFuture<ImportSstpb.SetDownloadSpeedLimitResponse> |
setDownloadSpeedLimit(ImportSstpb.SetDownloadSpeedLimitRequest request) |
com.google.common.util.concurrent.ListenableFuture<ImportSstpb.SwitchModeResponse> |
switchMode(ImportSstpb.SwitchModeRequest request)
Switch to normal/import mode.
|
protected ImportSSTGrpc.ImportSSTFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<ImportSSTGrpc.ImportSSTFutureStub>
public com.google.common.util.concurrent.ListenableFuture<ImportSstpb.SwitchModeResponse> switchMode(ImportSstpb.SwitchModeRequest request)
Switch to normal/import mode.
public com.google.common.util.concurrent.ListenableFuture<ImportSstpb.IngestResponse> ingest(ImportSstpb.IngestRequest request)
Ingest an uploaded SST file to a region.
public com.google.common.util.concurrent.ListenableFuture<ImportSstpb.CompactResponse> compact(ImportSstpb.CompactRequest request)
Compact the specific range for better performance.
public com.google.common.util.concurrent.ListenableFuture<ImportSstpb.SetDownloadSpeedLimitResponse> setDownloadSpeedLimit(ImportSstpb.SetDownloadSpeedLimitRequest request)
public com.google.common.util.concurrent.ListenableFuture<ImportSstpb.DownloadResponse> download(ImportSstpb.DownloadRequest request)
Download an SST file from an external storage, and performs key-rewrite after downloading.
public com.google.common.util.concurrent.ListenableFuture<ImportSstpb.IngestResponse> multiIngest(ImportSstpb.MultiIngestRequest request)
Ingest Multiple files in one request
Copyright © 2024 PingCAP. All rights reserved.