Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundedParallelFilter ¶
type BoundedParallelFilter struct {
// contains filtered or unexported fields
}
BoundedParallelFilter can filter up to N items at a time
func NewBoundedParallelFilter ¶
func NewBoundedParallelFilter(bound int, workers ...Worker) *BoundedParallelFilter
func (*BoundedParallelFilter) GetStat ¶
func (f *BoundedParallelFilter) GetStat() FilterExecutionStat
type FilterExecutionStat ¶
type IndependentSerialFilter ¶
type IndependentSerialFilter struct {
// contains filtered or unexported fields
}
IndependentSerialFilter filters one item at a time and sends it only when it filtered all of them.
func NewIndependentSerialFilter ¶
func NewIndependentSerialFilter(workers ...Worker) *IndependentSerialFilter
func (*IndependentSerialFilter) GetStat ¶
func (f *IndependentSerialFilter) GetStat() FilterExecutionStat
type ParallelFilter ¶
type ParallelFilter struct {
// contains filtered or unexported fields
}
ParallelFilter can filter multiple items at a time
func NewParallelFilter ¶
func NewParallelFilter(workers ...Worker) *ParallelFilter
func (*ParallelFilter) GetStat ¶
func (f *ParallelFilter) GetStat() FilterExecutionStat
type Pipeline ¶
type Pipeline struct { FilteringDuration time.Duration FilteringNumber int // contains filtered or unexported fields } // I process a bunch of items. I contain filters, but I'm also a Filter!
func NewPipeline ¶
func (*Pipeline) GetStat ¶
func (p *Pipeline) GetStat() FilterExecutionStat
func (*Pipeline) StartExtracting ¶
type PipelineStat ¶
type PipelineStat struct { PipelineName string FilterStats []FilterExecutionStat TotalDuration time.Duration TotalNumberOfFiltering int }
type SerialFilter ¶
type SerialFilter struct {
// contains filtered or unexported fields
}
SerialFilter filters a single item at a time as they come
func NewSerialFilter ¶
func NewSerialFilter(workers ...Worker) *SerialFilter
func (*SerialFilter) GetStat ¶
func (f *SerialFilter) GetStat() FilterExecutionStat
Click to show internal directories.
Click to hide internal directories.