public class HitBoundedPriorityQueue extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxSize
The maximum number of documents to be ranked.
|
protected it.unimi.dsi.fastutil.objects.ObjectHeapPriorityQueue<MethylationSimilarityMatch> |
queue
The underlying queue.
|
| Constructor and Description |
|---|
HitBoundedPriorityQueue(int capacity)
Creates a new empty bounded-size queue with a given capacity and natural
order as comparator.
|
| Modifier and Type | Method and Description |
|---|---|
MethylationSimilarityMatch |
dequeue()
Dequeues a document from the queue, returning an instance of
TranscriptScore. |
boolean |
enqueue(int chromosome,
int targetPosition,
float score,
int startForward,
int endForward,
int startReverse,
int endReverse,
int windowLength,
float sumForwardStrand,
float sumReverseStrand)
Enqueues a transcript with given score and info.
|
boolean |
isEmpty() |
int |
size() |
protected final it.unimi.dsi.fastutil.objects.ObjectHeapPriorityQueue<MethylationSimilarityMatch> queue
protected final int maxSize
public HitBoundedPriorityQueue(int capacity)
Documents with equal scores will be compared using their document index.
capacity - the initial capacity of this queue.public boolean enqueue(int chromosome,
int targetPosition,
float score,
int startForward,
int endForward,
int startReverse,
int endReverse,
int windowLength,
float sumForwardStrand,
float sumReverseStrand)
targetPosition - position on the targetscore - its scorepublic boolean isEmpty()
public int size()
public final MethylationSimilarityMatch dequeue()
TranscriptScore.
Documents are dequeued in inverse score order.TranscriptScore.Copyright © 2017 Campagne Laboratory. All rights reserved.