MCPcopy
hub / github.com/pingcap/tidb / NewPartitionHandle

Function NewPartitionHandle

pkg/kv/key.go:714–719  ·  view source on GitHub ↗

NewPartitionHandle creates a PartitionHandle from a normal handle and a pid.

(pid int64, h Handle)

Source from the content-addressed store, hash-verified

712
713// NewPartitionHandle creates a PartitionHandle from a normal handle and a pid.
714func NewPartitionHandle(pid int64, h Handle) PartitionHandle {
715 return PartitionHandle{
716 Handle: h,
717 PartitionID: pid,
718 }
719}
720
721// Copy implements the Handle interface.
722func (ph PartitionHandle) Copy() Handle {

Callers 15

GenIndexKeyMethod · 0.92
DeleteMethod · 0.92
getHandleMethod · 0.92
fetchLoopUnionMethod · 0.92
executeTaskMethod · 0.92
getMemRowsHandleMethod · 0.92
getHandlesMethod · 0.92
fetchRecoverRowsMethod · 0.92
deleteDanglingIdxMethod · 0.92

Calls

no outgoing calls