Documentation ¶
Overview ¶
Package pipelinex contains utilities for manipulating Beam proto pipelines. The utilities generally uses shallow copies and do not mutate their inputs.
Index ¶
- func Bounded(p *pb.Pipeline) bool
- func ContainerImages(p *pb.Pipeline) []string
- func Normalize(p *pb.Pipeline) (*pb.Pipeline, error)
- func ShallowCloneFunctionSpec(p *pb.FunctionSpec) *pb.FunctionSpec
- func ShallowClonePTransform(t *pb.PTransform) *pb.PTransform
- func ShallowCloneParDoPayload(p *pb.ParDoPayload) *pb.ParDoPayload
- func ShallowCloneSideInput(p *pb.SideInput) *pb.SideInput
- func TopologicalSort(xforms map[string]*pb.PTransform, ids []string) []string
- func TrimCoders(coders map[string]*pb.Coder, ids ...string) map[string]*pb.Coder
- func Update(p *pb.Pipeline, values *pb.Components) (*pb.Pipeline, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerImages ¶
ContainerImages returns the set of container images used in the given pipeline.
func Normalize ¶
Normalize recomputes derivative information in the pipeline, such as roots and input/output for composite transforms. It also ensures that unique names are so and topologically sorts each subtransform list.
func ShallowCloneFunctionSpec ¶
func ShallowCloneFunctionSpec(p *pb.FunctionSpec) *pb.FunctionSpec
ShallowCloneFunctionSpec makes a shallow copy of the given FunctionSpec.
func ShallowClonePTransform ¶
func ShallowClonePTransform(t *pb.PTransform) *pb.PTransform
ShallowClonePTransform makes a shallow copy of the given PTransform.
func ShallowCloneParDoPayload ¶
func ShallowCloneParDoPayload(p *pb.ParDoPayload) *pb.ParDoPayload
ShallowCloneParDoPayload makes a shallow copy of the given ParDoPayload.
func ShallowCloneSideInput ¶
ShallowCloneSideInput makes a shallow copy of the given SideInput.
func TopologicalSort ¶
func TopologicalSort(xforms map[string]*pb.PTransform, ids []string) []string
TopologicalSort returns a topologically sorted list of the given ids, generally from the same scope/composite. Assumes acyclic graph.
func TrimCoders ¶
TrimCoders returns the transitive closure of the given coders ids.
Types ¶
This section is empty.