package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CheckDiskQuota verifies if the total engine file size is below the given quota.
ConvertToErrFoundConflictRecords converts ErrFoundDuplicateKeys to ErrFoundDataConflictRecords or ErrFoundIndexConflictRecords error.
EstimateCompactionThreshold estimate SST files compression threshold by total row file size with a higher compression threshold, the compression time increases, but the iteration time decreases.
EstimateCompactionThreshold2 estimate SST files compression threshold by total row file size see EstimateCompactionThreshold for more details.
GetRegionSplitSizeKeys return region split size, region split keys, error.
GetSystemRLimit returns the current open-file limit.
NewBackend creates new connections to tikv.
NewBackendConfig creates a new BackendConfig.
NewBackendForTest creates a new Backend for test.
NewDupeDetector creates a new dupeDetector.
NewEncodingBuilder creates an KVEncodingBuilder with local backend implementation.
NewLocalDupKVStream creates a new DupKVStreamImpl with the given duplicate db and key range.
NewRemoteDupKVStream creates a new RemoteDupKVStream.
NewTargetInfoGetter creates an TargetInfoGetter with local backend implementation.
NewTiDBChecksumExecutor creates a new tidb checksum executor.
NewTiKVChecksumManager return a new tikv checksum manager.
NewTiKVModeSwitcher creates a new TiKVModeSwitcher.
RetrieveKeyAndValueFromErrFoundDuplicateKeys retrieves the key and value from ErrFoundDuplicateKeys error.
VerifyRLimit checks whether the open-file limit is large enough.
# Constants
compaction threshold.
compaction threshold.
DupDetectDirSuffix is used by pre-deduplication to store the encoded index KV.
DupResultDirSuffix is used by pre-deduplication to store the duplicated row ID.
# Variables
BuildDuplicateTaskForTest is only used for test.
CheckTiFlashVersionForTest is only used for tests.
DefaultBackoffWeight is the default value of tidb_backoff_weight for checksum.
LastAlloc is the last ID allocator.
MaxWriteAndIngestRetryTimes is the max retry times for write and ingest.
MinDistSQLScanConcurrency is the minimum value of tidb_distsql_scan_concurrency.
RunInTest indicates whether the current process is running in test.
TiFlashReplicaQueryForTest is only used for tests.
WaitRMFolderChForTest is a channel for testing.
# Structs
Backend is a local backend.
BackendConfig is the config for local backend.
DupeController is used to collect duplicate keys from local and remote data source and resolve duplication.
DupKVStreamImpl implements the interface of DupKVStream.
Engine is a local engine.
RangePropertiesCollector collects range properties for each range.
RemoteChecksum represents a checksum result got from tidb.
RemoteDupKVStream implements the interface of DupKVStream.
TiKVChecksumManager is a manager that can compute checksum of a table using TiKV.
Writer is used to write data into a SST file.
# Interfaces
ChecksumManager is a manager that manages checksums.
DiskUsage is an interface to obtain the size occupied locally of all engines.
DupKVStream is a streaming interface for collecting duplicate key-value pairs.
IngestLocalEngineIter abstract iterator method for iterator.
Iter describes an iterator.
StoreHelper have some api to help encode or store KV data.
StoreWriteLimiter is used to limit the write rate of a store.
TiKVModeSwitcher is used to switch TiKV nodes between Import and Normal mode.
# Type aliases
RlimT is the type of rlimit values.