crawlie v1.0.0 Crawlie.PqueueWrapper
Wraps the Erlang pqueue
:pqueue
, :pqueue2
, :pqueue3
and :pqueue4
modules
functionality for easier use in Elixir and easier swapping of the implementations
Summary
Functions
Adds a Crawlie.Page
to this priority queue, treating its depth
as priority -
the bigger the depth, the bigger the priority
Checks if this priority queue is empty
based on the page depht gets a priority to use with the queue, to utilize the particular pqueue’s tusage best
Returns the size of the underlying queue
Constructs a new Crawlie.PqueueWrapper
priority queue with module
as the
underlying impelementation
Takes an element with the highes priority from the priority queue and returns the priority queue without the element and the element itself
Types
Functions
Adds a Crawlie.Page
to this priority queue, treating its depth
as priority -
the bigger the depth, the bigger the priority.
Checks if this priority queue is empty.
based on the page depht gets a priority to use with the queue, to utilize the particular pqueue’s tusage best
Returns the size of the underlying queue.
Constructs a new Crawlie.PqueueWrapper
priority queue with module
as the
underlying impelementation.
Takes an element with the highes priority from the priority queue and returns the priority queue without the element and the element itself.