Package org.apache.calcite.test.fuzzer
Class RexProgramFuzzyTest.TopN<E extends java.lang.Comparable<E>>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.PriorityQueue<E>
-
- org.apache.calcite.test.fuzzer.RexProgramFuzzyTest.TopN<E>
-
- Type Parameters:
E
- the type of elements held in this collection
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Queue<E>
- Enclosing class:
- RexProgramFuzzyTest
private static class RexProgramFuzzyTest.TopN<E extends java.lang.Comparable<E>> extends java.util.PriorityQueue<E>
A bounded variation ofPriorityQueue
-
-
Field Summary
Fields Modifier and Type Field Description private int
n
-
Constructor Summary
Constructors Modifier Constructor Description private
TopN(int n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<E>
iterator()
boolean
offer(E o)
-
Methods inherited from class java.util.PriorityQueue
add, clear, comparator, contains, forEach, peek, poll, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray
-
-