Documentation ¶
Index ¶
- func OperationsFromProto(pb []pipelinepb.AppliedPipelineOp, ops []OpUnion) error
- type OpUnion
- type Pipeline
- func (p Pipeline) At(i int) OpUnion
- func (p Pipeline) Clone() Pipeline
- func (p Pipeline) Equal(other Pipeline) bool
- func (p *Pipeline) FromProto(pb pipelinepb.AppliedPipeline) error
- func (p Pipeline) IsEmpty() bool
- func (p Pipeline) IsMappingRule() bool
- func (p Pipeline) Len() int
- func (p Pipeline) Less(i, j int) bool
- func (p Pipeline) String() string
- func (p Pipeline) SubPipeline(startInclusive int, endExclusive int) Pipeline
- func (p Pipeline) Swap(i, j int)
- func (p Pipeline) ToProto(pb *pipelinepb.AppliedPipeline) error
- func (p Pipeline) WithResets() Pipeline
- type RollupOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OperationsFromProto ¶ added in v1.2.0
func OperationsFromProto(pb []pipelinepb.AppliedPipelineOp, ops []OpUnion) error
OperationsFromProto converts a list of protobuf AppliedPipelineOps, used in optimized staged metadata methods.
Types ¶
type OpUnion ¶
type OpUnion struct { Rollup RollupOp Type pipeline.OpType Transformation pipeline.TransformationOp }
OpUnion is a union of different types of operation.
func (*OpUnion) FromProto ¶
func (u *OpUnion) FromProto(pb pipelinepb.AppliedPipelineOp) error
FromProto converts the protobuf message to an applied pipeline op in place.
func (OpUnion) ToProto ¶
func (u OpUnion) ToProto(pb *pipelinepb.AppliedPipelineOp) error
ToProto converts the applied pipeline op to a protobuf message in place.
type Pipeline ¶
type Pipeline struct { // a list of pipeline Operations. Operations []OpUnion }
Pipeline is a pipeline of operations.
var ( // DefaultPipeline is a default pipeline. DefaultPipeline Pipeline )
func (*Pipeline) FromProto ¶
func (p *Pipeline) FromProto(pb pipelinepb.AppliedPipeline) error
FromProto converts the protobuf message to an applied pipeline in place.
func (Pipeline) IsMappingRule ¶ added in v1.2.0
IsMappingRule returns whether this is a mapping rule, determined by if any rollup pipelines are included.
func (Pipeline) SubPipeline ¶
SubPipeline returns a sub-pipeline containing Operations between step `startInclusive` and step `endExclusive` of the current pipeline.
func (Pipeline) ToProto ¶
func (p Pipeline) ToProto(pb *pipelinepb.AppliedPipeline) error
ToProto converts the applied pipeline to a protobuf message in place.
func (Pipeline) WithResets ¶ added in v1.2.0
WithResets returns a new Pipeline with Add transformations replaced with Reset transformations. See transformReset for why Reset should be used instead of Add.
type RollupOp ¶
type RollupOp struct { // Metric ID generated as a result of the rollup. ID []byte // Type of aggregations performed within each unique dimension combination. AggregationID aggregation.ID }
RollupOp captures the rollup metadata after the operation is applied against a metric ID.
func (*RollupOp) FromProto ¶
func (op *RollupOp) FromProto(pb pipelinepb.AppliedRollupOp) error
FromProto converts the protobuf message to an applied rollup op in place.
func (RollupOp) ToProto ¶
func (op RollupOp) ToProto(pb *pipelinepb.AppliedRollupOp) error
ToProto converts the applied rollup op to a protobuf message in place.