Documentation ¶
Index ¶
Constants ¶
View Source
const ( EmptyGroupKey = "" EmptyTagValue = "" )
Variables ¶
View Source
var ( FlushParallelMinRowNum = 10000 ErrEmptyCache = errors.New("empty window cache") )
Functions ¶
This section is empty.
Types ¶
type BaseTask ¶ added in v1.2.0
type BaseTask struct { Logger Logger // contains filtered or unexported fields }
type CacheRowPool ¶
type CacheRowPool struct {
// contains filtered or unexported fields
}
func NewCacheRowPool ¶
func NewCacheRowPool() *CacheRowPool
func (*CacheRowPool) Get ¶
func (p *CacheRowPool) Get() *CacheRow
func (*CacheRowPool) Len ¶
func (p *CacheRowPool) Len() int64
func (*CacheRowPool) Put ¶
func (p *CacheRowPool) Put(r *CacheRow)
func (*CacheRowPool) Size ¶
func (p *CacheRowPool) Size() int64
type Engine ¶
type MetaClient ¶
type MetaClient interface { GetStreamInfosStore() map[string]*meta2.StreamInfo GetMeasurementInfoStore(dbName string, rpName string, mstName string) (*meta2.MeasurementInfo, error) }
type RowsPool ¶
type RowsPool struct {
// contains filtered or unexported fields
}
func NewRowsPool ¶
func NewRowsPool() *RowsPool
type Stream ¶
type Stream struct { Logger Logger // contains filtered or unexported fields }
func (*Stream) DeleteTask ¶
func (*Stream) Drain ¶
func (s *Stream) Drain()
Drain is for test case, to check whether there exist resource leakage
func (*Stream) RegisterTask ¶
type TagTask ¶ added in v1.2.0
type TagTask struct { *WindowDataPool *BaseTask // contains filtered or unexported fields }
func (*TagTask) Put ¶ added in v1.2.0
func (s *TagTask) Put(r *WindowCache)
func (*TagTask) UnCompressDictKeyUint ¶ added in v1.2.0
UnCompressDictKeyUint corpusIndexes array not need lock
func (*TagTask) WriteRowsToShard ¶ added in v1.2.0
type Task ¶
type Task interface { Drain() Put(r *WindowCache) // contains filtered or unexported methods }
type TimeTask ¶ added in v1.2.0
type TimeTask struct { *WindowDataPool *BaseTask // contains filtered or unexported fields }
func (*TimeTask) Put ¶ added in v1.2.0
func (s *TimeTask) Put(r *WindowCache)
func (*TimeTask) WriteRowsToShard ¶ added in v1.2.0
type WindowCache ¶
type WindowCache struct {
// contains filtered or unexported fields
}
type WindowCachePool ¶
type WindowCachePool struct {
// contains filtered or unexported fields
}
func NewWindowCachePool ¶
func NewWindowCachePool() *WindowCachePool
func (*WindowCachePool) Count ¶
func (p *WindowCachePool) Count() int64
func (*WindowCachePool) Get ¶
func (p *WindowCachePool) Get() *WindowCache
func (*WindowCachePool) Put ¶
func (p *WindowCachePool) Put(r *WindowCache)
type WindowDataPool ¶
type WindowDataPool struct {
// contains filtered or unexported fields
}
func NewWindowDataPool ¶
func NewWindowDataPool() *WindowDataPool
func (*WindowDataPool) Get ¶
func (p *WindowDataPool) Get() *WindowCache
func (*WindowDataPool) IncreaseChan ¶
func (p *WindowDataPool) IncreaseChan()
func (*WindowDataPool) Len ¶
func (p *WindowDataPool) Len() int64
func (*WindowDataPool) Put ¶
func (p *WindowDataPool) Put(cache *WindowCache)
type WritePointsWorkIF ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.