Documentation
¶
Index ¶
- Constants
- Variables
- func DedupOp[T comparable](vs any, tree map[any]uint32) (err error)
- func InsertOp[T comparable](input any, start, count int, fromRow uint32, dedupInput bool, ...) (err error)
- func NewInsertNode(tbl *txnTable, mgr base.INodeManager, id *common.ID, driver wal.Driver) *insertNode
- func NewSimpleTableIndex() *simpleTableIndex
- type AppendCmd
- func (e *AppendCmd) Close()
- func (c *AppendCmd) Desc() string
- func (e *AppendCmd) GetType() int16
- func (c *AppendCmd) Marshal() (buf []byte, err error)
- func (c *AppendCmd) ReadFrom(r io.Reader) (n int64, err error)
- func (c *AppendCmd) String() string
- func (c *AppendCmd) Unmarshal(buf []byte) error
- func (c *AppendCmd) VerboseString() string
- func (c *AppendCmd) WriteTo(w io.Writer) (n int64, err error)
- type InsertNode
- type TableIndex
Constants ¶
View Source
const ( TxnEntryCreateDatabase txnif.TxnEntryType = iota TxnEntryDropDatabase TxnEntryCretaeTable TxnEntryDropTable )
View Source
const ( ETInsertNode = entry.ETCustomizedStart + 1 + iota ETTxnRecord )
View Source
const ( NTInsert txnbase.NodeType = iota NTUpdate NTDelete NTCreateTable NTDropTable NTCreateDB NTDropDB )
View Source
const (
CmdAppend int16 = txnbase.CmdCustomized + iota
)
View Source
const ( // Note: Do not edit this id!!! LocalSegmentStartID uint64 = 1 << 47 )
Variables ¶
View Source
var (
ErrDuplicateNode = errors.New("tae: duplicate node")
)
View Source
var TxnFactory = func(catalog *catalog.Catalog) txnbase.TxnFactory { return func(mgr *txnbase.TxnManager, store txnif.TxnStore, txnId, start uint64, info []byte) txnif.AsyncTxn { return newTxnImpl(catalog, mgr, store, txnId, start, info) } }
View Source
var TxnStoreFactory = func(catalog *catalog.Catalog, driver wal.Driver, txnBufMgr base.INodeManager, dataFactory *tables.DataFactory) txnbase.TxnStoreFactory { return func() txnif.TxnStore { return newStore(catalog, driver, txnBufMgr, dataFactory) } }
Functions ¶
func NewInsertNode ¶
func NewSimpleTableIndex ¶
func NewSimpleTableIndex() *simpleTableIndex
Types ¶
type AppendCmd ¶
type AppendCmd struct {
*txnbase.BaseCustomizedCmd
*txnbase.ComposedCmd
Infos []*appendInfo
Ts uint64
Node InsertNode
}
func NewAppendCmd ¶
func NewAppendCmd(id uint32, node InsertNode) *AppendCmd
func NewEmptyAppendCmd ¶
func NewEmptyAppendCmd() *AppendCmd
func (*AppendCmd) VerboseString ¶
type InsertNode ¶
type InsertNode interface {
base.INode
PrepareAppend(data *containers.Batch, offset uint32) (toAppend uint32)
Append(data *containers.Batch, offset uint32) (appended uint32, err error)
RangeDelete(start, end uint32) error
IsRowDeleted(row uint32) bool
PrintDeletes() string
FillColumnView(*model.ColumnView, *bytes.Buffer) error
Window(start, end uint32) (*containers.Batch, error)
GetSpace() uint32
Rows() uint32
GetValue(col int, row uint32) any
MakeCommand(uint32, bool) (txnif.TxnCmd, wal.LogEntry, error)
ToTransient()
AddApplyInfo(srcOff, srcLen, destOff, destLen uint32, dbid uint64, dest *common.ID) *appendInfo
RowsWithoutDeletes() uint32
LengthWithDeletes(appended, toAppend uint32) uint32
OffsetWithDeletes(count uint32) uint32
GetAppends() []*appendInfo
GetTxn() txnif.AsyncTxn
}
Click to show internal directories.
Click to hide internal directories.