Documentation ¶
Index ¶
- func WalkPlan(v Visitor, node Node)
- type Node
- type Plan
- func (p *Plan) EndTime() time.Time
- func (p *Plan) InitFileSystem(client server.MetaClient) error
- func (p *Plan) InitMetadata(client server.MetaClient) (err error)
- func (p *Plan) NodeShardGroups() []meta.ShardGroupInfo
- func (p *Plan) PrintPlan(w io.Writer)
- func (p *Plan) ShardGroups() []meta.ShardGroupInfo
- func (p *Plan) ShardPath() string
- func (p *Plan) String() string
- func (p *Plan) TimeRange() (start, end time.Time)
- func (p *Plan) TimeSpan() time.Duration
- func (p *Plan) Validate() error
- type Spec
- type TagCardinalities
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plan ¶
type Plan struct { Database string Retention string ReplicaN int StartTime time.Time ShardCount int ShardDuration time.Duration Tags TagCardinalities PointsPerSeriesPerShard int DatabasePath string // contains filtered or unexported fields }
func (*Plan) InitFileSystem ¶
func (p *Plan) InitFileSystem(client server.MetaClient) error
InitFileSystem initializes the file system structure, cleaning up existing files and re-creating the appropriate shard directories.
func (*Plan) InitMetadata ¶
func (p *Plan) InitMetadata(client server.MetaClient) (err error)
func (*Plan) NodeShardGroups ¶
func (p *Plan) NodeShardGroups() []meta.ShardGroupInfo
NodeShardGroups returns ShardGroupInfo with Shards limited to the current node
func (*Plan) ShardGroups ¶
func (p *Plan) ShardGroups() []meta.ShardGroupInfo
type Spec ¶
type TagCardinalities ¶
type TagCardinalities []int
func (TagCardinalities) Cardinality ¶
func (t TagCardinalities) Cardinality() int
func (*TagCardinalities) Set ¶
func (t *TagCardinalities) Set(tags string) error
func (TagCardinalities) String ¶
func (t TagCardinalities) String() string
Click to show internal directories.
Click to hide internal directories.