public class TiSession extends Object implements AutoCloseable
public static TiSession getInstance(TiConfiguration conf)
public TxnKVClient createTxnClient()
public RegionStoreClient.RegionStoreClientBuilder getRegionStoreClientBuilder()
public TiConfiguration getConf()
public TiTimestamp getTimestamp()
public Snapshot createSnapshot()
public Snapshot createSnapshot(TiTimestamp ts)
public PDClient getPDClient()
public TiTimestamp getSnapshotTimestamp()
public Snapshot createSnapshotWithSnapshotTimestamp()
public Catalog getOrCreateSnapShotCatalog(TiTimestamp ts)
public Catalog getCatalog()
public RegionManager getRegionManager()
public ExecutorService getThreadPoolForIndexScan()
public ExecutorService getThreadPoolForTableScan()
public ExecutorService getThreadPoolForBatchPut()
public ExecutorService getThreadPoolForBatchGet()
public ExecutorService getThreadPoolForBatchDelete()
public ExecutorService getThreadPoolForBatchScan()
public ExecutorService getThreadPoolForDeleteRange()
public void injectCallBackFunc(java.util.function.Function<CacheInvalidateEvent,Void> callBackFunc)
callBackFunc - callback functionpublic void splitRegionAndScatter(List<byte[]> splitKeys, int splitRegionBackoffMS, int scatterRegionBackoffMS, int scatterWaitMS)
splitKeys - public void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2022 PingCAP. All rights reserved.