|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.featureindexlibrary.commons.SortedHeap
public class SortedHeap
A Sorted heal utility
| Constructor Summary | |
|---|---|
SortedHeap()
Creates a new instance |
|
| Method Summary | |
|---|---|
void |
add(HeapElement element)
Adds the element |
HeapElement |
get(int i)
Retrieves the elment in the given position |
int |
getNumberOfElements()
Retrieves the number of results |
void |
sort()
Sorts the existing elements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedHeap()
| Method Detail |
|---|
public int getNumberOfElements()
public HeapElement get(int i)
i - The index of the elmnt to retrieve
public void add(HeapElement element)
element - The elmentpublic void sort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||