Documentation ¶
Index ¶
- func AddEntryToTable(cEntry *TableEntry, tableList *list.List)
- func AddEntryToTables(indexKeyStructs map[string]*IndexKeyTable, entry config.GenericMap, ...)
- func DeleteOldEntriesFromTables(indexKeyStructs map[string]*IndexKeyTable, nowInSecs time.Time)
- func PrintTable(l *list.List)
- type DataTableMap
- type FilterStruct
- type IndexKeyTable
- type TableEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEntryToTable ¶
func AddEntryToTable(cEntry *TableEntry, tableList *list.List)
func AddEntryToTables ¶
func AddEntryToTables(indexKeyStructs map[string]*IndexKeyTable, entry config.GenericMap, nowInSecs time.Time)
func DeleteOldEntriesFromTables ¶
func DeleteOldEntriesFromTables(indexKeyStructs map[string]*IndexKeyTable, nowInSecs time.Time)
func PrintTable ¶
Types ¶
type DataTableMap ¶
type FilterStruct ¶
type FilterStruct struct { Rule api.TimebasedFilterRule IndexKeyDataTable *IndexKeyTable Results filterOperationResults Output []filterOperationResult }
func CreateIndexKeysAndFilters ¶
func CreateIndexKeysAndFilters(rules []api.TimebasedFilterRule) (map[string]*IndexKeyTable, []FilterStruct)
CreateIndexKeysAndFilters creates structures for each IndexKey that appears in the rules. Note that the same IndexKey might appear in more than one Rule. Connect IndexKey structure to its filters. For each IndexKey, we need a table of history to handle the largest TimeInterval.
func (*FilterStruct) CalculateResults ¶
func (fs *FilterStruct) CalculateResults(nowInSecs time.Time)
func (*FilterStruct) CalculateValue ¶
func (*FilterStruct) ComputeTopkBotk ¶
func (fs *FilterStruct) ComputeTopkBotk()
func (*FilterStruct) CreateGenericMap ¶
func (fs *FilterStruct) CreateGenericMap() []config.GenericMap
type IndexKeyTable ¶
type IndexKeyTable struct {
// contains filtered or unexported fields
}
type TableEntry ¶
type TableEntry struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.