Documentation ¶
Index ¶
- type MetaClient
- type Service
- type SlaveStorage
- type Storage
- func (s *Storage) Assign(opId uint64, ptInfo *meta.DbPtInfo) error
- func (s *Storage) CheckPtsRemovedDone() error
- func (s *Storage) CreateLogicPlan(ctx context.Context, db string, ptId uint32, shardID uint64, ...) (hybridqp.QueryNode, error)
- func (s *Storage) ExecuteDelete(req *netstorage.DeleteRequest) error
- func (s *Storage) GetConnId() uint64
- func (s *Storage) GetEngine() netstorage.Engine
- func (s *Storage) GetIndexInfo(db string, ptId uint32, shardID uint64, schema hybridqp.Catalog) (interface{}, error)
- func (s *Storage) GetPath() string
- func (s *Storage) GetShardDownSampleLevel(db string, ptId uint32, shardID uint64) int
- func (s *Storage) GetShardSplitPoints(db string, pt uint32, shardID uint64, idxes []int64) ([]string, error)
- func (s *Storage) MustClose()
- func (s *Storage) Offload(opId uint64, ptInfo *meta.DbPtInfo) error
- func (s *Storage) PreAssign(opId uint64, ptInfo *meta.DbPtInfo) error
- func (s *Storage) PreOffload(opId uint64, ptInfo *meta.DbPtInfo) error
- func (s *Storage) RefEngineDbPt(db string, ptId uint32) error
- func (s *Storage) ReportLoad()
- func (s *Storage) RollbackPreOffload(opId uint64, ptInfo *meta.DbPtInfo) error
- func (s *Storage) RowCount(db string, ptId uint32, shardIDS []uint64, schema hybridqp.Catalog) (int64, error)
- func (s *Storage) ScanWithSparseIndex(ctx context.Context, db string, ptId uint32, shardIDS []uint64, ...) (hybridqp.IShardsFragments, error)
- func (s *Storage) SendSysCtrlOnNode(req *netstorage.SysCtrlRequest) (map[string]string, error)
- func (s *Storage) SeriesCardinality(db string, ptIDs []uint32, measurements []string, condition influxql.Expr, ...) ([]meta.MeasurementCardinalityInfo, error)
- func (s *Storage) SeriesExactCardinality(db string, ptIDs []uint32, measurements []string, condition influxql.Expr, ...) (map[string]uint64, error)
- func (s *Storage) SeriesKeys(db string, ptIDs []uint32, measurements []string, condition influxql.Expr, ...) ([]string, error)
- func (s *Storage) SetEngine(engine netstorage.Engine)
- func (s *Storage) TagKeys(db string, ptIDs []uint32, measurements []string, condition influxql.Expr, ...) ([]string, error)
- func (s *Storage) TagValues(db string, ptIDs []uint32, tagKeys map[string][][]byte, ...) (netstorage.TablesTagSets, error)
- func (s *Storage) TagValuesCardinality(db string, ptIDs []uint32, tagKeys map[string][][]byte, ...) (map[string]uint64, error)
- func (s *Storage) UnrefEngineDbPt(db string, ptId uint32)
- func (s *Storage) Write(db, rp, mst string, ptId uint32, shardID uint64, writeData func() error) error
- func (s *Storage) WriteRec(db, rp, mst string, ptId uint32, shardID uint64, rec *record.Record, ...) error
- func (s *Storage) WriteRows(db, rp string, ptId uint32, shardID uint64, rows []influx.Row, ...) error
- type StoreEngine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaClient ¶ added in v1.1.0
type SlaveStorage ¶ added in v1.1.0
type SlaveStorage interface {
WriteRows(ctx *netstorage.WriteContext, nodeID uint64, pt uint32, database, rpName string, timeout time.Duration) error
}
type Storage ¶
type Storage struct { MetaClient MetaClient Services []Service WriteLimit limiter.Fixed // contains filtered or unexported fields }
func OpenStorage ¶
func OpenStorage(path string, node *metaclient.Node, cli *metaclient.Client, conf *config.TSStore) (*Storage, error)
func (*Storage) CheckPtsRemovedDone ¶ added in v1.1.1
The check is performed every 500 ms. The check times out after 5s.
func (*Storage) CreateLogicPlan ¶
func (*Storage) ExecuteDelete ¶
func (s *Storage) ExecuteDelete(req *netstorage.DeleteRequest) error
func (*Storage) GetEngine ¶
func (s *Storage) GetEngine() netstorage.Engine
func (*Storage) GetIndexInfo ¶ added in v1.2.0
func (*Storage) GetShardDownSampleLevel ¶ added in v1.0.0
func (*Storage) GetShardSplitPoints ¶
func (*Storage) PreOffload ¶ added in v1.0.0
func (*Storage) ReportLoad ¶
func (s *Storage) ReportLoad()
func (*Storage) RollbackPreOffload ¶ added in v1.0.0
func (*Storage) ScanWithSparseIndex ¶ added in v1.1.0
func (*Storage) SendSysCtrlOnNode ¶
func (s *Storage) SendSysCtrlOnNode(req *netstorage.SysCtrlRequest) (map[string]string, error)
func (*Storage) SeriesCardinality ¶
func (*Storage) SeriesExactCardinality ¶
func (*Storage) SeriesKeys ¶
func (*Storage) SetEngine ¶ added in v1.1.0
func (s *Storage) SetEngine(engine netstorage.Engine)
func (*Storage) TagValuesCardinality ¶
func (*Storage) UnrefEngineDbPt ¶
type StoreEngine ¶
type StoreEngine interface { RowCount(db string, ptId uint32, shardIDS []uint64, schema hybridqp.Catalog) (int64, error) RefEngineDbPt(string, uint32) error UnrefEngineDbPt(string, uint32) ExecuteDelete(*netstorage.DeleteRequest) error GetShardSplitPoints(string, uint32, uint64, []int64) ([]string, error) SeriesCardinality(string, []uint32, []string, influxql.Expr, influxql.TimeRange) ([]meta.MeasurementCardinalityInfo, error) SeriesExactCardinality(string, []uint32, []string, influxql.Expr, influxql.TimeRange) (map[string]uint64, error) TagKeys(string, []uint32, []string, influxql.Expr, influxql.TimeRange) ([]string, error) SeriesKeys(string, []uint32, []string, influxql.Expr, influxql.TimeRange) ([]string, error) TagValues(string, []uint32, map[string][][]byte, influxql.Expr, influxql.TimeRange) (netstorage.TablesTagSets, error) TagValuesCardinality(string, []uint32, map[string][][]byte, influxql.Expr, influxql.TimeRange) (map[string]uint64, error) SendSysCtrlOnNode(*netstorage.SysCtrlRequest) (map[string]string, error) GetShardDownSampleLevel(db string, ptId uint32, shardID uint64) int PreOffload(uint64, *meta.DbPtInfo) error RollbackPreOffload(uint64, *meta.DbPtInfo) error PreAssign(uint64, *meta.DbPtInfo) error Offload(uint64, *meta.DbPtInfo) error Assign(uint64, *meta.DbPtInfo) error GetConnId() uint64 CheckPtsRemovedDone() error }
Click to show internal directories.
Click to hide internal directories.