Class: Lite::Containers::TopN::AvlTree

Inherits:
Object
  • Object
show all
Includes:
Abstract, Deque
Defined in:
lib/lite/containers/top_n/avl_tree.rb

Constant Summary collapse

Backend =
Containers::AvlTree::ImplicitKey

Instance Attribute Summary

Attributes included from Abstract

#limit

Class Method Summary collapse

Methods included from Abstract

#drain!, #initialize, #push

Methods included from Abstract::ImplicitKey

#<<, #push

Methods included from Abstract::Collection

#count, #empty?, #length, #size

Methods included from Deque

#back, #front, #pop, #pop_back, #pop_front

Methods included from Abstract::Deque

#back, #pop_back

Methods included from Abstract::Queue

#drain!, #front, #pop_front

Class Method Details

.instance(type, limit: nil, filter: nil, **backend_options) ⇒ Object



16
17
18
19
# File 'lib/lite/containers/top_n/avl_tree.rb', line 16

def self.instance(type, limit: nil, filter: nil, **backend_options)
  backend = Backend.instance(type, **backend_options)
  new backend, limit, filter
end