mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Merge remote-tracking branch 'origin/topic/bernhard/topk'
* origin/topic/bernhard/topk: 3 more functions to document. Conflicts: src/probabilistic/Topk.h
This commit is contained in:
commit
1b40412818
3 changed files with 28 additions and 3 deletions
|
@ -129,9 +129,30 @@ protected:
|
|||
TopkVal();
|
||||
|
||||
private:
|
||||
/**
|
||||
* Increment the counter for a specific element
|
||||
*
|
||||
* @param e element to increment counter for
|
||||
*
|
||||
* @param count increment counter by this much
|
||||
*/
|
||||
void IncrementCounter(Element* e, unsigned int count = 1);
|
||||
HashKey* GetHash(Val*) const; // this probably should go somewhere else.
|
||||
void Typify(BroType*);
|
||||
|
||||
/**
|
||||
* get the hashkey for a specific value
|
||||
*
|
||||
* @param v value to generate key for
|
||||
*
|
||||
* @returns HashKey for value
|
||||
*/
|
||||
HashKey* GetHash(Val* v) const; // this probably should go somewhere else.
|
||||
|
||||
/**
|
||||
* Set the type that this TopK instance tracks
|
||||
*
|
||||
* @param t type that is tracked
|
||||
*/
|
||||
void Typify(BroType* t);
|
||||
|
||||
BroType* type;
|
||||
CompositeHash* hash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue