Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type InverseSeq ¶
type InverseSeq struct {
// contains filtered or unexported fields
}
func NewInverseSeq ¶
func NewInverseSeq(window int64, seqTerms []TermT, resetTerms []ResetT) (*InverseSeq, error)
func (*InverseSeq) Eval ¶
func (r *InverseSeq) Eval(clock int64) (hits Hits)
func (*InverseSeq) GarbageCollect ¶
func (r *InverseSeq) GarbageCollect(clock int64)
Remove all terms that are older than the window.
type InverseSet ¶
type InverseSet struct {
// contains filtered or unexported fields
}
func NewInverseSet ¶
func NewInverseSet(window int64, setTerms []TermT, resetTerms []ResetT) (*InverseSet, error)
func (*InverseSet) Eval ¶
func (r *InverseSet) Eval(clock int64) (hits Hits)
Assert clock, may used to close out matcher
func (*InverseSet) GarbageCollect ¶
func (r *InverseSet) GarbageCollect(clock int64)
Remove all terms that are older than the window.
type MatchSeq ¶
type MatchSeq struct {
// contains filtered or unexported fields
}
func (*MatchSeq) GarbageCollect ¶
Remove all terms that are older than the window.
type MatchSet ¶
type MatchSet struct {
// contains filtered or unexported fields
}
func (*MatchSet) GarbageCollect ¶
Remove all terms that are older than the window.
type MatchSingle ¶
type MatchSingle struct {
// contains filtered or unexported fields
}
func NewMatchSingle ¶
func NewMatchSingle(term TermT) (*MatchSingle, error)
func (*MatchSingle) Eval ¶
func (r *MatchSingle) Eval(clock int64) (hits Hits)
func (*MatchSingle) GarbageCollect ¶
func (r *MatchSingle) GarbageCollect(clock int64)
type ResetT ¶
type ResetT struct {
Term TermT // Inverse term
Window int64 // Window size; defaults to 0 which in combination with !Absolute means the window is the range of the matched sequence.
Slide int64 // Slide the anchor, +/- relative to the anchor term
Anchor uint8 // Anchor term; defaults to first event in match sequence
Absolute bool // Absolute window time or relative to the range of the matched sequence.
}
type TermT ¶
func (TermT) NewMatcher ¶
Click to show internal directories.
Click to hide internal directories.