class CounterTree::Tree

Included Modules

Defined in:

lib/tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : MessagePack::Unpacker) #

[View source]
def self.new(branches_num : UInt32 = 9) #

[View source]

Instance Method Detail

def branches : Array(Hash(UInt64, CounterTree::Counter)) #

[View source]
def branches_num : UInt32 #

[View source]
def decrement(key : UInt64) : UInt64 #

[View source]
def delete(key : UInt64, time_from : UInt64, time_to : UInt64) : Bool #

[View source]
def delete(time_from : UInt64, time_to : UInt64) : Bool #

[View source]
def find(key : UInt64, time_from : UInt64, time_to : UInt64) : Hash(UInt64, UInt64) #

[View source]
def find(time_from : UInt64, time_to : UInt64) : Hash(UInt64, Hash(UInt64, UInt64)) #

[View source]
def increment(key : UInt64) : UInt64 #

[View source]
def pick(key : UInt64) : Counter #

[View source]
def reset(key : UInt64) : Bool #

[View source]
def reset : Bool #

[View source]
def sum(key : UInt64, time_from : UInt64, time_to : UInt64) : UInt64 #

[View source]
def sum(key : UInt64) : UInt64 #

[View source]