Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCmdFactory(cmdType int16, factory CmdFactory)
- func TxnStrState(state TxnState) string
- type AppendNode
- type AsyncTxn
- type CmdFactory
- type DeleteChain
- type DeleteNode
- type SyncTxn
- type Txn2PC
- type TxnAsyncer
- type TxnChanger
- type TxnCmd
- type TxnEntry
- type TxnEntryType
- type TxnHandle
- type TxnReader
- type TxnState
- type TxnStore
- type TxnTest
- type TxnWriter
- type UpdateChain
- type UpdateNode
Constants ¶
View Source
const (
UncommitTS = ^uint64(0)
)
Variables ¶
Functions ¶
func RegisterCmdFactory ¶
func RegisterCmdFactory(cmdType int16, factory CmdFactory)
func TxnStrState ¶
Types ¶
type AppendNode ¶
type AppendNode interface { TxnEntry }
type AsyncTxn ¶
type AsyncTxn interface { TxnTest Txn2PC TxnHandle TxnAsyncer TxnReader TxnWriter TxnChanger }
type CmdFactory ¶
func GetCmdFactory ¶
func GetCmdFactory(cmdType int16) (factory CmdFactory)
type DeleteChain ¶
type DeleteChain interface { sync.Locker RLock() RUnlock() // GetID() *common.ID RemoveNodeLocked(DeleteNode) AddNodeLocked(txn AsyncTxn, deleteType handle.DeleteType) DeleteNode AddMergeNode() DeleteNode PrepareRangeDelete(start, end uint32, ts uint64) error DepthLocked() int CollectDeletesLocked(ts uint64, collectIndex bool, rwlocker *sync.RWMutex) (DeleteNode, error) }
type DeleteNode ¶
type SyncTxn ¶
type SyncTxn interface { TxnReader TxnWriter TxnChanger }
type TxnAsyncer ¶
type TxnChanger ¶
type TxnEntryType ¶
type TxnEntryType int16
type TxnReader ¶
type TxnReader interface { RLock() RUnlock() GetID() uint64 GetCtx() []byte GetStartTS() uint64 GetCommitTS() uint64 GetInfo() []byte IsTerminated(bool) bool IsVisible(o TxnReader) bool GetTxnState(waitIfcommitting bool) TxnState GetError() error GetStore() TxnStore String() string Repr() string GetLSN() uint64 SameTxn(startTs uint64) bool CommitBefore(startTs uint64) bool CommitAfter(startTs uint64) bool }
type TxnStore ¶
type TxnStore interface { Txn2PC io.Closer BindTxn(AsyncTxn) GetLSN() uint64 BatchDedup(dbId, id uint64, pks ...containers.Vector) error LogSegmentID(dbId, tid, sid uint64) LogBlockID(dbId, tid, bid uint64) Append(dbId, id uint64, data *containers.Batch) error RangeDelete(dbId uint64, id *common.ID, start, end uint32, dt handle.DeleteType) error Update(dbId uint64, id *common.ID, row uint32, col uint16, v any) error GetByFilter(dbId uint64, id uint64, filter *handle.Filter) (*common.ID, uint32, error) GetValue(dbId uint64, id *common.ID, row uint32, col uint16) (any, error) CreateRelation(dbId uint64, def any) (handle.Relation, error) DropRelationByName(dbId uint64, name string) (handle.Relation, error) GetRelationByName(dbId uint64, name string) (handle.Relation, error) CreateDatabase(name string) (handle.Database, error) GetDatabase(name string) (handle.Database, error) DropDatabase(name string) (handle.Database, error) DatabaseNames() []string GetSegment(dbId uint64, id *common.ID) (handle.Segment, error) CreateSegment(dbId, tid uint64) (handle.Segment, error) CreateNonAppendableSegment(dbId, tid uint64) (handle.Segment, error) CreateBlock(dbId, tid, sid uint64) (handle.Block, error) GetBlock(dbId uint64, id *common.ID) (handle.Block, error) CreateNonAppendableBlock(dbId uint64, id *common.ID) (handle.Block, error) SoftDeleteSegment(dbId uint64, id *common.ID) error SoftDeleteBlock(dbId uint64, id *common.ID) error AddTxnEntry(TxnEntryType, TxnEntry) LogTxnEntry(dbId, tableId uint64, entry TxnEntry, readed []*common.ID) error IsReadonly() bool IncreateWriteCnt() int }
type UpdateChain ¶
type UpdateChain interface { sync.Locker RLock() RUnlock() GetID() *common.ID DeleteNode(*common.DLNode) DeleteNodeLocked(*common.DLNode) AddNode(txn AsyncTxn) UpdateNode AddNodeLocked(txn AsyncTxn) UpdateNode PrepareUpdate(uint32, UpdateNode) error GetValueLocked(row uint32, ts uint64) (any, error) TryUpdateNodeLocked(row uint32, v any, n UpdateNode) error }
Click to show internal directories.
Click to hide internal directories.